Plan-of-SQLs Interface TP

Task: Verify the Statement against the Table

Statement: konqueror supports only vp8 (webm) 4.4 , but not vp9 (webm)

Table: html5 video

browser operating_system latest_stable_release theora h264 vp8___webm__ vp9___webm__
android browser android 2012-11-27 9999-02-03 9999-01-03 9999-02-03 9999-01-01
chromium all supported 9999-01-01 9999-01-01 9999-01-01 9999-01-01 9999-01-01
google chrome 30.0.1599.101 (october 15 , 2013 ) 2013-10-15 9999-01-03 9999-01-03 9999-01-06 9999-01-29
internet explorer windows 2013-10-17 9999-01-01 9999-09-01 9999-01-01 9999-01-01
internet explorer windows phone 2012-11-21 9999-01-01 9999-09-01 9999-01-01 9999-01-01
internet explorer windows rt 9999-01-10 9999-01-01 9999-01-10 9999-01-01 9999-01-01
konqueror all supported 2013-10-01 9999-04-01 9999-04-01 9999-04-01 9999-01-01
safari ios 2013-10-24 9999-01-01 9999-03-01 9999-01-01 9999-01-01
safari macos x 2013-10-24 9999-01-01 9999-03-01 9999-01-01 9999-01-01
Generating plan to answer the query...

Generated steps

Step 1: Select rows where 'browser' is 'konqueror'.

Step 2: Select rows where 'vp8___webm__' is '4.4'.

Step 3: Select rows where 'vp9___webm__' is not '9999-01-01'.

Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 0, otherwise return FALSE.

Step 1: Select rows where 'browser' is 'konqueror'.

SQL command for the step:

SELECT * FROM table_sql WHERE browser = 'konqueror';
browser operating_system latest_stable_release theora h264 vp8___webm__ vp9___webm__
android browser android 2012-11-27 9999-02-03 9999-01-03 9999-02-03 9999-01-01
chromium all supported 9999-01-01 9999-01-01 9999-01-01 9999-01-01 9999-01-01
google chrome 30.0.1599.101 (october 15 , 2013 ) 2013-10-15 9999-01-03 9999-01-03 9999-01-06 9999-01-29
internet explorer windows 2013-10-17 9999-01-01 9999-09-01 9999-01-01 9999-01-01
internet explorer windows phone 2012-11-21 9999-01-01 9999-09-01 9999-01-01 9999-01-01
internet explorer windows rt 9999-01-10 9999-01-01 9999-01-10 9999-01-01 9999-01-01
konqueror all supported 2013-10-01 9999-04-01 9999-04-01 9999-04-01 9999-01-01
safari ios 2013-10-24 9999-01-01 9999-03-01 9999-01-01 9999-01-01
safari macos x 2013-10-24 9999-01-01 9999-03-01 9999-01-01 9999-01-01

Step 2: Select rows where 'vp8___webm__' is '4.4'.

SQL command for the step:

SELECT * FROM table_sql WHERE vp8___webm__ = '4.4';
browser operating_system latest_stable_release theora h264 vp8___webm__ vp9___webm__
konqueror all supported 2013-10-01 9999-04-01 9999-04-01 9999-04-01 9999-01-01

Step 3: Select rows where 'vp9___webm__' is not '9999-01-01'.

SQL command for the step:

SELECT * FROM table_sql WHERE vp9___webm__ <> '9999-01-01';
browser operating_system latest_stable_release theora h264 vp8___webm__ vp9___webm__

Step 4: Use a `CASE` statement to return TRUE if the number of rows is equal to 0, otherwise return FALSE.

SQL command for the step:

SELECT CASE WHEN COUNT(*) = 0 THEN TRUE ELSE FALSE END AS verification FROM table_sql;
browser operating_system latest_stable_release theora h264 vp8___webm__ vp9___webm__

Verification:

The statement is TRUE