output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "value" FROM "numbers_from_100_10_000_000" WHERE "other"='muoy roy';
## Task Generate a SQL query to answer the following question: `What number value has the Other transliteration of muoy roy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What number value has the Other transliteration of muoy roy?`: ```sql
SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "ala_lc"='muay bân';
## Task Generate a SQL query to answer the following question: `What is the word form for the ALA-LC transliteration of muay bân?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "other" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the word form for the ALA-LC transliteration of muay bân?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='76-81';
## Task Generate a SQL query to answer the following question: `Name the loss when the record is 76-81` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the loss when the record is 76-81`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "silver">2 AND "gold">7;
## Task Generate a SQL query to answer the following question: `Which average bronze had a silver greater than 2 and a gold larger than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which average bronze had a silver greater than 2 and a gold larger than 7?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "total"=11 AND "silver">4;
## Task Generate a SQL query to answer the following question: `When the total was 11 and silver was greater than 4 what was the highest gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `When the total was 11 and silver was greater than 4 what was the highest gold?`: ```sql
SELECT COUNT("bronze") FROM "medal_table" WHERE "total"<4 AND "gold">1;
## Task Generate a SQL query to answer the following question: `How many bronze had a total less than 4 and gold bigger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze had a total less than 4 and gold bigger than 1?`: ```sql
SELECT MIN("enrollment") FROM "canada_west_football_conference_hardy_tr" WHERE "capacity">'35,650';
## Task Generate a SQL query to answer the following question: `What is the enrollment associated with a capacity greater then 35,650?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "first_season" real, "head_coach" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the enrollment associated with a capacity greater then 35,650?`: ```sql
SELECT "date" FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "opposing_pitcher"='jack morris' AND "inning"='4th';
## Task Generate a SQL query to answer the following question: `Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has an Opposing Pitcher of jack morris, and an Inning of 4th?`: ```sql
SELECT AVG("home_run") FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "game"=89;
## Task Generate a SQL query to answer the following question: `Which average Home Run has a Game of 89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which average Home Run has a Game of 89?`: ```sql
SELECT "team" FROM "mc_gwire_s_rookie_record_49_home_runs" WHERE "home_run"=27;
## Task Generate a SQL query to answer the following question: `Which team has a Home Run of 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mc_gwire_s_rookie_record_49_home_runs" ( "home_run" real, "game" real, "date" text, "inning" text, "location" text, "opposing_pitcher" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has a Home Run of 27?`: ```sql
SELECT "assist_pass" FROM "international_goals" WHERE "score"='1-0' AND "goal"='5';
## Task Generate a SQL query to answer the following question: `Which Assist/pass has a Score of 1-0, and a Goal of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Assist/pass has a Score of 1-0, and a Goal of 5?`: ```sql
SELECT "assist_pass" FROM "international_goals" WHERE "result"='6-2';
## Task Generate a SQL query to answer the following question: `Which Assist/pass has a Result of 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Assist/pass has a Result of 6-2?`: ```sql
SELECT "assist_pass" FROM "international_goals" WHERE "goal"='5';
## Task Generate a SQL query to answer the following question: `Which Assist/pass has a Goal of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Assist/pass has a Goal of 5?`: ```sql
SELECT "location" FROM "international_goals" WHERE "goal"='2';
## Task Generate a SQL query to answer the following question: `Which location has a Goal of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location has a Goal of 2?`: ```sql
SELECT "lineup" FROM "international_goals" WHERE "location"='usa virginia beach';
## Task Generate a SQL query to answer the following question: `Which lineup has a Location of usa virginia beach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which lineup has a Location of usa virginia beach?`: ```sql
SELECT "date" FROM "international_goals" WHERE "score"='5-1';
## Task Generate a SQL query to answer the following question: `Which date had a score of 5-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date had a score of 5-1?`: ```sql
SELECT "result" FROM "international_goals" WHERE "score"='2-1';
## Task Generate a SQL query to answer the following question: `What result had a score of 2-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What result had a score of 2-1?`: ```sql
SELECT "date" FROM "international_goals" WHERE "score"='3-2';
## Task Generate a SQL query to answer the following question: `Which date had a score of 3-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date had a score of 3-2?`: ```sql
SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "engine"='porsche v12' AND "pts"<0;
## Task Generate a SQL query to answer the following question: `What is the oldest model Porsche v12 that has points less than or equal to 0.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the oldest model Porsche v12 that has points less than or equal to 0.`: ```sql
SELECT "design" FROM "1992_winter_olympics" WHERE "theme"='alpine skiing';
## Task Generate a SQL query to answer the following question: `Which design uses the theme alpine skiing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1992_winter_olympics" ( "date_of_issue" text, "theme" text, "denomination" text, "printer" text, "quantity" text, "design" text, "perforation" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which design uses the theme alpine skiing?`: ```sql
SELECT "date_of_issue" FROM "1992_winter_olympics" WHERE "theme"='bobsleigh';
## Task Generate a SQL query to answer the following question: `When did the Theme of bobsleigh release?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1992_winter_olympics" ( "date_of_issue" text, "theme" text, "denomination" text, "printer" text, "quantity" text, "design" text, "perforation" text, "first_day_cover_cancellation" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the Theme of bobsleigh release?`: ```sql
SELECT MAX("pts") FROM "complete_world_championship_formula_one_" WHERE "year">1952 AND "chassis"='connaught type a';
## Task Generate a SQL query to answer the following question: `What is the highest pts after 1952 with connaught type a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest pts after 1952 with connaught type a?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `Who did the Chiefs play in Week 8?` ### 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 `Who did the Chiefs play in Week 8?`: ```sql
SELECT "week" FROM "schedule" WHERE "attendance">'41,379' AND "date"='october 11, 1970';
## Task Generate a SQL query to answer the following question: `Which week was on October 11, 1970 and an attendance larger than 41,379.` ### 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 `Which week was on October 11, 1970 and an attendance larger than 41,379.`: ```sql
SELECT "surface" FROM "doubles_runner_up_16" WHERE "date"='26 august 2001';
## Task Generate a SQL query to answer the following question: `On what surface was the 26 August 2001 tournament played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_runner_up_16" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `On what surface was the 26 August 2001 tournament played?`: ```sql
SELECT AVG("capacity") FROM "project_overview" WHERE "suites"='150';
## Task Generate a SQL query to answer the following question: `What is the average capacity for 150 suites?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "project_overview" ( "project" text, "year" text, "location" text, "capacity" real, "suites" text, "architect" text, "cost" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average capacity for 150 suites?`: ```sql
SELECT "location" FROM "project_overview" WHERE "project"='eren talu bidding project';
## Task Generate a SQL query to answer the following question: `Where is the Eren Talu bidding project located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "project_overview" ( "project" text, "year" text, "location" text, "capacity" real, "suites" text, "architect" text, "cost" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the Eren Talu bidding project located?`: ```sql
SELECT "location" FROM "project_overview" WHERE "capacity">'52,000';
## Task Generate a SQL query to answer the following question: `Which location has a capacity larger than 52,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "project_overview" ( "project" text, "year" text, "location" text, "capacity" real, "suites" text, "architect" text, "cost" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location has a capacity larger than 52,000?`: ```sql
SELECT MAX("capacity") FROM "project_overview" WHERE "location"='aslantepe' AND "year"='2002-2005';
## Task Generate a SQL query to answer the following question: `What is the highest capacity in Aslantepe in 2002-2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "project_overview" ( "project" text, "year" text, "location" text, "capacity" real, "suites" text, "architect" text, "cost" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest capacity in Aslantepe in 2002-2005?`: ```sql
SELECT "ungegn" FROM "numbers_from_100_10_000_000" WHERE "khmer">'១០០០០០០០០';
## Task Generate a SQL query to answer the following question: `What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the UNGEGN, when the Khmer is greater than ១០០០០០០០០?`: ```sql
SELECT "value" FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred million\"';
## Task Generate a SQL query to answer the following question: `What is the Value, when the Notes are literally "one hundred million"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Value, when the Notes are literally "one hundred million"?`: ```sql
SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred thousand\"';
## Task Generate a SQL query to answer the following question: `What is the Word Form, when the Notes are literally "one hundred thousand"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Word Form, when the Notes are literally "one hundred thousand"?`: ```sql
SELECT "word_form" FROM "numbers_from_100_10_000_000" WHERE "khmer">'១០០០០០' AND "ungegn"='(muŏy) dáb leăn';
## Task Generate a SQL query to answer the following question: `What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Word Form, when the Khmer is greater than ១០០០០០, and the UNGEGN is (muŏy) dáb leăn?`: ```sql
SELECT COUNT("khmer") FROM "numbers_from_100_10_000_000" WHERE "notes"='literally \"one hundred thousand\"';
## Task Generate a SQL query to answer the following question: `What is the total amount of Khmer, when the Notes are literally "one hundred thousand"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total amount of Khmer, when the Notes are literally "one hundred thousand"?`: ```sql
SELECT "ungegn" FROM "numbers_from_100_10_000_000" WHERE "value"='10 000';
## Task Generate a SQL query to answer the following question: `What is the UNGEGN, when the Value is 10 000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "numbers_from_100_10_000_000" ( "value" text, "khmer" real, "word_form" text, "ungegn" text, "ala_lc" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the UNGEGN, when the Value is 10 000?`: ```sql
SELECT "2008" FROM "singles_performance_timeline" WHERE "2007"='wta premier mandatory tournaments';
## Task Generate a SQL query to answer the following question: `Name the 2008 for wta premier mandatory tournaments of 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2008 for wta premier mandatory tournaments of 2007`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='beijing';
## Task Generate a SQL query to answer the following question: `Name the tournament of beijing` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tournament of beijing`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2007"='2r' AND "tournament"='wimbledon';
## Task Generate a SQL query to answer the following question: `Name the 2009 for 2007 of 2r and tournament of wimbledon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2009 for 2007 of 2r and tournament of wimbledon`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "2010"='olympic games';
## Task Generate a SQL query to answer the following question: `Name the 2011 for 2010 of olympic games` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2011 for 2010 of olympic games`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='tokyo';
## Task Generate a SQL query to answer the following question: `Name the 2011 for tokyo tournament` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2011 for tokyo tournament`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "tournament"='wta premier mandatory tournaments';
## Task Generate a SQL query to answer the following question: `Name the 2009 for wta premier mandatory tournaments` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2009 for wta premier mandatory tournaments`: ```sql
SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='marija ulitina';
## Task Generate a SQL query to answer the following question: `Who won Mixed Doubles the year that Marija Ulitina won the Women's Singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Mixed Doubles the year that Marija Ulitina won the Women's Singles?`: ```sql
SELECT "men_s_singles" FROM "previous_winners" WHERE "women_s_singles"='hilde themel';
## Task Generate a SQL query to answer the following question: `Who won Men's singles the year that Hilde Themel won Women's singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Men's singles the year that Hilde Themel won Women's singles?`: ```sql
SELECT "mixed_doubles" FROM "previous_winners" WHERE "men_s_singles"='pablo abian';
## Task Generate a SQL query to answer the following question: `Who won Mixed doubles the year that Pablo Abian won Men's singles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Mixed doubles the year that Pablo Abian won Men's singles?`: ```sql
SELECT "year" FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 500g';
## Task Generate a SQL query to answer the following question: `Which year did Ray Crawford the Kurtis Kraft 500g chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which year did Ray Crawford the Kurtis Kraft 500g chassis?`: ```sql
SELECT "city" FROM "averages" WHERE "july_avg_high_f"<84 AND "january_avg_low_f"='34.3';
## Task Generate a SQL query to answer the following question: `What city had a july high below 84, and a january low of 34.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "city" text, "january_avg_high_f" text, "january_avg_low_f" text, "july_avg_high_f" real, "july_avg_low_f" real ); ### SQL Given the database schema, here is the SQL query that answers `What city had a july high below 84, and a january low of 34.3?`: ```sql
SELECT COUNT("july_avg_low_f") FROM "averages" WHERE "january_avg_high_f"='30.4';
## Task Generate a SQL query to answer the following question: `What is the july average low associated with a january average high of 30.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "averages" ( "city" text, "january_avg_high_f" text, "january_avg_low_f" text, "july_avg_high_f" real, "july_avg_low_f" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the july average low associated with a january average high of 30.4?`: ```sql
SELECT "class" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "identifier"='cbua-fm';
## Task Generate a SQL query to answer the following question: `Which class has an identifier of CBUA-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cfwh_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); ### SQL Given the database schema, here is the SQL query that answers `Which class has an identifier of CBUA-FM?`: ```sql
SELECT "city_of_license" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "frequency"='90.1 fm';
## Task Generate a SQL query to answer the following question: `What is the city of license for the frequency 90.1 FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cfwh_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city of license for the frequency 90.1 FM?`: ```sql
SELECT "power" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "city_of_license"='beaver creek';
## Task Generate a SQL query to answer the following question: `What is the power when the city of license is Beaver Creek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cfwh_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power when the city of license is Beaver Creek?`: ```sql
SELECT "city_of_license" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "class"='lp' AND "identifier"='cbdk';
## Task Generate a SQL query to answer the following question: `What is the city of license when the class is LP and the identifier is CBDK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cfwh_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city of license when the class is LP and the identifier is CBDK?`: ```sql
SELECT "class" FROM "s_rebroadcaster_of_cfwh_fm" WHERE "frequency"='560 am';
## Task Generate a SQL query to answer the following question: `What is the class when the frequency is 560 AM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cfwh_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power" text, "class" text, "rec_net" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the class when the frequency is 560 AM?`: ```sql
SELECT MIN("assets_us_billion") FROM "forbes_global_2000" WHERE "company"='piraeus bank' AND "revenues_us_billion"<3.9;
## Task Generate a SQL query to answer the following question: `What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "forbes_global_2000" ( "rank" real, "company" text, "revenues_us_billion" real, "profit_us_billion" real, "assets_us_billion" real, "market_value_us_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the smallest assets with a Company of piraeus bank, and a Revenue (US$ billion) smaller than 3.9?`: ```sql
SELECT AVG("market_value_us_billion") FROM "forbes_global_2000" WHERE "revenues_us_billion">6.2 AND "company"='national bank of greece' AND "rank"<1;
## Task Generate a SQL query to answer the following question: `What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "forbes_global_2000" ( "rank" real, "company" text, "revenues_us_billion" real, "profit_us_billion" real, "assets_us_billion" real, "market_value_us_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average market value with a revenue greater than 6.2, a Company of national bank of greece, and a Rank smaller than 1?`: ```sql
SELECT "company" FROM "forbes_global_2000" WHERE "market_value_us_billion">1 AND "assets_us_billion"<10.7 AND "rank"<10 AND "revenues_us_billion"=9.3;
## Task Generate a SQL query to answer the following question: `Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "forbes_global_2000" ( "rank" real, "company" text, "revenues_us_billion" real, "profit_us_billion" real, "assets_us_billion" real, "market_value_us_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?`: ```sql
SELECT "venue" FROM "west_indies_in_england" WHERE "result"='eng by 6 wkts';
## Task Generate a SQL query to answer the following question: `Tell me the venue with result of eng by 6 wkts` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "west_indies_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the venue with result of eng by 6 wkts`: ```sql
SELECT "home_captain" FROM "west_indies_in_england" WHERE "venue"='the oval';
## Task Generate a SQL query to answer the following question: `Name the Home captain for venue of the oval` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "west_indies_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Home captain for venue of the oval`: ```sql
SELECT "away_captain" FROM "west_indies_in_england" WHERE "result"='wi by 9 wkts';
## Task Generate a SQL query to answer the following question: `Name the away captain with result of wi by 9 wkts` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "west_indies_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the away captain with result of wi by 9 wkts`: ```sql
SELECT "venue" FROM "west_indies_in_england" WHERE "result"='eng by 6 wkts';
## Task Generate a SQL query to answer the following question: `Name the venue for eng by 6 wkts` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "west_indies_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the venue for eng by 6 wkts`: ```sql
SELECT "last_performance" FROM "billy_elliot" WHERE "style"='street dance' AND "name"='george maguire';
## Task Generate a SQL query to answer the following question: `What is the date of the last performance when the style is street dance and the name is George Maguire?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the last performance when the style is street dance and the name is George Maguire?`: ```sql
SELECT "last_performance" FROM "billy_elliot" WHERE "name"='liam mower';
## Task Generate a SQL query to answer the following question: `What is the date of the last performance for Liam Mower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the last performance for Liam Mower?`: ```sql
SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='weslake v12' AND "year"<1966;
## Task Generate a SQL query to answer the following question: `How many points did the Weslake v12 get in 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the Weslake v12 get in 1966?`: ```sql
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1965 AND "chassis"='ferrari 158';
## Task Generate a SQL query to answer the following question: `What was the name of the team in 1965 driving the Ferrari 158?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the team in 1965 driving the Ferrari 158?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='weslake v12';
## Task Generate a SQL query to answer the following question: `What Chassis had a Weslake v12 in it?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What Chassis had a Weslake v12 in it?`: ```sql
SELECT "copaxone" FROM "summary_table" WHERE "mitoxantrone"='no' AND "betaseron_beta_1b"='no';
## Task Generate a SQL query to answer the following question: `Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "interferon_beta_1a" text, "betaseron_beta_1b" text, "copaxone" text, "mitoxantrone" text, "tysabri" text, "fingolimod_gylenya" text, "teriflunomide" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the copaxone with mitoxantrone of no and betaseron (beta-1b) of no`: ```sql
SELECT "test_career" FROM "see_also" WHERE "tests">41 AND "catches">33 AND "total_dismissals"=147;
## Task Generate a SQL query to answer the following question: `Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "player" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); ### SQL Given the database schema, here is the SQL query that answers `Who has a career that has test larger than 41, catches over 33, and a total dismissals rate of 147?`: ```sql
SELECT AVG("total_dismissals") FROM "see_also" WHERE "tests"=83 AND "catches"<33;
## Task Generate a SQL query to answer the following question: `What is the average dismissals of 83 test and catches less than 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "player" text, "test_career" text, "tests" real, "catches" real, "stumpings" real, "total_dismissals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average dismissals of 83 test and catches less than 33?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='tony rominger' AND "stage"='17';
## Task Generate a SQL query to answer the following question: `Which winner has a points classification of Tony Rominger at stage 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which winner has a points classification of Tony Rominger at stage 17?`: ```sql
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='mariano piccoli' AND "points_classification"='mario cipollini' AND "winner"='laudelino cubino';
## Task Generate a SQL query to answer the following question: `Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which stage has a mountains classification of Mariano Piccoli, a points classification of Mario Cipollini and was won by Laudelino Cubino?`: ```sql
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "stage"='16';
## Task Generate a SQL query to answer the following question: `Who won stage 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won stage 16?`: ```sql
SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "general_classification"='tony rominger' AND "winner"='maurizio fondriest';
## Task Generate a SQL query to answer the following question: `Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which mountains classification has a general classification of Tony Rominger and was won by Maurizio Fondriest?`: ```sql
SELECT "general_classification" FROM "classification_leadership_by_stage" WHERE "points_classification"='tony rominger' AND "stage"='18';
## Task Generate a SQL query to answer the following question: `What is the general classification at stage 18 that has a points classification of Tony Rominger?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the general classification at stage 18 that has a points classification of Tony Rominger?`: ```sql
SELECT "stage" FROM "classification_leadership_by_stage" WHERE "mountains_classification"='mariano piccoli' AND "winner"='giuseppe citterio';
## Task Generate a SQL query to answer the following question: `Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_by_stage" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "trofeo_fast_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which stage has a mountains classification of Mariano Piccoli and was won by Giuseppe Citterio?`: ```sql
SELECT "first_elected" FROM "see_also" WHERE "member"='john armitage';
## Task Generate a SQL query to answer the following question: `What is the year First elected when the Member is John Armitage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year First elected when the Member is John Armitage?`: ```sql
SELECT "electorate" FROM "see_also" WHERE "first_elected"='1974' AND "party"='country';
## Task Generate a SQL query to answer the following question: `Who is the Electorate, when the year for First elected is 1974, and when the Party is Country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Electorate, when the year for First elected is 1974, and when the Party is Country?`: ```sql
SELECT "member" FROM "see_also" WHERE "party"='alp' AND "electorate"='grey';
## Task Generate a SQL query to answer the following question: `Who is the Member when the Party is Alp, and when the Electorate is Grey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Member when the Party is Alp, and when the Electorate is Grey?`: ```sql
SELECT "state" FROM "see_also" WHERE "first_elected"='1966' AND "member"='alan jarman';
## Task Generate a SQL query to answer the following question: `What is the State, when the year First elected is 1966, and when the Member is Alan Jarman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the State, when the year First elected is 1966, and when the Member is Alan Jarman?`: ```sql
SELECT "first_elected" FROM "see_also" WHERE "party"='alp' AND "state"='qld';
## Task Generate a SQL query to answer the following question: `What is the year First Elected, when the Party is Alp, and when the State is qld?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year First Elected, when the Party is Alp, and when the State is qld?`: ```sql
SELECT "first_elected" FROM "see_also" WHERE "state"='vic' AND "member"='hon don chipp';
## Task Generate a SQL query to answer the following question: `What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "first_elected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp?`: ```sql
SELECT COUNT("starts") FROM "european_tour_professional_career_summar" WHERE "wins">2 AND "money_list_rank">1;
## Task Generate a SQL query to answer the following question: `Which total number of starts has more than 2 wins and a money list rank greater than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_professional_career_summar" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Which total number of starts has more than 2 wins and a money list rank greater than 1?`: ```sql
SELECT SUM("wins") FROM "european_tour_professional_career_summar" WHERE "earnings">'2,864,342' AND "money_list_rank"=3;
## Task Generate a SQL query to answer the following question: `What is the sum of number of wins that have earnings of more than (€)2,864,342 and money list rank of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_professional_career_summar" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of number of wins that have earnings of more than (€)2,864,342 and money list rank of 3?`: ```sql
SELECT SUM("top_10") FROM "european_tour_professional_career_summar" WHERE "wins">2 AND "top_25"<16;
## Task Generate a SQL query to answer the following question: `What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_professional_career_summar" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Top 10 performances that have more than 2 wins and is higher than number 16 in the Top 25?`: ```sql
SELECT MAX("money_list_rank") FROM "european_tour_professional_career_summar" WHERE "top_25"<2;
## Task Generate a SQL query to answer the following question: `What is the greatest money list ranking that has a Top 25 higher than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_tour_professional_career_summar" ( "year" text, "starts" real, "cuts_made" real, "wins" real, "top_10" real, "top_25" real, "earnings" real, "money_list_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the greatest money list ranking that has a Top 25 higher than 2?`: ```sql
SELECT "away_team" FROM "northern_section" WHERE "attendance"='3,395';
## Task Generate a SQL query to answer the following question: `What Away team had an Attendance of 3,395?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What Away team had an Attendance of 3,395?`: ```sql
SELECT "home_team" FROM "northern_section" WHERE "attendance"='2,776';
## Task Generate a SQL query to answer the following question: `What Home team had an Attendance of 2,776?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What Home team had an Attendance of 2,776?`: ```sql
SELECT "engine" FROM "complete_formula_one_results" WHERE "points">1 AND "year">1981;
## Task Generate a SQL query to answer the following question: `Which engine has more than 1 point after 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which engine has more than 1 point after 1981?`: ```sql
SELECT "engine" FROM "complete_formula_one_results" WHERE "entrant"='marlboro team alfa romeo' AND "chassis"='alfa romeo 179';
## Task Generate a SQL query to answer the following question: `Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which engine did Marlboro Team Alfa Romeo used with a chassis of alfa romeo 179?`: ```sql
SELECT "date" FROM "personal_bests" WHERE "surface"='road' AND "event"='half marathon';
## Task Generate a SQL query to answer the following question: `When has a surface of road and an event of half marathon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_bests" ( "surface" text, "event" text, "time_h_m_s" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `When has a surface of road and an event of half marathon?`: ```sql
SELECT "surface" FROM "personal_bests" WHERE "place"='lappeenranta';
## Task Generate a SQL query to answer the following question: `Which Surface has a Place of lappeenranta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_bests" ( "surface" text, "event" text, "time_h_m_s" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface has a Place of lappeenranta?`: ```sql
SELECT "date" FROM "personal_bests" WHERE "time_h_m_s"='1:01:42';
## Task Generate a SQL query to answer the following question: `What is the Date that has 1:01:42?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_bests" ( "surface" text, "event" text, "time_h_m_s" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date that has 1:01:42?`: ```sql
SELECT "time_h_m_s" FROM "personal_bests" WHERE "date"='13 october 2010';
## Task Generate a SQL query to answer the following question: `What is the Time ( h : m : s ) on 13 october 2010` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_bests" ( "surface" text, "event" text, "time_h_m_s" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time ( h : m : s ) on 13 october 2010`: ```sql
SELECT "place" FROM "personal_bests" WHERE "time_h_m_s"='7:44.15';
## Task Generate a SQL query to answer the following question: `What is the Place with Time 7:44.15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_bests" ( "surface" text, "event" text, "time_h_m_s" text, "date" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Place with Time 7:44.15?`: ```sql
SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "laps"<304 AND "year">2001;
## Task Generate a SQL query to answer the following question: `Which Class Pos have Laps smaller than 304, and a Year after 2001?` ### 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, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Class Pos have Laps smaller than 304, and a Year after 2001?`: ```sql
SELECT MIN("laps") FROM "24_hours_of_le_mans_results" WHERE "year">2002 AND "co_drivers"='alexander frei bruno besson';
## Task Generate a SQL query to answer the following question: `What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson?` ### 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, "class" text, "tyres" text, "team" text, "co_drivers" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Laps that has a Year after 2002 with Alexander Frei Bruno Besson?`: ```sql
SELECT "crowd" FROM "regular_season" WHERE "score"='w 7-6';
## Task Generate a SQL query to answer the following question: `How many people attended the score of w 7-6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people attended the score of w 7-6?`: ```sql
SELECT "loss" FROM "regular_season" WHERE "score"='w 4-3';
## Task Generate a SQL query to answer the following question: `Who lost that has a score of w 4-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who lost that has a score of w 4-3?`: ```sql
SELECT "date" FROM "regular_season" WHERE "loss"='schrom';
## Task Generate a SQL query to answer the following question: `Loss of schrom happened on what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Loss of schrom happened on what date?`: ```sql
SELECT "date" FROM "regular_season" WHERE "opponent"='@mil' AND "record"='45-16';
## Task Generate a SQL query to answer the following question: `Opponent of @mil, and a Record of 45-16 happened on what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponent of @mil, and a Record of 45-16 happened on what date?`: ```sql
SELECT "record" FROM "regular_season" WHERE "loss"='willis';
## Task Generate a SQL query to answer the following question: `Loss of willis has what record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Loss of willis has what record?`: ```sql
SELECT "opponent" FROM "regular_season" WHERE "loss"='wilcox' AND "date"='jun 18';
## Task Generate a SQL query to answer the following question: `Loss of wilcox, and a Date of jun 18 had what opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "crowd" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Loss of wilcox, and a Date of jun 18 had what opponent?`: ```sql