output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "away_team" FROM "round_19" WHERE "home_team"='new zealand breakers'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team during the game when the home team was the new zealand breakers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"sco... |
SELECT "score" FROM "round_19" WHERE "away_team"='gold coast blaze' AND "home_team"='adelaide 36ers'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_19" (
"... |
SELECT AVG("market_value_billion") FROM "2007_list" WHERE "assets_billion"<'1,705.35' AND "sales_billion"=175.05 AND "rank"<19; |
## Task
Generate a SQL query to answer the following question:
`What is the average market value in billions of the company with less than 1,705.35 billions in assets, sales of 175.05 billions, and is ranked less than 19?`
### Database Schema
This query will run on a database whose schema is represented in this strin... |
SELECT COUNT("rank") FROM "2007_list" WHERE "assets_billion"<248.44 AND "industry"='oil and gas' AND "headquarters"='france' AND "market_value_billion">152.62; |
## Task
Generate a SQL query to answer the following question:
`What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions?`
### Database Schema
This query will run on a database whose schema is rep... |
SELECT "company" FROM "2007_list" WHERE "sales_billion">195.34 AND "rank">7 AND "profits_billion">11.29 AND "market_value_billion">198.14; |
## Task
Generate a SQL query to answer the following question:
`What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion?`
### Database Schema
This query will run on a database whose schema is represented in this stri... |
SELECT AVG("rank") FROM "2007_list" WHERE "sales_billion">146.56 AND "profits_billion"=11.68; |
## Task
Generate a SQL query to answer the following question:
`What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_list" (
"rank" real,
... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">5 AND "college"='nevada'; |
## Task
Generate a SQL query to answer the following question:
`What was the position of the player from the college of Nevada with a round over 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"... |
SELECT "college" FROM "washington_redskins_draft_history" WHERE "round"<7 AND "overall"<186 AND "pick"=13; |
## Task
Generate a SQL query to answer the following question:
`Which college had a pick in a round under 7, with a pick number 13 and overall was under 186?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round"... |
SELECT MIN("parishes") FROM "list_of_pastoral_regions" WHERE "pastoral_region"='merrimack' AND "cemeteries"<4; |
## Task
Generate a SQL query to answer the following question:
`How many Parishes in Merrimack which has 4 Cemeteries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"pa... |
SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "cemeteries"=3; |
## Task
Generate a SQL query to answer the following question:
`What Pastoral Region has 3 Cemeteries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
... |
SELECT SUM("high_schools") FROM "list_of_pastoral_regions" WHERE "cemeteries"=8; |
## Task
Generate a SQL query to answer the following question:
`How many High schools in the Region with 8 Cemeteries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"pa... |
SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "episcopal_vicar"='robert francis hennessey'; |
## Task
Generate a SQL query to answer the following question:
`What Pastoral Region has Episcopal Vicar Robert Francis Hennessey?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar"... |
SELECT "name" FROM "most_appearances" WHERE "games">299 AND "period"='1995–07'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the person with more than 299 games during the 1995–07 period?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"peri... |
SELECT COUNT("games") FROM "most_appearances" WHERE "name"='shlomi avrahami'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of games for Shlomi Avrahami?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals... |
SELECT SUM("rank") FROM "most_appearances" WHERE "period"='1973–89' AND "games"<423; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for the period of 1973–89, with less than 423 games.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"... |
SELECT "team_1" FROM "first_round" WHERE "team_2"='ulisses'; |
## Task
Generate a SQL query to answer the following question:
`What is the team 1 when Ulisses is team 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text... |
SELECT "2009" FROM "temperature_records" WHERE "year"='highest mean annual temperature'; |
## Task
Generate a SQL query to answer the following question:
`What is 2009, when Year is "Highest Mean Annual Temperature"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "temperature_records" (
"year" text,
"2011" text,
"2010" text,
"2009" t... |
SELECT COUNT("gold") FROM "by_sport" WHERE "total">30 AND "sport"='swimming' AND "bronze">35; |
## Task
Generate a SQL query to answer the following question:
`How many gold values have totals over 30, bronzes over 35, and are in Swimming?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
... |
SELECT MAX("bronze") FROM "by_sport" WHERE "silver">2 AND "sport"='cycling' AND "gold"<16; |
## Task
Generate a SQL query to answer the following question:
`What is the highest bronze value with silvers over 2, golds under 16, and in Cycling?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" ... |
SELECT "total" FROM "by_sport" WHERE "bronze">35; |
## Task
Generate a SQL query to answer the following question:
`What is the total associated with Bronzes over 35?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" re... |
SELECT MIN("bronze") FROM "by_sport" WHERE "gold">0 AND "total"=36 AND "silver">11; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" text,
"gold" real... |
SELECT AVG("gold") FROM "by_sport" WHERE "sport"='athletics' AND "silver">42; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of golds in athletics associated with over 42 silvers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real... |
SELECT MIN("silver") FROM "by_sport" WHERE "bronze"<20 AND "total"=1 AND "sport"='water polo' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_sport" (
"sport" t... |
SELECT MIN("pick_num") FROM "round_one" WHERE "player"='marc pilon'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest pick number for Marc Pilon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"co... |
SELECT "player" FROM "round_one" WHERE "college"='british columbia'; |
## Task
Generate a SQL query to answer the following question:
`What player was from the British Columbia college?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
... |
SELECT MAX("pick_num") FROM "round_one" WHERE "cfl_team"='hamilton tiger-cats'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest pick number for the Hamilton tiger-cats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"positio... |
SELECT "pick_num" FROM "round_one" WHERE "position"='wr'; |
## Task
Generate a SQL query to answer the following question:
`What was the pick number for the WR position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"coll... |
SELECT "goal" FROM "international_goals" WHERE "result"='2-0'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Goal that has the Result of 2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
... |
SELECT "place" FROM "top_10_prizes" WHERE "prize"='$381.030'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Prize is "$381.030"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
##... |
SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt3 punta del este'; |
## Task
Generate a SQL query to answer the following question:
`What is Rank, when Event is "LAPT3 Punta Del Este"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize"... |
SELECT "name" FROM "top_10_prizes" WHERE "prize"='$279.330'; |
## Task
Generate a SQL query to answer the following question:
`What is Name, when Prize is "$279.330"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
###... |
SELECT "prize" FROM "top_10_prizes" WHERE "rank"='2nd'; |
## Task
Generate a SQL query to answer the following question:
`What is Prize, when Rank is "2nd"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
);
### SQL
... |
SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt4 são paulo'; |
## Task
Generate a SQL query to answer the following question:
`What is Rank, when Event is "LAPT4 São Paulo"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text... |
SELECT "prize" FROM "top_10_prizes" WHERE "name"='valdemar kwaysser'; |
## Task
Generate a SQL query to answer the following question:
`What is Prize, when Name is "Valdemar Kwaysser"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" te... |
SELECT "bus_power" FROM "features" WHERE "fieldbus"='controlnet'; |
## Task
Generate a SQL query to answer the following question:
`What is the bus power for the Controlnet Fieldbus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchr... |
SELECT "sub_millisecond_cycle" FROM "features" WHERE "fieldbus"='fieldbus'; |
## Task
Generate a SQL query to answer the following question:
`What is the millisecond cycle for the Fieldbus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchroni... |
SELECT "synchronisation" FROM "features" WHERE "fieldbus"='controlnet'; |
## Task
Generate a SQL query to answer the following question:
`What is the synchronisation for the controlnet fieldbus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='colorado'; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a College of colorado?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" tex... |
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">211 AND "position"='db' AND "name"='carl charon'; |
## Task
Generate a SQL query to answer the following question:
`Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" re... |
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "college"='michigan state' AND "position"='fb' AND "round">8; |
## Task
Generate a SQL query to answer the following question:
`Which Overall has a College of michigan state, a Position of fb, and a Round larger than 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" r... |
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "college"='arizona'; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a College of arizona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
... |
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=7; |
## Task
Generate a SQL query to answer the following question:
`Which Overall has a Round of 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"posi... |
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "pick">1; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Pick larger than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
... |
SELECT MIN("ends_won") FROM "round_robin" WHERE "stolen_ends"=10 AND "locale"='italy' AND "blank_ends"<14; |
## Task
Generate a SQL query to answer the following question:
`In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin" (
"locale" text,
"skip" te... |
SELECT MAX("blank_ends") FROM "round_robin" WHERE "stolen_ends">14 AND "ends_won"<57; |
## Task
Generate a SQL query to answer the following question:
`When ends won were below 57 but stolen ends are more than 14, what's the highest blank ends found?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_robin" (
"locale" text,
"skip" ... |
SELECT MAX("n_golosov") FROM "values" WHERE "constellation"='g' AND "largest_component_fractional_share">0.15; |
## Task
Generate a SQL query to answer the following question:
`What is the highest value for N, Golosov, when Constellation is G, and when Largest Component, Fractional Share is greater than 0.15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "values... |
SELECT SUM("n_laakso_taagepera") FROM "values" WHERE "largest_component_fractional_share"=0.35000000000000003 AND "constellation"='e'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the values for N, Laakso-Taagepera, when Largest Component, Fractional Share is 0.35000000000000003, and when Constellation is E?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREAT... |
SELECT SUM("largest_component_fractional_share") FROM "values" WHERE "constellation"='e' AND "n_golosov">2.9; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the values for Largest Component, Fractional Share, when Constellation is E, and when N, Golosov is greater than 2.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "val... |
SELECT AVG("largest_component_fractional_share") FROM "values" WHERE "n_laakso_taagepera"=1.98 AND "n_golosov">1.82; |
## Task
Generate a SQL query to answer the following question:
`What is the average Largest Component, Fractional Share, when N, Laakso-Taagepera is 1.98, and when N, Golosov is greater than 1.82?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "values"... |
SELECT MIN("n_golosov") FROM "values" WHERE "n_laakso_taagepera">10.64; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest value for N, Golosov, when N, Laakso-Taagepera is greater than 10.64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "values" (
"constellation" text,
"largest_compon... |
SELECT "attendance" FROM "third_round_proper" WHERE "home_team"='leicester city'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance record for Leicester City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" ... |
SELECT "attendance" FROM "third_round_proper" WHERE "home_team"='arsenal'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance for Arsenal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"atten... |
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='bolton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team against the Bolton Wanderers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team"... |
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=2 AND "location"='south dakota, united states'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent of the match in South Dakota, United States which has 2 rounds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" t... |
SELECT COUNT("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms">3672 AND "number_of_branches"<1685; |
## Task
Generate a SQL query to answer the following question:
`What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "branches_and_at_ms_of_scheduled_c... |
SELECT SUM("number_of_branches") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "on_site_at_ms"=1548 AND "off_site_at_ms">3672; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "branches_and_at_ms_of_schedul... |
SELECT MIN("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='new private sector banks' AND "on_site_at_ms">1883; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "branches_and_at_m... |
SELECT AVG("on_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms"=1567 AND "total_at_ms"<4772; |
## Task
Generate a SQL query to answer the following question:
`What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "branches_and_at_ms_of_scheduled_... |
SELECT AVG("off_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='foreign banks' AND "on_site_at_ms"<218; |
## Task
Generate a SQL query to answer the following question:
`With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "branches_and_at_ms_of_scheduled_comm... |
SELECT "effect" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm/small arms fire'; |
## Task
Generate a SQL query to answer the following question:
`What is Effect, when Weapon is "35mm/Small arms fire"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" ... |
SELECT "date" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "effect"='shot down' AND "place"='south of stanley airport'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot... |
SELECT "place" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm fire' AND "date"='27 may 1982'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"da... |
SELECT "pilot" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "place"='goose green' AND "date"='27 may 1982'; |
## Task
Generate a SQL query to answer the following question:
`What is Pilot, when Place is "Goose Green", and when Date is "27 May 1982"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"d... |
SELECT "place" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm/small arms fire'; |
## Task
Generate a SQL query to answer the following question:
`What is Place, when Weapon is "35mm/Small arms fire"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" t... |
SELECT "pilot" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm fire' AND "date"='4 may 1982'; |
## Task
Generate a SQL query to answer the following question:
`What is Pilot, when Weapon is "35mm fire", and when Date is "4 May 1982"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"dat... |
SELECT "from" FROM "o" WHERE "jersey_number_s">0 AND "years"='2003'; |
## Task
Generate a SQL query to answer the following question:
`Where is the player from that has a Jersey Number(s) greater than 0 in the year 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_... |
SELECT "player" FROM "o" WHERE "jersey_number_s">30; |
## Task
Generate a SQL query to answer the following question:
`Who is the player with a Jersey Number(s) greater than 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position... |
SELECT "years" FROM "o" WHERE "jersey_number_s"=44; |
## Task
Generate a SQL query to answer the following question:
`What is the Years of the player with Jersey Number(s) of 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"positi... |
SELECT "population_2010" FROM "south_korea_rok" WHERE "province"='north jeolla'; |
## Task
Generate a SQL query to answer the following question:
`What was the population in North Jeolla?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population... |
SELECT "korean" FROM "south_korea_rok" WHERE "hanja"='南楊州'; |
## Task
Generate a SQL query to answer the following question:
`What's Korean for 南楊州 Hanja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
... |
SELECT "korean" FROM "south_korea_rok" WHERE "city"='pohang'; |
## Task
Generate a SQL query to answer the following question:
`What's the Korean word for Pohang?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010"... |
SELECT "team_nickname" FROM "former_teams" WHERE "affiliation"='private/catholic' AND "enrollment">'3,490'; |
## Task
Generate a SQL query to answer the following question:
`What's the team nickname of the private/catholic school whose enrollment is larger than 3,490?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_teams" (
"institution" text,
"loca... |
SELECT SUM("enrollment") FROM "former_teams" WHERE "location"='buffalo, new york' AND "affiliation"='public' AND "founded">1846; |
## Task
Generate a SQL query to answer the following question:
`What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_teams" (
"institution" tex... |
SELECT SUM("season") FROM "results" WHERE "team_1"='bangkok university' AND "score"='0-0' AND "team_2"='chunnam dragons'; |
## Task
Generate a SQL query to answer the following question:
`What year did Bangkok University and Chunnam Dragons have a score of 0-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"te... |
SELECT "transfer_window" FROM "out" WHERE "name"='christian nerlinger'; |
## Task
Generate a SQL query to answer the following question:
`What is the transfer window for Christian Nerlinger?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_wind... |
SELECT "name" FROM "out" WHERE "type"='end of contract' AND "moving_to"='falkirk'; |
## Task
Generate a SQL query to answer the following question:
`What is the name for the end of contract because they're moving to Falkirk?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type"... |
SELECT "type" FROM "out" WHERE "transfer_window"='winter' AND "nat"='ita'; |
## Task
Generate a SQL query to answer the following question:
`What type of transfer window is winter in Ita?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" te... |
SELECT "nat" FROM "out" WHERE "type"='loan' AND "transfer_fee"='loan'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of loan and the transfer fee loan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_windo... |
SELECT "streak" FROM "season_schedule" WHERE "date"='november 14'; |
## Task
Generate a SQL query to answer the following question:
`On what date did a streak start on November 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" t... |
SELECT "score" FROM "game_log" WHERE "game"=36; |
## Task
Generate a SQL query to answer the following question:
`What was the score of game 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
... |
SELECT "location" FROM "cable_stayed_bridges_under_construction_" WHERE "name"='third bridge over panama canal'; |
## Task
Generate a SQL query to answer the following question:
`Where was the third bridge over panama canal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "cable_stayed_bridges_under_construction_" (
"name" text,
"location" text,
"country" text... |
SELECT "comp" FROM "passing" WHERE "name"='smith'; |
## Task
Generate a SQL query to answer the following question:
`Name the Comp which has a Name of smith?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
);
### S... |
SELECT SUM("comp") FROM "passing" WHERE "yds_game"<209.5 AND "name"='brytus' AND "rating"<100; |
## Task
Generate a SQL query to answer the following question:
`Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"rating... |
SELECT MAX("comp") FROM "passing" WHERE "yds_game">0 AND "name"='bostick' AND "rating"<91.77; |
## Task
Generate a SQL query to answer the following question:
`Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "passing" (
"name" text,
"rating" rea... |
SELECT SUM("score") FROM "first_round" WHERE "place"='t5' AND "country"='united states' AND "player"='jeff maggert'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Score that has the Place of t5, and the Country of united states, and the Player of jeff maggert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
... |
SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='decision'; |
## Task
Generate a SQL query to answer the following question:
`Which event had a decision method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event"... |
SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='tko'; |
## Task
Generate a SQL query to answer the following question:
`Where was the method of tko?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,... |
SELECT "time" FROM "top_10_men" WHERE "nation"='kenya' AND "rank"='2'; |
## Task
Generate a SQL query to answer the following question:
`What is the time of kenya, which is ranked 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
... |
SELECT "race" FROM "top_10_men" WHERE "date"='26 june 2011'; |
## Task
Generate a SQL query to answer the following question:
`What race is on 26 June 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
);... |
SELECT "time" FROM "top_10_men" WHERE "nation"='kenya' AND "race"='peachtree road race'; |
## Task
Generate a SQL query to answer the following question:
`What is the time of the peachtree road race in kenya?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date... |
SELECT "score" FROM "game_log" WHERE "team"='chicago'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of team chicago?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_re... |
SELECT "record" FROM "game_log" WHERE "team"='utah'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of team utah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebo... |
SELECT "location_attendance" FROM "game_log" WHERE "game"=63; |
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance of game 63?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" tex... |
SELECT "nationality" FROM "m" WHERE "position"='small forward'; |
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the person who played small forward?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_... |
SELECT "position" FROM "m" WHERE "player"='rich manning'; |
## Task
Generate a SQL query to answer the following question:
`What position did Rich Manning play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_... |
SELECT "position" FROM "m" WHERE "years_for_grizzlies"='2007-2009'; |
## Task
Generate a SQL query to answer the following question:
`What position did the player who was with the grizzlies from 2007-2009 play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
... |
SELECT "player" FROM "selections" WHERE "draft"=2008 AND "pick">5; |
## Task
Generate a SQL query to answer the following question:
`Who is the player in the 2008 draft with a pick greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text... |
SELECT COUNT("pick") FROM "selections" WHERE "round">1 AND "draft"<2002 AND "college_high_school_club"='western kentucky'; |
## Task
Generate a SQL query to answer the following question:
`What is the total pick number of the player from a round greater than 1, a draft before 2002, and with the college/high school/club of western kentucky?`
### Database Schema
This query will run on a database whose schema is represented in this string:
C... |
SELECT MIN("draft") FROM "selections" WHERE "pick"=48; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest draft number with a 48 pick?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_hig... |
SELECT "name" FROM "washington_redskins_draft_history" WHERE "aafc_team"='los angeles dons' AND "position"='fb' AND "college"='oklahoma a&m'; |
## Task
Generate a SQL query to answer the following question:
`Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.