question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which game did Curtis Borchardt play with more than 274 rebounds? | CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
); | SELECT SUM("games") FROM "rebounds" WHERE "name"='curtis borchardt' AND "rebounds">274; | 2-11194153-4 |
In game 34 Curtis Borchardt played on which team with less than 275 rebounds? | CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
); | SELECT "team" FROM "rebounds" WHERE "rebounds"<275 AND "games"<34 AND "name"='curtis borchardt'; | 2-11194153-4 |
How many rebounds occurred in a rank 4 game? | CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
); | SELECT "rebounds" FROM "rebounds" WHERE "rank"=4; | 2-11194153-4 |
Which game did was Bud Eley a player in? | CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
); | SELECT "games" FROM "rebounds" WHERE "name"='bud eley'; | 2-11194153-4 |
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4? | CREATE TABLE "rebounds" (
"rank" real,
"name" text,
"team" text,
"games" real,
"rebounds" real
); | SELECT SUM("games") FROM "rebounds" WHERE "rank"<4 AND "rebounds"<275 AND "team"='bruesa gbc'; | 2-11194153-4 |
What is the grid for johnny herbert? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "grid" FROM "race" WHERE "driver"='johnny herbert'; | 2-1123327-2 |
Tell me the average rank for dharma productions before 2013 | CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
"rank" real,
"movie" text,
"year" real,
"studio_s" text,
"third_week_nett_gross" real
); | SELECT AVG("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "studio_s"='dharma productions' AND "year"<2013; | 2-11872185-11 |
Name the average year for 4 rank | CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
"rank" real,
"movie" text,
"year" real,
"studio_s" text,
"third_week_nett_gross" real
); | SELECT AVG("year") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "rank"=4; | 2-11872185-11 |
Name the lowest rank for red chillies entertainment for 2013 | CREATE TABLE "biggest_third_week_domestic_nett_gross_e" (
"rank" real,
"movie" text,
"year" real,
"studio_s" text,
"third_week_nett_gross" real
); | SELECT MIN("rank") FROM "biggest_third_week_domestic_nett_gross_e" WHERE "year"=2013 AND "studio_s"='red chillies entertainment'; | 2-11872185-11 |
Which date did richmond play as away? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_6" WHERE "away_team"='richmond'; | 2-10887680-6 |
What is the rank for the player with 5 wins and under 32 events? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT SUM("rank") FROM "leaders" WHERE "wins"=5 AND "events"<32; | 2-11621873-3 |
What is the rank for the player with over $1,627,890? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT COUNT("rank") FROM "leaders" WHERE "earnings">'1,627,890'; | 2-11621873-3 |
What is the rank for the player with over 2 wins and under $1,162,581 in earnings? | CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
); | SELECT SUM("rank") FROM "leaders" WHERE "earnings"<'1,162,581' AND "wins">2; | 2-11621873-3 |
What is the issue price of a Year 2000 coin by artist John Mardon of the Included in Steam Buggy mintage. | CREATE TABLE "land_sea_and_rail_transportation_series" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "artist"='john mardon' AND "year"=2000 AND "mintage"='included in steam buggy'; | 2-11916083-39 |
What is the theme of the Year 2002 which was created by Artist Dan Fell? | CREATE TABLE "land_sea_and_rail_transportation_series" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "theme" FROM "land_sea_and_rail_transportation_series" WHERE "year"=2002 AND "artist"='dan fell'; | 2-11916083-39 |
What artist had a mintage of 41,828 before year 2002? | CREATE TABLE "land_sea_and_rail_transportation_series" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "artist" FROM "land_sea_and_rail_transportation_series" WHERE "year"<2002 AND "mintage"='41,828'; | 2-11916083-39 |
A mintage of 31,997 has what issue price? | CREATE TABLE "land_sea_and_rail_transportation_series" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "issue_price" FROM "land_sea_and_rail_transportation_series" WHERE "mintage"='31,997'; | 2-11916083-39 |
Tell me the control trailers for 52 motors | CREATE TABLE "manufacturers" (
"year" text,
"builder" text,
"motors" text,
"trailers" text,
"control_trailers" text
); | SELECT "control_trailers" FROM "manufacturers" WHERE "motors"='52'; | 2-1132268-1 |
Name the year for mcwf and control trailers of 35 | CREATE TABLE "manufacturers" (
"year" text,
"builder" text,
"motors" text,
"trailers" text,
"control_trailers" text
); | SELECT "year" FROM "manufacturers" WHERE "builder"='mcwf' AND "control_trailers"='35'; | 2-1132268-1 |
I want the trailers for 1931 and builder of mccw | CREATE TABLE "manufacturers" (
"year" text,
"builder" text,
"motors" text,
"trailers" text,
"control_trailers" text
); | SELECT "trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='mccw'; | 2-1132268-1 |
I want the control trailers for 1931 with builder of grcw | CREATE TABLE "manufacturers" (
"year" text,
"builder" text,
"motors" text,
"trailers" text,
"control_trailers" text
); | SELECT "control_trailers" FROM "manufacturers" WHERE "year"='1931' AND "builder"='grcw'; | 2-1132268-1 |
I want the trailers for motors of 145 | CREATE TABLE "manufacturers" (
"year" text,
"builder" text,
"motors" text,
"trailers" text,
"control_trailers" text
); | SELECT "trailers" FROM "manufacturers" WHERE "motors"='145'; | 2-1132268-1 |
What is the 1930 population when the 2006 est. is less than 44,726 in the county of frio? | CREATE TABLE "core_county_population_statistics" (
"county" text,
"1900" real,
"1930" real,
"1950" real,
"2000" real,
"2006_est" real
); | SELECT SUM("1930") FROM "core_county_population_statistics" WHERE "2006_est"<'44,726' AND "county"='frio'; | 2-10998425-1 |
What is the highest 1930 population when the 2000 population is 43,966 and the 1900 population is less than 8,401? | CREATE TABLE "core_county_population_statistics" (
"county" text,
"1900" real,
"1930" real,
"1950" real,
"2000" real,
"2006_est" real
); | SELECT MAX("1930") FROM "core_county_population_statistics" WHERE "2000"='43,966' AND "1900"<'8,401'; | 2-10998425-1 |
Tell me the sum of wins for top 5 less than 1 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("wins") FROM "summary" WHERE "top_5"<1; | 2-1132021-7 |
I want the average events for top 10 less than 4 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT AVG("events") FROM "summary" WHERE "top_10"<4; | 2-1132021-7 |
Name the highest cuts made when top 5 is less than 3 and top ten is more than 4 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("cuts_made") FROM "summary" WHERE "top_5"<3 AND "top_10">4; | 2-1132021-7 |
I want the most top 25 when events are more than 20 and top 10 is more than 21 | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("top_25") FROM "summary" WHERE "events">20 AND "top_10">21; | 2-1132021-7 |
What was the Attendance on April 28? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"save" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 28'; | 2-11633481-4 |
What was escape to river cottage released? | CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
); | SELECT "released" FROM "dvd_releases" WHERE "dvd_name"='escape to river cottage'; | 2-1180228-1 |
What DVD has a time of 2 hours 22 minutes? | CREATE TABLE "dvd_releases" (
"dvd_name" text,
"released" text,
"audio" text,
"aspect_ratio" text,
"duration" text,
"number_of_episodes" real,
"num_of_discs" real
); | SELECT "dvd_name" FROM "dvd_releases" WHERE "duration"='2 hours 22 minutes'; | 2-1180228-1 |
What was the date for the game in week 7? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"=7; | 2-10996075-1 |
On what date was the attendance of the crowd 78,431? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "attendance"='78,431'; | 2-10996075-1 |
What was the date of the Capitals game when Columbus was the home team? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "date" FROM "february" WHERE "home"='columbus'; | 2-11772462-7 |
The 2002 African Cup of Nations was held on what date? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "competition"='2002 african cup of nations'; | 2-11831773-1 |
Which competition took place at Stade Fernand Fournier, Arles? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_goals" WHERE "venue"='stade fernand fournier, arles'; | 2-11831773-1 |
What was the attendance of the game where fitzroy was the away team? | CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT COUNT("crowd") FROM "round_2" WHERE "away_team"='fitzroy'; | 2-10883333-2 |
Which artist created the silver dollar for the 400th anniversary of Quebec? | CREATE TABLE "gold_plated_proof_silver_dollars" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "artist" FROM "gold_plated_proof_silver_dollars" WHERE "theme"='400th anniversary of quebec'; | 2-11916083-2 |
Which year did the Royal Canadian Mint Staff create a silver dollar? | CREATE TABLE "gold_plated_proof_silver_dollars" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "year" FROM "gold_plated_proof_silver_dollars" WHERE "artist"='royal canadian mint staff'; | 2-11916083-2 |
How many coins by Suzanne Duranceau were minted? | CREATE TABLE "gold_plated_proof_silver_dollars" (
"year" real,
"theme" text,
"artist" text,
"mintage" text,
"issue_price" text
); | SELECT "mintage" FROM "gold_plated_proof_silver_dollars" WHERE "artist"='suzanne duranceau'; | 2-11916083-2 |
What was the method for the resolution of nc where the fight lasted less than 3 rounds? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"<3 AND "res"='nc'; | 2-11042849-2 |
Who was the opponent during the UFC 90 event with a fight that lasted less than 4 rounds? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"<4 AND "event"='ufc 90'; | 2-11042849-2 |
What was the method for the resolution of the fight at UFC 160? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='ufc 160'; | 2-11042849-2 |
What is the league on 5 October 1997? | CREATE TABLE "list_of_derby_del_sole_results" (
"season" text,
"match" text,
"result" text,
"league" text,
"date" text
); | SELECT "league" FROM "list_of_derby_del_sole_results" WHERE "date"='5 october 1997'; | 2-12036377-2 |
Which season was on 30 October 1977? | CREATE TABLE "list_of_derby_del_sole_results" (
"season" text,
"match" text,
"result" text,
"league" text,
"date" text
); | SELECT "season" FROM "list_of_derby_del_sole_results" WHERE "date"='30 october 1977'; | 2-12036377-2 |
What season had the Roma-Napoli match on 12 September 1993? | CREATE TABLE "list_of_derby_del_sole_results" (
"season" text,
"match" text,
"result" text,
"league" text,
"date" text
); | SELECT "season" FROM "list_of_derby_del_sole_results" WHERE "match"='roma-napoli' AND "date"='12 september 1993'; | 2-12036377-2 |
What club/province for the player with over 18 caps and plays the fly-half? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps">18 AND "position"='fly-half'; | 2-11783766-19 |
What driver has less than 18 laps and a grid number under 16? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "laps"<18 AND "grid"<16; | 2-1123396-2 |
Who constructed the car with laps more than 70 and a time/retired of +12.535? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "laps">70 AND "time_retired"='+12.535'; | 2-1123400-2 |
What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap. | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "race" WHERE "time_retired"='+1 lap' AND "driver"='alexander wurz' AND "grid"<14; | 2-1123400-2 |
Who was Footscray's opponent on June 15th of 1968? | CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_9" WHERE "away_team"='footscray'; | 2-10808933-9 |
Which team is located in Westland and was previously in the Western Lakes Activities Association? | CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
); | SELECT "team" FROM "kensington_lakes_activities_association" WHERE "previous_conference"='western lakes activities association' AND "location"='westland'; | 2-11094950-1 |
What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? | CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
); | SELECT MAX("joined") FROM "kensington_lakes_activities_association" WHERE "division"='west' AND "location"='highland township'; | 2-11094950-1 |
What was the race with nigel mansell winning in estoril? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race" FROM "season_review" WHERE "race_winner"='nigel mansell' AND "location"='estoril'; | 2-1140067-2 |
What was the pole position for the belgian grand prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "race"='belgian grand prix'; | 2-1140067-2 |
Who won the australian grand prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race_winner" FROM "season_review" WHERE "race"='australian grand prix'; | 2-1140067-2 |
What was the pole position for jerez? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "pole_position" FROM "season_review" WHERE "location"='jerez'; | 2-1140067-2 |
What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency? | CREATE TABLE "the_six_urea_cycle_disorders" (
"location" text,
"abb" text,
"enzyme" text,
"disorder" text,
"measurements" text
); | SELECT "enzyme" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='ornithine transcarbamylase deficiency'; | 2-1089254-1 |
What lab measurements can help diagnosie ornithine transcarbamylase deficiency? | CREATE TABLE "the_six_urea_cycle_disorders" (
"location" text,
"abb" text,
"enzyme" text,
"disorder" text,
"measurements" text
); | SELECT "measurements" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='ornithine transcarbamylase deficiency'; | 2-1089254-1 |
What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency? | CREATE TABLE "the_six_urea_cycle_disorders" (
"location" text,
"abb" text,
"enzyme" text,
"disorder" text,
"measurements" text
); | SELECT "abb" FROM "the_six_urea_cycle_disorders" WHERE "disorder"='carbamoyl phosphate synthetase i deficiency'; | 2-1089254-1 |
what is the venue when the home team is melbourne? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "venue" FROM "round_7" WHERE "home_team"='melbourne'; | 2-1204658-7 |
who is the away team when the away team score is 10.12 (72)? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "away_team" FROM "round_7" WHERE "away_team_score"='10.12 (72)'; | 2-1204658-7 |
what is the date when the home team is st kilda? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "date" FROM "round_7" WHERE "home_team"='st kilda'; | 2-1204658-7 |
what is the date when the venue is junction oval? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "date" FROM "round_7" WHERE "venue"='junction oval'; | 2-1204658-7 |
What is the home team score when played at mcg? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "home_team_score" FROM "round_7" WHERE "venue"='mcg'; | 2-1204658-7 |
who is the away team when played at junction oval? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"date" text
); | SELECT "away_team" FROM "round_7" WHERE "venue"='junction oval'; | 2-1204658-7 |
What is the top speed of the model 1.8 20v t? | CREATE TABLE "petrol_engines" (
"model" text,
"cylinders_valves" text,
"displacement_cc" real,
"max_power_k_w_ps_at_rpm" text,
"max_torque_nm_at_rpm" text,
"engine_code" text,
"top_speed_km_h" real,
"production_period" text
); | SELECT SUM("top_speed_km_h") FROM "petrol_engines" WHERE "model"='1.8 20v t'; | 2-1176162-3 |
What is the max torque of model 1.4 16v? | CREATE TABLE "petrol_engines" (
"model" text,
"cylinders_valves" text,
"displacement_cc" real,
"max_power_k_w_ps_at_rpm" text,
"max_torque_nm_at_rpm" text,
"engine_code" text,
"top_speed_km_h" real,
"production_period" text
); | SELECT "max_torque_nm_at_rpm" FROM "petrol_engines" WHERE "model"='1.4 16v'; | 2-1176162-3 |
How many rounds did Ken Wharton go? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "driver"='ken wharton'; | 2-1140115-2 |
What driver has a 166 c 500 chassis? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "teams_and_drivers" WHERE "chassis"='166 c 500'; | 2-1140115-2 |
What is the Onehunga school with a decile 3 and smaller than 310 rolls? | CREATE TABLE "maungakiekie_tamaki_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "name" FROM "maungakiekie_tamaki_local_board" WHERE "decile"='3' AND "roll"<310 AND "area"='onehunga'; | 2-12017602-15 |
What is the authority status of the school in Ellerslie with a decile of 7? | CREATE TABLE "maungakiekie_tamaki_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "authority" FROM "maungakiekie_tamaki_local_board" WHERE "area"='ellerslie' AND "decile"='7'; | 2-12017602-15 |
What is the biggest roll number of Sylvia Park School, which has a state authority? | CREATE TABLE "maungakiekie_tamaki_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT MAX("roll") FROM "maungakiekie_tamaki_local_board" WHERE "authority"='state' AND "name"='sylvia park school'; | 2-12017602-15 |
What is the name of the school with a decile of 1, a state authority, and located in Otahuhu? | CREATE TABLE "maungakiekie_tamaki_local_board" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" text,
"roll" real
); | SELECT "name" FROM "maungakiekie_tamaki_local_board" WHERE "decile"='1' AND "authority"='state' AND "area"='otahuhu'; | 2-12017602-15 |
What is the special notes value for years under 2009? | CREATE TABLE "nhl_coins" (
"year" real,
"theme" text,
"artist" text,
"issue_price" real,
"special_notes" text
); | SELECT "special_notes" FROM "nhl_coins" WHERE "year"<2009; | 2-11916083-27 |
How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? | CREATE TABLE "nhl_coins" (
"year" real,
"theme" text,
"artist" text,
"issue_price" real,
"special_notes" text
); | SELECT COUNT("year") FROM "nhl_coins" WHERE "theme"='toronto maple leafs' AND "issue_price"=24.95; | 2-11916083-27 |
Who was the winner for the Winton Motor Raceway circuit? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "winner" FROM "race_calendar" WHERE "circuit"='winton motor raceway'; | 2-12051344-2 |
What was the team that held the race title of Mallala? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text,
"team" text
); | SELECT "team" FROM "race_calendar" WHERE "race_title"='mallala'; | 2-12051344-2 |
Name the driver for Laps less than 9 and a grid of 13 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "laps"<9 AND "grid"=13; | 2-1123628-2 |
Who was the winner in the competition in which the runner-up was Rosenborg? | CREATE TABLE "winners" (
"years" text,
"winners" text,
"runners_up" text,
"score" text,
"third" text
); | SELECT "winners" FROM "winners" WHERE "runners_up"='rosenborg'; | 2-1198984-1 |
What was the year of the competition in which Odd Grenland was the runner-up? | CREATE TABLE "winners" (
"years" text,
"winners" text,
"runners_up" text,
"score" text,
"third" text
); | SELECT "years" FROM "winners" WHERE "runners_up"='odd grenland'; | 2-1198984-1 |
Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up? | CREATE TABLE "winners" (
"years" text,
"winners" text,
"runners_up" text,
"score" text,
"third" text
); | SELECT "winners" FROM "winners" WHERE "runners_up"='lillestrøm' AND "third"='lyn'; | 2-1198984-1 |
What was the report in Buenos Aires? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "location"='buenos aires'; | 2-1140082-2 |
What date was the Italian Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "date" FROM "season_review" WHERE "race"='italian grand prix'; | 2-1140082-2 |
What was the report when Mario Andretti held pole position and Jean-Pierre Jarier had the fastest lap? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "pole_position"='mario andretti' AND "fastest_lap"='jean-pierre jarier'; | 2-1140082-2 |
What was the report in the Belgian Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "report" FROM "season_review" WHERE "race"='belgian grand prix'; | 2-1140082-2 |
Who was the winner when Niki Lauda held pole position? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "race_winner" FROM "season_review" WHERE "pole_position"='niki lauda'; | 2-1140082-2 |
Who had the fastest lap in the Monaco Grand Prix? | CREATE TABLE "season_review" (
"race" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"constructor" text,
"report" text
); | SELECT "fastest_lap" FROM "season_review" WHERE "race"='monaco grand prix'; | 2-1140082-2 |
Which Object type has a Constellation of cancer? | CREATE TABLE "2701_2800" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "object_type" FROM "2701_2800" WHERE "constellation"='cancer'; | 2-11097664-8 |
Which NGC number has a Constellation of ursa major? | CREATE TABLE "2701_2800" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT MAX("ngc_number") FROM "2701_2800" WHERE "constellation"='ursa major'; | 2-11097664-8 |
Which Constellation has a NGC number smaller than 2775, and a Declination (J2000) of °05′07″? | CREATE TABLE "2701_2800" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "constellation" FROM "2701_2800" WHERE "ngc_number"<2775 AND "declination_j2000"='°05′07″'; | 2-11097664-8 |
Which Object type has a NGC number of 2787? | CREATE TABLE "2701_2800" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "object_type" FROM "2701_2800" WHERE "ngc_number"=2787; | 2-11097664-8 |
What is the average crowd size for an away team with a score of 14.2 (86)? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT SUM("crowd") FROM "round_13" WHERE "away_team_score"='14.2 (86)'; | 2-10809142-13 |
Where did St KIlda play their away game? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_13" WHERE "away_team"='st kilda'; | 2-10809142-13 |
Which team scored 14.14 (98) at an away game? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_13" WHERE "away_team_score"='14.14 (98)'; | 2-10809142-13 |
What country had a production capacity in 2009 of 1228 mw? | CREATE TABLE "production_history" (
"country" text,
"2005_capacity" text,
"2006_capacity" text,
"2007_capacity" text,
"2008_capacity" text,
"2009_capacity" text,
"2010_capacity" text,
"2011_capacity" text,
"2012_capacity" text
); | SELECT "country" FROM "production_history" WHERE "2009_capacity"='1228 mw'; | 2-10915325-1 |
What is the score when Philadelphia was the visitor with a Record of 7–4–0? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "visitor"='philadelphia' AND "record"='7–4–0'; | 2-11902580-4 |
What was nominee nominated for outstanding featured actor in a musical? | CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "nominee" FROM "original_broadway_production" WHERE "category"='outstanding featured actor in a musical' AND "result"='nominated'; | 2-1206731-1 |
What is the result of nominee, Patricia McGourty, for the drama desk award? | CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "result" FROM "original_broadway_production" WHERE "award"='drama desk award' AND "nominee"='patricia mcgourty'; | 2-1206731-1 |
What year was Patricia Mcgourty nominated for a Tony award? | CREATE TABLE "original_broadway_production" (
"year" real,
"award" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "year" FROM "original_broadway_production" WHERE "nominee"='patricia mcgourty' AND "award"='tony award'; | 2-1206731-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.