output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT SUM("starts") FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,636,827' AND "avg_start"<37;
## Task Generate a SQL query to answer the following question: `How many starts had an avg start of less than 37 and won $1,636,827?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `How many starts had an avg start of less than 37 and won $1,636,827?`: ```sql
SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "avg_finish"=35 AND "year"=1990 AND "starts"<1;
## Task Generate a SQL query to answer the following question: `in 1990, how many wins had an avg finish of 35 and a start less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `in 1990, how many wins had an avg finish of 35 and a start less than 1?`: ```sql
SELECT MAX("year") FROM "nascar_sprint_cup_series" WHERE "position"='77th' AND "poles"<0;
## Task Generate a SQL query to answer the following question: `What year had a pole smaller than 0 and in 77th position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had a pole smaller than 0 and in 77th position?`: ```sql
SELECT SUM("avg_finish") FROM "nascar_sprint_cup_series" WHERE "year"=2007 AND "starts"<1;
## Task Generate a SQL query to answer the following question: `in 2007, what is the avg finish that had a start less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `in 2007, what is the avg finish that had a start less than 1?`: ```sql
SELECT "score" FROM "playoffs" WHERE "game">4;
## Task Generate a SQL query to answer the following question: `What is Score, when Game is greater than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Game is greater than 4?`: ```sql
SELECT "high_points" FROM "playoffs" WHERE "game"=3;
## Task Generate a SQL query to answer the following question: `What is High Points, when Game is "3"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is High Points, when Game is "3"?`: ```sql
SELECT "score" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "high_rebounds"='sidney green (10)';
## Task Generate a SQL query to answer the following question: `What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"?`: ```sql
SELECT "high_rebounds" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "date"='may 18';
## Task Generate a SQL query to answer the following question: `What is High Rebounds, when Location Attendance is "Madison Square Garden Unknown", and when Date is "May 18"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is High Rebounds, when Location Attendance is "Madison Square Garden Unknown", and when Date is "May 18"?`: ```sql
SELECT "team" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "high_points"='alonzo mourning (24)';
## Task Generate a SQL query to answer the following question: `What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='ron artest (9)';
## Task Generate a SQL query to answer the following question: `What is High Points, when High Rebounds is "Ron Artest (9)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is High Points, when High Rebounds is "Ron Artest (9)"?`: ```sql
SELECT "date" FROM "game_log" WHERE "high_rebounds"='yao ming (10)';
## Task Generate a SQL query to answer the following question: `What is Date, when High Rebounds is "Yao Ming (10)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when High Rebounds is "Yao Ming (10)"?`: ```sql
SELECT "score" FROM "game_log" WHERE "high_points"='luis scola (18)' AND "high_rebounds"='luis scola (11)';
## Task Generate a SQL query to answer the following question: `What is Score, when High Points is "Luis Scola (18)", and when High Rebounds is "Luis Scola (11)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when High Points is "Luis Scola (18)", and when High Rebounds is "Luis Scola (11)"?`: ```sql
SELECT "team" FROM "game_log" WHERE "high_points"='tracy mcgrady (24)';
## Task Generate a SQL query to answer the following question: `What is Team, when High Points is "Tracy McGrady (24)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Team, when High Points is "Tracy McGrady (24)"?`: ```sql
SELECT SUM("year") FROM "24_hours_of_le_mans_results" WHERE "class_pos"='6th' AND "laps"<317;
## Task Generate a SQL query to answer the following question: `What was the year of the finish with the class pos of 6th and laps smaller than 317?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year of the finish with the class pos of 6th and laps smaller than 317?`: ```sql
SELECT "record" FROM "march" WHERE "opponent"='atlanta hawks';
## Task Generate a SQL query to answer the following question: `What is the record for the opponent Atlanta Hawks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for the opponent Atlanta Hawks?`: ```sql
SELECT "opponent" FROM "march" WHERE "score"='113-124';
## Task Generate a SQL query to answer the following question: `Which opponent had a 113-124 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent had a 113-124 score?`: ```sql
SELECT "record" FROM "march" WHERE "opponent"='philadelphia 76ers';
## Task Generate a SQL query to answer the following question: `What is the final record for the Philadelphia 76ers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the final record for the Philadelphia 76ers?`: ```sql
SELECT "record" FROM "march" WHERE "opponent"='detroit pistons' AND "date"='march 7';
## Task Generate a SQL query to answer the following question: `What is the record for the Detroit Pistons on March 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for the Detroit Pistons on March 7?`: ```sql
SELECT "player" FROM "cfl_draft" WHERE "position"='wr';
## Task Generate a SQL query to answer the following question: `What is the WR player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the WR player?`: ```sql
SELECT "length_m" FROM "course" WHERE "name"='koppenberg';
## Task Generate a SQL query to answer the following question: `What is the Length (m) of the Koppenberg course?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "pavement" text, "length_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Length (m) of the Koppenberg course?`: ```sql
SELECT AVG("kilometer") FROM "course" WHERE "pavement"='asphalt' AND "length_m">645 AND "name"='berendries' AND "average_climb_pct"<7;
## Task Generate a SQL query to answer the following question: `What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "pavement" text, "length_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?`: ```sql
SELECT COUNT("number") FROM "course" WHERE "name"='koppenberg' AND "kilometer"<195;
## Task Generate a SQL query to answer the following question: `What is the Number of the Koppenberg course with less than 195 Kilometers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course" ( "number" real, "name" text, "kilometer" real, "pavement" text, "length_m" real, "average_climb_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Number of the Koppenberg course with less than 195 Kilometers?`: ```sql
SELECT "part_3" FROM "gothic" WHERE "class"='4';
## Task Generate a SQL query to answer the following question: `Which part three is class 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gothic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Which part three is class 4?`: ```sql
SELECT "part_1" FROM "gothic" WHERE "class"='7d';
## Task Generate a SQL query to answer the following question: `Which part one is class 7d?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gothic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Which part one is class 7d?`: ```sql
SELECT "part_3" FROM "gothic" WHERE "class"='7b';
## Task Generate a SQL query to answer the following question: `Which part 3 has class 7b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gothic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Which part 3 has class 7b?`: ```sql
SELECT "class" FROM "gothic" WHERE "part_2"='halp warþ';
## Task Generate a SQL query to answer the following question: `Which class has a part 2 of halp warþ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gothic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Which class has a part 2 of halp warþ?`: ```sql
SELECT "part_2" FROM "gothic" WHERE "verb_meaning"='to leap';
## Task Generate a SQL query to answer the following question: `Which part 2 has a verb that means to leap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gothic" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); ### SQL Given the database schema, here is the SQL query that answers `Which part 2 has a verb that means to leap?`: ```sql
SELECT "semifinalists" FROM "singles" WHERE "tournament"='cincinnati';
## Task Generate a SQL query to answer the following question: `Who are the semifinalists when the tournament is in Cincinnati?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the semifinalists when the tournament is in Cincinnati?`: ```sql
SELECT "finalist" FROM "singles" WHERE "week"='march 12';
## Task Generate a SQL query to answer the following question: `What is the finalist in the week of March 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the finalist in the week of March 12?`: ```sql
SELECT "finalist" FROM "singles" WHERE "week"='may 7';
## Task Generate a SQL query to answer the following question: `What is the May 7 finalist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the May 7 finalist?`: ```sql
SELECT "finalist" FROM "singles" WHERE "week"='august 6';
## Task Generate a SQL query to answer the following question: `For the week of August 6, who is the finalist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `For the week of August 6, who is the finalist?`: ```sql
SELECT MIN("pick_num") FROM "nfl_draft" WHERE "college"='jackson state';
## Task Generate a SQL query to answer the following question: `What is the lowest Pick #, when College is "Jackson State"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Pick #, when College is "Jackson State"?`: ```sql
SELECT "pick_num" FROM "nfl_draft" WHERE "round"=10;
## Task Generate a SQL query to answer the following question: `What is Pick #, when Round is "10"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Pick #, when Round is "10"?`: ```sql
SELECT "player" FROM "nfl_draft" WHERE "round">8 AND "pick_num">234 AND "college"='louisville';
## Task Generate a SQL query to answer the following question: `What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"?`: ```sql
SELECT AVG("round") FROM "nfl_draft" WHERE "player"='gurnest brown' AND "pick_num">180;
## Task Generate a SQL query to answer the following question: `What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater than 180?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater than 180?`: ```sql
SELECT MIN("pick_num") FROM "nfl_draft" WHERE "college"='louisville' AND "round"<10;
## Task Generate a SQL query to answer the following question: `What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?`: ```sql
SELECT "class" FROM "translators" WHERE "frequency_m_hz">91.7 AND "call_sign"='k272ec';
## Task Generate a SQL query to answer the following question: `Which Class has a Frequency MHz larger than 91.7, and a Call sign of k272ec?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Class has a Frequency MHz larger than 91.7, and a Call sign of k272ec?`: ```sql
SELECT MAX("frequency_m_hz") FROM "translators" WHERE "call_sign"='k210dv';
## Task Generate a SQL query to answer the following question: `Which Frequency MHz has a Call sign of k210dv?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Frequency MHz has a Call sign of k210dv?`: ```sql
SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz">89.5 AND "call_sign"='k213el';
## Task Generate a SQL query to answer the following question: `Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?`: ```sql
SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">89.1 AND "city_of_license"='de queen, arkansas';
## Task Generate a SQL query to answer the following question: `Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?`: ```sql
SELECT "fcc_info" FROM "translators" WHERE "city_of_license"='burley, idaho' AND "frequency_m_hz"=89.5;
## Task Generate a SQL query to answer the following question: `Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5?`: ```sql
SELECT "score" FROM "singles_5" WHERE "surface"='clay' AND "date"='31 july 2007';
## Task Generate a SQL query to answer the following question: `For the game played on 31 July 2007 on clay what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `For the game played on 31 July 2007 on clay what was the score?`: ```sql
SELECT "date" FROM "singles_5" WHERE "opponent"='pablo andújar';
## Task Generate a SQL query to answer the following question: `When was Pablo Andújar the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Pablo Andújar the opponent?`: ```sql
SELECT "decision" FROM "game_log" WHERE "visitor"='buffalo';
## Task Generate a SQL query to answer the following question: `What is the decision when Buffalo was the visitor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the decision when Buffalo was the visitor?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "home"='minnesota';
## Task Generate a SQL query to answer the following question: `Who is the visiting team when Minnesota is the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the visiting team when Minnesota is the home team?`: ```sql
SELECT "date" FROM "game_log" WHERE "home"='phoenix';
## Task Generate a SQL query to answer the following question: `What is the date of the match when Phoenix is the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the match when Phoenix is the home team?`: ```sql
SELECT "player" FROM "nfl_draft" WHERE "position"='quarterback' AND "college"='arkansas state';
## Task Generate a SQL query to answer the following question: `Who is the quarterback for Arkansas State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the quarterback for Arkansas State?`: ```sql
SELECT COUNT("round") FROM "nfl_draft" WHERE "pick_num"=129;
## Task Generate a SQL query to answer the following question: `What is the total round of the 129 pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total round of the 129 pick?`: ```sql
SELECT "record" FROM "january" WHERE "date"='january 19';
## Task Generate a SQL query to answer the following question: `What is the record for January 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for January 19?`: ```sql
SELECT "record" FROM "january" WHERE "score"='111-89';
## Task Generate a SQL query to answer the following question: `What record has the score 111-89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has the score 111-89?`: ```sql
SELECT "record" FROM "january" WHERE "date"='january 7';
## Task Generate a SQL query to answer the following question: `What is the record for January 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for January 7?`: ```sql
SELECT "opponent" FROM "january" WHERE "date"='january 7';
## Task Generate a SQL query to answer the following question: `Who was the opponent on January 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "h_a_n" text, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on January 7?`: ```sql
SELECT "home_team" FROM "round_5" WHERE "score"='102-87';
## Task Generate a SQL query to answer the following question: `What home team scored 102-87?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team scored 102-87?`: ```sql
SELECT "venue" FROM "round_5" WHERE "score"='120-108';
## Task Generate a SQL query to answer the following question: `What venue had a Score of 120-108?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue had a Score of 120-108?`: ```sql
SELECT "score" FROM "round_5" WHERE "home_team"='sydney spirit';
## Task Generate a SQL query to answer the following question: `What was the score when Sydney Spirit was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when Sydney Spirit was the home team?`: ```sql
SELECT "score" FROM "round_5" WHERE "venue"='north shore events centre';
## Task Generate a SQL query to answer the following question: `What was the score at North Shore Events Centre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score at North Shore Events Centre?`: ```sql
SELECT "venue" FROM "round_5" WHERE "home_team"='new zealand breakers';
## Task Generate a SQL query to answer the following question: `What is the home team venue for the New Zealand Breakers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team venue for the New Zealand Breakers?`: ```sql
SELECT "decision" FROM "game_log" WHERE "visitor"='detroit' AND "home"='ottawa';
## Task Generate a SQL query to answer the following question: `Who had the decision when the visitor was Detroit and the home team was Ottawa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the decision when the visitor was Detroit and the home team was Ottawa?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='march 18';
## Task Generate a SQL query to answer the following question: `What is the score on March 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score on March 18?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='march 27';
## Task Generate a SQL query to answer the following question: `Who had the highest points on March 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the highest points on March 27?`: ```sql
SELECT AVG("lead_margin") FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='november 13-november 19, 2007';
## Task Generate a SQL query to answer the following question: `Name the average Lead Margin on november 13-november 19, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_larry_la_rocco" text, "republican_jim_risch" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average Lead Margin on november 13-november 19, 2007?`: ```sql
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_jim_risch"='43%';
## Task Generate a SQL query to answer the following question: `Which Poll Source has a Republican Jim Risch of 43%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_larry_la_rocco" text, "republican_jim_risch" text, "lead_margin" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Poll Source has a Republican Jim Risch of 43%?`: ```sql
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15;
## Task Generate a SQL query to answer the following question: `For week 15, what was the total number of attendance recorded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `For week 15, what was the total number of attendance recorded?`: ```sql
SELECT "score" FROM "first_round_proper" WHERE "home_team"='king''s lynn';
## Task Generate a SQL query to answer the following question: `what is the score when the home team is king's lynn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score when the home team is king's lynn?`: ```sql
SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='frickley colliery';
## Task Generate a SQL query to answer the following question: `what is the home team when the away team is frickley colliery?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the home team when the away team is frickley colliery?`: ```sql
SELECT "tie_no" FROM "first_round_proper" WHERE "date"='24 november 1971' AND "away_team"='king''s lynn';
## Task Generate a SQL query to answer the following question: `what is the tie no, on 24 november 1971 and the away team is king's lynn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the tie no, on 24 november 1971 and the away team is king's lynn?`: ```sql
SELECT "longitude" FROM "lineae" WHERE "latitude"='61.0s';
## Task Generate a SQL query to answer the following question: `What is the Longitude of the 61.0s Latitude?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lineae" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Longitude of the 61.0s Latitude?`: ```sql
SELECT "name" FROM "lineae" WHERE "longitude"='213.0e';
## Task Generate a SQL query to answer the following question: `What name has a longitude of 213.0e?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lineae" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real ); ### SQL Given the database schema, here is the SQL query that answers `What name has a longitude of 213.0e?`: ```sql
SELECT "type" FROM "rides_and_attractions" WHERE "manufacturer"='unknown';
## Task Generate a SQL query to answer the following question: `Which type had an unknown manufacturer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rides_and_attractions" ( "name" text, "type" text, "themed_area" text, "manufacturer" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `Which type had an unknown manufacturer?`: ```sql
SELECT "name" FROM "rides_and_attractions" WHERE "themed_area"='dreamworks experience' AND "manufacturer"='ferrari';
## Task Generate a SQL query to answer the following question: `What is the name of the dreamworks experience from Ferrari?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rides_and_attractions" ( "name" text, "type" text, "themed_area" text, "manufacturer" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the dreamworks experience from Ferrari?`: ```sql
SELECT "type" FROM "rides_and_attractions" WHERE "opened"='1982';
## Task Generate a SQL query to answer the following question: `Which type opened in 1982?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rides_and_attractions" ( "name" text, "type" text, "themed_area" text, "manufacturer" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `Which type opened in 1982?`: ```sql
SELECT "themed_area" FROM "rides_and_attractions" WHERE "type"='animal show' AND "opened"='2010';
## Task Generate a SQL query to answer the following question: `What themed area opened in 2010 as an animal show?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rides_and_attractions" ( "name" text, "type" text, "themed_area" text, "manufacturer" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `What themed area opened in 2010 as an animal show?`: ```sql
SELECT "visitor" FROM "game_log" WHERE "home"='minnesota';
## Task Generate a SQL query to answer the following question: `Which visitor lives in Minnesota?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which visitor lives in Minnesota?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='november 21';
## Task Generate a SQL query to answer the following question: `What was the score on november 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on november 21?`: ```sql
SELECT "lead" FROM "teams" WHERE "second"='cathrine norberg' AND "third"='anna rindeskog';
## Task Generate a SQL query to answer the following question: `Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "season" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the lead in the season where Cathrine Norberg is second and Anna Rindeskog is third?`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=21;
## Task Generate a SQL query to answer the following question: `What is the score of game 21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of game 21?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='december 22';
## Task Generate a SQL query to answer the following question: `What is the score of the game on December 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the game on December 22?`: ```sql
SELECT "record" FROM "game_log" WHERE "game">24;
## Task Generate a SQL query to answer the following question: `What is the record when the game is greater than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when the game is greater than 24?`: ```sql
SELECT MAX("market_value_billion") FROM "2013_list" WHERE "rank"='02 2' AND "sales_billion">113.1;
## Task Generate a SQL query to answer the following question: `What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_list" ( "rank" text, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?`: ```sql
SELECT "rank" FROM "2013_list" WHERE "headquarters"='united kingdom' AND "sales_billion"=370.9;
## Task Generate a SQL query to answer the following question: `What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_list" ( "rank" text, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?`: ```sql
SELECT MIN("profits_billion") FROM "2013_list" WHERE "market_value_billion"<201.3 AND "headquarters"='united states' AND "company"='jpmorgan chase';
## Task Generate a SQL query to answer the following question: `What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_list" ( "rank" text, "company" text, "headquarters" text, "industry" text, "sales_billion" real, "profits_billion" real, "assets_billion" real, "market_value_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?`: ```sql
SELECT "status" FROM "communities" WHERE "area_km_2">5.2 AND "census_ranking"='2,531 of 5,008';
## Task Generate a SQL query to answer the following question: `What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the community that has an area larger than 5.2 sq km, and a Census Ranking of 2,531 of 5,008?`: ```sql
SELECT "population" FROM "communities" WHERE "official_name"='saint-andré';
## Task Generate a SQL query to answer the following question: `What is saint-andré's population?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is saint-andré's population?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"=12;
## Task Generate a SQL query to answer the following question: `what's the results of week 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the results of week 12?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='76,202';
## Task Generate a SQL query to answer the following question: `What opponent has 76,202 attendance ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent has 76,202 attendance ?`: ```sql
SELECT "fis_nordic_world_ski_championships" FROM "men_s_15_km" WHERE "winter_olympics"=1968;
## Task Generate a SQL query to answer the following question: `What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_15_km" ( "winner" text, "country" text, "winter_olympics" real, "fis_nordic_world_ski_championships" real, "holmenkollen" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FIS Nordic World Ski Championship years when the winter Olympics took place in 1968?`: ```sql
SELECT "country" FROM "men_s_15_km" WHERE "fis_nordic_world_ski_championships"<1989 AND "winter_olympics"<1980 AND "holmenkollen"='1956';
## Task Generate a SQL query to answer the following question: `Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men_s_15_km" ( "winner" text, "country" text, "winter_olympics" real, "fis_nordic_world_ski_championships" real, "holmenkollen" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?`: ```sql
SELECT COUNT("laps") FROM "250cc_classification" WHERE "grid"<2;
## Task Generate a SQL query to answer the following question: `When the Grids is less than 2 what are the total laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `When the Grids is less than 2 what are the total laps?`: ```sql
SELECT "player" FROM "first_round" WHERE "to_par"='–1';
## Task Generate a SQL query to answer the following question: `Which Player has a To par of –1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a To par of –1?`: ```sql
SELECT "player" FROM "first_round" WHERE "to_par"='–4';
## Task Generate a SQL query to answer the following question: `Which Player has a To par of –4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a To par of –4?`: ```sql
SELECT "place" FROM "first_round" WHERE "score">68 AND "player"='david ogrin';
## Task Generate a SQL query to answer the following question: `Which Place has a Score larger than 68, and a Player of david ogrin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Place has a Score larger than 68, and a Player of david ogrin?`: ```sql
SELECT "player" FROM "first_round" WHERE "place"='t2';
## Task Generate a SQL query to answer the following question: `Which Player has a Place of t2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Place of t2?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='dq (eye gouging)';
## Task Generate a SQL query to answer the following question: `What event did Mikhail Avetisyan win by method of DQ (eye gouging)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What event did Mikhail Avetisyan win by method of DQ (eye gouging)?`: ```sql
SELECT "khtml" FROM "grammar_and_rules" WHERE "gecko"='font';
## Task Generate a SQL query to answer the following question: `For the item that has a Gecko of 'font', what is the KHTML value?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `For the item that has a Gecko of 'font', what is the KHTML value?`: ```sql
SELECT "prince_xml" FROM "grammar_and_rules" WHERE "gecko"='no' AND "web_kit"='nightly build';
## Task Generate a SQL query to answer the following question: `What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?`: ```sql
SELECT "gecko" FROM "grammar_and_rules" WHERE "trident"='font';
## Task Generate a SQL query to answer the following question: `What is the Gecko value for the item that has a Trident value of 'font'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Gecko value for the item that has a Trident value of 'font'?`: ```sql
SELECT "gecko" FROM "grammar_and_rules" WHERE "prince_xml"='yes' AND "khtml"='yes';
## Task Generate a SQL query to answer the following question: `What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Gecko value for the item that has a Prince XML value of 'no' and a KHTML value of 'yes'?`: ```sql
SELECT "trident" FROM "grammar_and_rules" WHERE "gecko"='19.0';
## Task Generate a SQL query to answer the following question: `Which Trident version has a Gecko value of 19.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Trident version has a Gecko value of 19.0?`: ```sql
SELECT "web_kit" FROM "grammar_and_rules" WHERE "prince_xml"='font';
## Task Generate a SQL query to answer the following question: `For the item with a Prince XML value of 'font', what is the WebKit value?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grammar_and_rules" ( "trident" text, "gecko" text, "web_kit" text, "khtml" text, "presto" text, "prince_xml" text ); ### SQL Given the database schema, here is the SQL query that answers `For the item with a Prince XML value of 'font', what is the WebKit value?`: ```sql
SELECT AVG("played") FROM "torneo_apertura" WHERE "team"='cerro corá' AND "losses">4;
## Task Generate a SQL query to answer the following question: `Which Played has a Team of cerro corá, and Losses larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Played has a Team of cerro corá, and Losses larger than 4?`: ```sql