output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "location" FROM "team" WHERE "year"<1994; |
## Task
Generate a SQL query to answer the following question:
`What location is previous to 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "team" (
"year" real,
"location" text,
"gold" text,
"silver" text,
"bronze" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location is previous to 1994?`:
```sql
|
SELECT "men_s_doubles" FROM "past_winners" WHERE "year"<1979 AND "women_s_doubles"='carol silman prina ben shushan'; |
## Task
Generate a SQL query to answer the following question:
`Who won the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "past_winners" (
"year" real,
"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 the men's doubles before 1979 when carol silman prina ben shushan won the women's doubles?`:
```sql
|
SELECT "college" FROM "nfl_draft" WHERE "pick_num"<98 AND "round"='round 4'; |
## Task
Generate a SQL query to answer the following question:
`What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college(s) did the player(s) picked in round 4 with a pick number less than 98 play for?`:
```sql
|
SELECT "pick_num" FROM "nfl_draft" WHERE "round"='round 8'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick number for the player(s) drafted in round 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pick number for the player(s) drafted in round 8?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "pick_num"=125; |
## Task
Generate a SQL query to answer the following question:
`What position(s) did the player(s) with a pick number of 125 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"round" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position(s) did the player(s) with a pick number of 125 play?`:
```sql
|
SELECT AVG("extra_points") FROM "michigan_48_case_6" WHERE "player"='james lawrence' AND "touchdowns"<1; |
## Task
Generate a SQL query to answer the following question:
`What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_48_case_6" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?`:
```sql
|
SELECT MIN("touchdowns") FROM "michigan_48_case_6" WHERE "player"='total' AND "field_goals">0; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_48_case_6" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?`:
```sql
|
SELECT "date" FROM "1969" WHERE "results"='4:0'; |
## Task
Generate a SQL query to answer the following question:
`On what Date were the Results¹ 4:0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date were the Results¹ 4:0?`:
```sql
|
SELECT "date" FROM "1969" WHERE "results"='5:1'; |
## Task
Generate a SQL query to answer the following question:
`On what Date were the Results¹ 5:1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date were the Results¹ 5:1?`:
```sql
|
SELECT "date" FROM "1969" WHERE "results"='4:0'; |
## Task
Generate a SQL query to answer the following question:
`On what Date were the Results¹ 4:0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1969" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date were the Results¹ 4:0?`:
```sql
|
SELECT "knots_knots_pseudoknot_prediction" FROM "comparative_methods" WHERE "name"='tfold'; |
## Task
Generate a SQL query to answer the following question:
`What is the pseudoknot prediction of the software named tfold?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparative_methods" (
"name" text,
"number_of_sequences_number_of_sequences" text,
"alignment_alignment_predicts_an_alignment" text,
"structure_structure_predicts_structure" text,
"knots_knots_pseudoknot_prediction" text,
"link" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pseudoknot prediction of the software named tfold?`:
```sql
|
SELECT "chilean" FROM "selected_vocabulary_differences" WHERE "castilian"='ordenador'; |
## Task
Generate a SQL query to answer the following question:
`What Chilean word is used for the Castilian word ordenador?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Chilean word is used for the Castilian word ordenador?`:
```sql
|
SELECT "italian" FROM "selected_vocabulary_differences" WHERE "mexican"='frijol'; |
## Task
Generate a SQL query to answer the following question:
`What is the Italian word for the Mexican word frijol?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Italian word for the Mexican word frijol?`:
```sql
|
SELECT "castilian" FROM "selected_vocabulary_differences" WHERE "italian"='auto(mobile)'; |
## Task
Generate a SQL query to answer the following question:
`What word would a Castilian speaker use for the Italian word auto(mobile)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What word would a Castilian speaker use for the Italian word auto(mobile)?`:
```sql
|
SELECT "castilian" FROM "selected_vocabulary_differences" WHERE "italian"='auto(mobile)'; |
## Task
Generate a SQL query to answer the following question:
`What word would a Castilian speaker use for the Italian word auto(mobile)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What word would a Castilian speaker use for the Italian word auto(mobile)?`:
```sql
|
SELECT "italian" FROM "selected_vocabulary_differences" WHERE "andalusian"='coche'; |
## Task
Generate a SQL query to answer the following question:
`How would an Italian say the Andalusian word coche?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selected_vocabulary_differences" (
"rioplatense" text,
"castilian" text,
"andalusian" text,
"mexican" text,
"chilean" text,
"english_us_uk" text,
"italian" text
);
### SQL
Given the database schema, here is the SQL query that answers `How would an Italian say the Andalusian word coche?`:
```sql
|
SELECT "home" FROM "playoffs" WHERE "visitor"='ny rangers' AND "series"='flyers win 4–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Visitor of ny rangers, and a Series of flyers win 4–3?`:
```sql
|
SELECT "score" FROM "playoffs" WHERE "series"='flyers lead 3–2'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has a Series of flyers lead 3–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Series of flyers lead 3–2?`:
```sql
|
SELECT "decision" FROM "playoffs" WHERE "date"='april 25'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Date of april 25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Date of april 25?`:
```sql
|
SELECT "decision" FROM "playoffs" WHERE "date"='april 30'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Date of april 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Date of april 30?`:
```sql
|
SELECT "home" FROM "playoffs" WHERE "series"='series tied 3–3'; |
## Task
Generate a SQL query to answer the following question:
`Which Home has a Series of series tied 3–3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Series of series tied 3–3?`:
```sql
|
SELECT MIN("earnings") FROM "leaders" WHERE "events"=22 AND "rank"<4; |
## Task
Generate a SQL query to answer the following question:
`Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?`:
```sql
|
SELECT MAX("earnings") FROM "leaders" WHERE "player"='corey pavin' AND "rank">4; |
## Task
Generate a SQL query to answer the following question:
`Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?`:
```sql
|
SELECT MIN("wins") FROM "leaders" WHERE "events">22 AND "earnings"='1,543,192' AND "rank"<2; |
## Task
Generate a SQL query to answer the following question:
`Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a Rank smaller than 2 has the lowest wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Events larger than 22, and a Earnings ( $ ) of 1,543,192, and a Rank smaller than 2 has the lowest wins?`:
```sql
|
SELECT MAX("rank") FROM "leaders" WHERE "country"='united states' AND "events"=22 AND "earnings">'1,340,079'; |
## Task
Generate a SQL query to answer the following question:
`Country of united states, and a Events of 22, and a Earnings ( $ ) larger than 1,340,079 has the highest rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Country of united states, and a Events of 22, and a Earnings ( $ ) larger than 1,340,079 has the highest rank?`:
```sql
|
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "enrollment_2010"<980 AND "school"='heritage'; |
## Task
Generate a SQL query to answer the following question:
`What is the mascot with an enrollment (2010) less than 980, and heritage as the school?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment_2010" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"county" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the mascot with an enrollment (2010) less than 980, and heritage as the school?`:
```sql
|
SELECT "class" FROM "arkansas" WHERE "weight"=242; |
## Task
Generate a SQL query to answer the following question:
`What is the class of the player with a weight of 242 pounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "arkansas" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the player with a weight of 242 pounds?`:
```sql
|
SELECT COUNT("games") FROM "arkansas" WHERE "position"='fb'; |
## Task
Generate a SQL query to answer the following question:
`How many games were played by the player at FB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "arkansas" (
"position" text,
"number" real,
"name" text,
"height" text,
"weight" real,
"class" text,
"hometown" text,
"games" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played by the player at FB?`:
```sql
|
SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "round"<5 AND "pick_num">13; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a Round smaller than 5, and a Pick # larger than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Round smaller than 5, and a Pick # larger than 13?`:
```sql
|
SELECT "pick_num" FROM "jacksonville_jaguars_draft_history" WHERE "round"<6 AND "overall">13 AND "college"='penn state'; |
## Task
Generate a SQL query to answer the following question:
`Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?`:
```sql
|
SELECT "name" FROM "jacksonville_jaguars_draft_history" WHERE "overall"=235; |
## Task
Generate a SQL query to answer the following question:
`Which Name has an Overall of 235?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has an Overall of 235?`:
```sql
|
SELECT COUNT("num_of_cosponsors") FROM "legislative_activity" WHERE "date_introduced"='may 22, 2008'; |
## Task
Generate a SQL query to answer the following question:
`How many cosponsors have a Date introduced of may 22, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "legislative_activity" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many cosponsors have a Date introduced of may 22, 2008?`:
```sql
|
SELECT "congress" FROM "legislative_activity" WHERE "num_of_cosponsors"=19; |
## Task
Generate a SQL query to answer the following question:
`Which Congress has a # of cosponsors of 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "legislative_activity" (
"congress" text,
"bill_number_s" text,
"date_introduced" text,
"sponsor_s" text,
"num_of_cosponsors" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Congress has a # of cosponsors of 19?`:
```sql
|
SELECT "date" FROM "full_international_caps_and_goals" WHERE "competition"='friendly match' AND "venue"='auckland'; |
## Task
Generate a SQL query to answer the following question:
`On what date was a friendly match held at Auckland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_international_caps_and_goals" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a friendly match held at Auckland?`:
```sql
|
SELECT "goals" FROM "full_international_caps_and_goals" WHERE "venue"='sydney'; |
## Task
Generate a SQL query to answer the following question:
`What were the goals at Sydney?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "full_international_caps_and_goals" (
"date" text,
"venue" text,
"result" text,
"goals" real,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the goals at Sydney?`:
```sql
|
SELECT COUNT("sets_lost") FROM "statistics" WHERE "sets_won"<0; |
## Task
Generate a SQL query to answer the following question:
`How many sets lost have a sets won less than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "statistics" (
"player" text,
"played" real,
"sets_won" real,
"sets_lost" real,
"legs_won" real,
"legs_lost" real,
"100" real,
"140" real,
"180s" real,
"high_checkout" real,
"3_dart_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many sets lost have a sets won less than 0?`:
```sql
|
SELECT "iata" FROM "destinations" WHERE "city"='sapporo'; |
## Task
Generate a SQL query to answer the following question:
`What shows for IATA for the City of sapporo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for IATA for the City of sapporo?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "iata"='cts'; |
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA shows cts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA shows cts?`:
```sql
|
SELECT "country" FROM "destinations" WHERE "iata"='cju'; |
## Task
Generate a SQL query to answer the following question:
`What is the Country when the IATA shows cju?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Country when the IATA shows cju?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "iata"='mfm'; |
## Task
Generate a SQL query to answer the following question:
`What is the ICAO when the IATA shows mfm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO when the IATA shows mfm?`:
```sql
|
SELECT "icao" FROM "destinations" WHERE "country"='hong kong'; |
## Task
Generate a SQL query to answer the following question:
`What is the ICAO for Hong Kong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ICAO for Hong Kong?`:
```sql
|
SELECT "airport" FROM "destinations" WHERE "icao"='rpvm'; |
## Task
Generate a SQL query to answer the following question:
`What is the Airport when the ICAO shows rpvm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Airport when the ICAO shows rpvm?`:
```sql
|
SELECT MIN("goals_for") FROM "club_records" WHERE "draw"<5 AND "points"<70; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest goals for value with fewer than 5 draws and under 70 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goals for value with fewer than 5 draws and under 70 points?`:
```sql
|
SELECT MIN("goals_against") FROM "club_records" WHERE "points"=83 AND "goal_difference">50; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest goals against value for a team with 83 points and a difference over 50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest goals against value for a team with 83 points and a difference over 50?`:
```sql
|
SELECT MIN("season") FROM "club_records" WHERE "position">12; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest season that has a position over 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest season that has a position over 12?`:
```sql
|
SELECT AVG("goals_for") FROM "club_records" WHERE "position"<12 AND "draw">1 AND "goals_against"<28; |
## Task
Generate a SQL query to answer the following question:
`What is the average goals for with a position under 12, draws over 1, and goals against under 28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "club_records" (
"season" real,
"belonging_league" text,
"matches" real,
"points" real,
"draw" real,
"lose" real,
"goal_difference" real,
"goals_for" real,
"goals_against" real,
"position" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average goals for with a position under 12, draws over 1, and goals against under 28?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='l 17–24'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Opponent with a Result of l 17–24?`
### 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,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Opponent with a Result of l 17–24?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='l 21–34'; |
## Task
Generate a SQL query to answer the following question:
`What Date has a Result of l 21–34?`
### 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,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a Result of l 21–34?`:
```sql
|
SELECT "game_site" FROM "schedule" WHERE "week"<11 AND "date"='october 21, 1973'; |
## Task
Generate a SQL query to answer the following question:
`What Game Site has a Week smaller than 11, and a Date of october 21, 1973?`
### 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,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Game Site has a Week smaller than 11, and a Date of october 21, 1973?`:
```sql
|
SELECT MIN("week") FROM "schedule" WHERE "record"='2–9'; |
## Task
Generate a SQL query to answer the following question:
`What is the value of the lowest Week with a Record of 2–9?`
### 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,
"record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of the lowest Week with a Record of 2–9?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week">13; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent for the game that occurred after week 13?`
### 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 is the opponent for the game that occurred after week 13?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "week"=6; |
## Task
Generate a SQL query to answer the following question:
`What day did the play on week 6?`
### 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 day did the play on week 6?`:
```sql
|
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2009"='1r'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a 2009 result of 1R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a 2009 result of 1R?`:
```sql
|
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='sf' AND "2010"='qf'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a 2010 result of QF and a 2012 result of SF?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a 2010 result of QF and a 2012 result of SF?`:
```sql
|
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2012"='a' AND "2010"='a'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament had a result in 2010 and 2012 of a?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had a result in 2010 and 2012 of a?`:
```sql
|
SELECT "third" FROM "individual_events" WHERE "venue"='rybinsk' AND "round"='6'; |
## Task
Generate a SQL query to answer the following question:
`Who was third during round 6 in Rybinsk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third during round 6 in Rybinsk?`:
```sql
|
SELECT "third" FROM "individual_events" WHERE "round"='14'; |
## Task
Generate a SQL query to answer the following question:
`Who was third in round 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third in round 14?`:
```sql
|
SELECT "venue" FROM "individual_events" WHERE "discipline"='3.3km c prologue'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue with a 3.3km c prologue discipline?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue with a 3.3km c prologue discipline?`:
```sql
|
SELECT "winner" FROM "individual_events" WHERE "date"='28 december 2007'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner on 28 December 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner on 28 December 2007?`:
```sql
|
SELECT "third" FROM "individual_events" WHERE "discipline"='0.8km f sprint'; |
## Task
Generate a SQL query to answer the following question:
`Who was third at the 0.8km f sprint discipline?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual_events" (
"round" text,
"venue" text,
"discipline" text,
"date" text,
"winner" text,
"second" text,
"third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was third at the 0.8km f sprint discipline?`:
```sql
|
SELECT MAX("total_cargo_metric_tonnes") FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs' AND "rank">19; |
## Task
Generate a SQL query to answer the following question:
`What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?`:
```sql
|
SELECT "rank" FROM "2007_final_statistics" WHERE "code_iata_icao"='bkk/vtbs'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the airport with the BKK/VTBS code?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the airport with the BKK/VTBS code?`:
```sql
|
SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "rank"=5; |
## Task
Generate a SQL query to answer the following question:
`Which Matches has champion Rank of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rankings_table" (
"rank" real,
"matches_as_champion" real,
"reigns_as_champion" real,
"title_matches_won" real,
"title_last_held" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches has champion Rank of 5?`:
```sql
|
SELECT MAX("matches_as_champion") FROM "rankings_table" WHERE "title_last_held"='24 march 1963' AND "rank">44; |
## Task
Generate a SQL query to answer the following question:
`Which Matches is on 24 march 1963 with a Rank larger than 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "rankings_table" (
"rank" real,
"matches_as_champion" real,
"reigns_as_champion" real,
"title_matches_won" real,
"title_last_held" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches is on 24 march 1963 with a Rank larger than 44?`:
```sql
|
SELECT "game" FROM "nba_finals" WHERE "date"='may 24'; |
## Task
Generate a SQL query to answer the following question:
`what game was on may 24`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game was on may 24`:
```sql
|
SELECT "result" FROM "nba_finals" WHERE "date"='may 29'; |
## Task
Generate a SQL query to answer the following question:
`what game was on may 29`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what game was on may 29`:
```sql
|
SELECT "home_team" FROM "nba_finals" WHERE "date"='may 20'; |
## Task
Generate a SQL query to answer the following question:
`what team played on may 20 on the home side`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team played on may 20 on the home side`:
```sql
|
SELECT "road_team" FROM "nba_finals" WHERE "game"='game 2'; |
## Task
Generate a SQL query to answer the following question:
`what team played in game 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"home_team" text,
"result" text,
"road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team played in game 2`:
```sql
|
SELECT MAX("nicotine") FROM "lineup" WHERE "name"='raison blue'; |
## Task
Generate a SQL query to answer the following question:
`Which Raison Blue has the highest nicotine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lineup" (
"name" text,
"size" text,
"price" text,
"quantity" real,
"released" text,
"nicotine" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Raison Blue has the highest nicotine?`:
```sql
|
SELECT MIN("quantity") FROM "lineup" WHERE "name"='raison blue' AND "nicotine">0.30000000000000004; |
## Task
Generate a SQL query to answer the following question:
`For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lineup" (
"name" text,
"size" text,
"price" text,
"quantity" real,
"released" text,
"nicotine" real
);
### SQL
Given the database schema, here is the SQL query that answers `For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?`:
```sql
|
SELECT "result" FROM "submissions" WHERE "film_title"='paljas'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the fil Paljas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title" text,
"language_s" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the fil Paljas?`:
```sql
|
SELECT "year" FROM "under_construction" WHERE "rank"<6 AND "name"='damac heights'; |
## Task
Generate a SQL query to answer the following question:
`In what year was the rank less than 6 for Damac Heights?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the rank less than 6 for Damac Heights?`:
```sql
|
SELECT "height_m_ft" FROM "under_construction" WHERE "rank">10 AND "name"='tameer tower'; |
## Task
Generate a SQL query to answer the following question:
`What is the height for rank greater than 10 in Tameer Tower?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for rank greater than 10 in Tameer Tower?`:
```sql
|
SELECT MIN("year") FROM "under_construction" WHERE "rank"=20 AND "floors"<60; |
## Task
Generate a SQL query to answer the following question:
`What was the earliest year with rank 20 and less than 60 floors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year with rank 20 and less than 60 floors?`:
```sql
|
SELECT MAX("floors") FROM "under_construction" WHERE "rank">1 AND "name"='conrad dubai'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest floors with rank greater than 1 in Conrad Dubai?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "under_construction" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest floors with rank greater than 1 in Conrad Dubai?`:
```sql
|
SELECT SUM("laps") FROM "main_race" WHERE "driver"='satrio hermanto'; |
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Driver of satrio hermanto?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Driver of satrio hermanto?`:
```sql
|
SELECT "time" FROM "main_race" WHERE "grid"=19; |
## Task
Generate a SQL query to answer the following question:
`Which Time has a Grid of 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Grid of 19?`:
```sql
|
SELECT MIN("grid") FROM "main_race" WHERE "team"='germany' AND "laps"<45; |
## Task
Generate a SQL query to answer the following question:
`Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "main_race" (
"team" text,
"driver" text,
"laps" real,
"time" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?`:
```sql
|
SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='washington'; |
## Task
Generate a SQL query to answer the following question:
`WHich team draft the player who went to college in Washington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round_num_overall" text,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich team draft the player who went to college in Washington?`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "college"='washington'; |
## Task
Generate a SQL query to answer the following question:
`What position did the palyer drafted out of Washington play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round_num_overall" text,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the palyer drafted out of Washington play?`:
```sql
|
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=5; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of Gold medals when there are 5 bronze medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of Gold medals when there are 5 bronze medals?`:
```sql
|
SELECT MAX("bronze") FROM "medal_table" WHERE "rank">9; |
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of bronze medals when the rank was larger than 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of bronze medals when the rank was larger than 9?`:
```sql
|
SELECT MIN("bronze") FROM "medal_table" WHERE "silver">0 AND "rank"<4 AND "nation"='jamaica' AND "total"<22; |
## Task
Generate a SQL query to answer the following question:
`What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?`:
```sql
|
SELECT MAX("3_balls_2_ribbons") FROM "groups_all_around" WHERE "nation"='bulgaria' AND "place">1; |
## Task
Generate a SQL query to answer the following question:
`Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?`:
```sql
|
SELECT SUM("5_hoops") FROM "groups_all_around" WHERE "place">7 AND "total">38.525; |
## Task
Generate a SQL query to answer the following question:
`5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?`:
```sql
|
SELECT COUNT("3_balls_2_ribbons") FROM "groups_all_around" WHERE "5_hoops">19.325 AND "total"=39.4 AND "place">2; |
## Task
Generate a SQL query to answer the following question:
`5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons?`:
```sql
|
SELECT MIN("place") FROM "groups_all_around" WHERE "total"=38.55 AND "3_balls_2_ribbons"<19.4; |
## Task
Generate a SQL query to answer the following question:
`Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "groups_all_around" (
"place" real,
"nation" text,
"5_hoops" real,
"3_balls_2_ribbons" real,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?`:
```sql
|
SELECT "voice_actor_japanese" FROM "cast" WHERE "character_name"='tien'; |
## Task
Generate a SQL query to answer the following question:
`what voice acter played tien`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what voice acter played tien`:
```sql
|
SELECT "character_name" FROM "cast" WHERE "voice_actor_english_1998_pioneer"='laara sadiq'; |
## Task
Generate a SQL query to answer the following question:
`what character did Laara sadiq play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did Laara sadiq play`:
```sql
|
SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='masaharu satou'; |
## Task
Generate a SQL query to answer the following question:
`what character did Masaharu satou play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did Masaharu satou play`:
```sql
|
SELECT "voice_actor_english_1998_pioneer" FROM "cast" WHERE "voice_actor_english_1997_saban"='dave ward'; |
## Task
Generate a SQL query to answer the following question:
`what character did dave ward play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did dave ward play`:
```sql
|
SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='naoko watanabe'; |
## Task
Generate a SQL query to answer the following question:
`what character did naoko watanabe play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cast" (
"character_name" text,
"voice_actor_japanese" text,
"voice_actor_english_1997_saban" text,
"voice_actor_english_1998_pioneer" text,
"voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did naoko watanabe play`:
```sql
|
SELECT "location" FROM "titleholders" WHERE "year"=2009; |
## Task
Generate a SQL query to answer the following question:
`At what Location was Miss World 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titleholders" (
"year" real,
"country_territory" text,
"miss_world" text,
"national_title" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Location was Miss World 2009?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "competition"='1996 emarate cup' AND "date"='march 25, 1996'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the 1996 Emarate cup on March 25, 1996?`
### 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 is the score of the 1996 Emarate cup on March 25, 1996?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "date"='august 11, 1996'; |
## Task
Generate a SQL query to answer the following question:
`Which competition was on August 11, 1996?`
### 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 competition was on August 11, 1996?`:
```sql
|
SELECT "competition" FROM "international_goals" WHERE "venue"='dubai'; |
## Task
Generate a SQL query to answer the following question:
`Which competition was in Dubai?`
### 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 competition was in Dubai?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "venue"='bangkok'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the match in Bangkok?`
### 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 is the result of the match in Bangkok?`:
```sql
|
SELECT "date" FROM "international_goals" WHERE "result"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a result of 4-0?`
### 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 is the date of the match with a result of 4-0?`:
```sql
|
SELECT "score" FROM "international_goals" WHERE "result"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the match with a 4-0 result?`
### 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 is the score of the match with a 4-0 result?`:
```sql
|
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">164 AND "pick_num">2 AND "position"='running back' AND "round"=16; |
## Task
Generate a SQL query to answer the following question:
`Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.