question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What was the date of the game that tied at 3? | CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "fifth_round_proper" WHERE "tie_no"='3'; | 2-17751797-5 |
What is European Release Date, when North American Release Date is "2013-03-05"? | CREATE TABLE "games" (
"series" text,
"platform" text,
"japanese_release_date" text,
"north_american_release_date" text,
"european_release_date" text,
"australia_release_date" text
); | SELECT "european_release_date" FROM "games" WHERE "north_american_release_date"='2013-03-05'; | 2-17769769-1 |
What is Japanese Release Date, when Australia Release Date is "2006-03-23"? | CREATE TABLE "games" (
"series" text,
"platform" text,
"japanese_release_date" text,
"north_american_release_date" text,
"european_release_date" text,
"australia_release_date" text
); | SELECT "japanese_release_date" FROM "games" WHERE "australia_release_date"='2006-03-23'; | 2-17769769-1 |
What is North American Release Date, when Japanese Release Date is "2011-06-23"? | CREATE TABLE "games" (
"series" text,
"platform" text,
"japanese_release_date" text,
"north_american_release_date" text,
"european_release_date" text,
"australia_release_date" text
); | SELECT "north_american_release_date" FROM "games" WHERE "japanese_release_date"='2011-06-23'; | 2-17769769-1 |
What is the goal difference when there are fewer than 12 wins, 32 goals against and 8 draws? | CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("goal_difference") FROM "group_ii" WHERE "draws"=8 AND "goals_against"=32 AND "wins"<12; | 2-17740819-4 |
What's the lowest goal difference when the position is higher than 16? | CREATE TABLE "group_ii" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("goal_difference") FROM "group_ii" WHERE "position">16; | 2-17740819-4 |
Which venue was the opposing team New Zealand on 22/11/1997? | CREATE TABLE "1997" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "venue" FROM "1997" WHERE "opposing_teams"='new zealand' AND "date"='22/11/1997'; | 2-18178534-8 |
What day was the opposing team Australia and the against 25? | CREATE TABLE "1997" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "1997" WHERE "against"=25 AND "opposing_teams"='australia'; | 2-18178534-8 |
What was the status for the opposing team South Africa? | CREATE TABLE "1997" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "status" FROM "1997" WHERE "opposing_teams"='south africa'; | 2-18178534-8 |
What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? | CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "position"='mf' AND "league_cup_apps"='0' AND "name"='ben thornley'; | 2-17944591-1 |
What is the Total Apps when League Cup Apps is 0 (1), and position is df? | CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT "total_apps" FROM "appearances_and_goals" WHERE "league_cup_apps"='0 (1)' AND "position"='df'; | 2-17944591-1 |
What is the total goals for Mark Ward? | CREATE TABLE "appearances_and_goals" (
"name" text,
"position" text,
"league_apps" text,
"league_goals" real,
"fa_cup_apps" text,
"fa_cup_goals" real,
"league_cup_apps" text,
"league_cup_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT MIN("total_goals") FROM "appearances_and_goals" WHERE "name"='mark ward'; | 2-17944591-1 |
What is the political party of Jackie Goldberg? | CREATE TABLE "former_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "party" FROM "former_members" WHERE "name"='jackie goldberg'; | 2-17769516-2 |
During what years was Christine Kehoe in Assembly? | CREATE TABLE "former_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "years_in_assembly" FROM "former_members" WHERE "name"='christine kehoe'; | 2-17769516-2 |
What were the San Francisco resident's years in assembly? | CREATE TABLE "former_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "years_in_assembly" FROM "former_members" WHERE "residence"='san francisco'; | 2-17769516-2 |
What political party does the person from San Diego belong to? | CREATE TABLE "former_members" (
"name" text,
"residence" text,
"party" text,
"years_in_assembly" text,
"years_in_senate" text
); | SELECT "party" FROM "former_members" WHERE "residence"='san diego'; | 2-17769516-2 |
Which Opposing Teams is on 06/02/1988? | CREATE TABLE "1988" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "opposing_teams" FROM "1988" WHERE "date"='06/02/1988'; | 2-18178608-9 |
When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ireland are in? | CREATE TABLE "1988" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "1988" WHERE "status"='five nations' AND "venue"='twickenham , london' AND "opposing_teams"='ireland'; | 2-18178608-9 |
What's the attendance when the opponents are cambridge united? | CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
); | SELECT "attendance" FROM "pre_season_and_friendlies" WHERE "opponents"='cambridge united'; | 2-18258697-1 |
What's the average attendance when the opponents are dundalk? | CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
); | SELECT AVG("attendance") FROM "pre_season_and_friendlies" WHERE "opponents"='dundalk'; | 2-18258697-1 |
What's the total attendance for H/A of A and opponents of wolverhampton wanderers? | CREATE TABLE "pre_season_and_friendlies" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
); | SELECT COUNT("attendance") FROM "pre_season_and_friendlies" WHERE "h_a"='a' AND "opponents"='wolverhampton wanderers'; | 2-18258697-1 |
Which Total has a Gold smaller than 4? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "gold"<4; | 2-178749-10 |
Which Rank has a Nation of china (chn), and a Bronze smaller than 4? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("rank") FROM "medal_table" WHERE "nation"='china (chn)' AND "bronze"<4; | 2-178749-10 |
How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned), and a Gold larger than 4? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_table" WHERE "bronze"<13 AND "nation"='netherlands (ned)' AND "gold">4; | 2-178749-10 |
Which website was founded before 1897, and is located in Adaminaby? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT "website" FROM "a" WHERE "founded"<1897 AND "suburb_town"='adaminaby'; | 2-18155400-1 |
Which website is located in Albury and has a school of Albury High School? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT "website" FROM "a" WHERE "suburb_town"='albury' AND "school"='albury high school'; | 2-18155400-1 |
What is the average year founded that is located in Broken Hill and has school years of k-6? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT AVG("founded") FROM "a" WHERE "years"='k-6' AND "suburb_town"='broken hill'; | 2-18155400-1 |
What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public School as its school? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT "suburb_town" FROM "a" WHERE "years"='k-6' AND "founded"<1875 AND "school"='ashfield public school'; | 2-18155400-1 |
What is the year Airds High School was founded? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT "founded" FROM "a" WHERE "school"='airds high school'; | 2-18155400-1 |
Which website has 1921 as the year founded? | CREATE TABLE "a" (
"school" text,
"suburb_town" text,
"years" text,
"founded" real,
"website" text
); | SELECT "website" FROM "a" WHERE "founded"=1921; | 2-18155400-1 |
What Score points has a Rank points of defending champion? | CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
); | SELECT "score_points" FROM "qualification" WHERE "rank_points"='defending champion'; | 2-18351792-10 |
What Rank points has an Event of wc beijing, and Score points of 11? | CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
); | SELECT "rank_points" FROM "qualification" WHERE "event"='wc beijing' AND "score_points"='11'; | 2-18351792-10 |
What Shooter has a Total of 28? | CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
); | SELECT "shooter" FROM "qualification" WHERE "total"='28'; | 2-18351792-10 |
What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4? | CREATE TABLE "qualification" (
"shooter" text,
"event" text,
"rank_points" text,
"score_points" text,
"total" text
); | SELECT "shooter" FROM "qualification" WHERE "event"='wc beijing' AND "total"='16' AND "rank_points"='4'; | 2-18351792-10 |
What is the average against of Murrayfield, Edinburgh? | CREATE TABLE "1982" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT AVG("against") FROM "1982" WHERE "venue"='murrayfield, edinburgh'; | 2-18178608-3 |
What is the status of the Wales opposing team? | CREATE TABLE "1982" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "status" FROM "1982" WHERE "opposing_teams"='wales'; | 2-18178608-3 |
What date has an against of 7? | CREATE TABLE "1982" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "1982" WHERE "against"=7; | 2-18178608-3 |
What District was Incumbent Steve Israel First elected after 1998 in the Democratic party? | CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
); | SELECT "district" FROM "new_york" WHERE "first_elected">1998 AND "party"='democratic' AND "incumbent"='steve israel'; | 2-1805191-33 |
What are the results of a first elected prior to year 1982? | CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
); | SELECT "results" FROM "new_york" WHERE "first_elected"<1982; | 2-1805191-33 |
Who is the Incumbent of the Democratic Party at an election after 1992 in the New York 1 District who was Re-elected? | CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text
); | SELECT "incumbent" FROM "new_york" WHERE "party"='democratic' AND "results"='re-elected' AND "first_elected">1992 AND "district"='new york 1'; | 2-1805191-33 |
What is Gene Sauers' to par? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "to_par" FROM "first_round" WHERE "player"='gene sauers'; | 2-18103106-4 |
Where is john daly of united states from? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "place" FROM "first_round" WHERE "country"='united states' AND "player"='john daly'; | 2-18103106-4 |
What is the average rank of the city of el paso, which has a population greater than 672,538? | CREATE TABLE "largest_cities_and_metropolitan_areas" (
"rank" real,
"city" text,
"state" text,
"population" real,
"metro_population_of_4_aspects" real
); | SELECT AVG("rank") FROM "largest_cities_and_metropolitan_areas" WHERE "city"='el paso' AND "population">'672,538'; | 2-179571-1 |
What is the state of the city of denver, which has a rank less than 10? | CREATE TABLE "largest_cities_and_metropolitan_areas" (
"rank" real,
"city" text,
"state" text,
"population" real,
"metro_population_of_4_aspects" real
); | SELECT "state" FROM "largest_cities_and_metropolitan_areas" WHERE "rank"<10 AND "city"='denver'; | 2-179571-1 |
What is the result when the round is less than 3, the location is in Auckland, New Zealand, and tko is the method? | CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "result" FROM "boxing_record" WHERE "round"<3 AND "location"='auckland, new zealand' AND "method"='tko'; | 2-17998777-1 |
What is the smallest round to have a record of 4-0? | CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT MIN("round") FROM "boxing_record" WHERE "record"='4-0'; | 2-17998777-1 |
What is the result of a round greater than 3? | CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "result" FROM "boxing_record" WHERE "round">3; | 2-17998777-1 |
Which event has Toa Naketoatama as an opponent? | CREATE TABLE "boxing_record" (
"result" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "event" FROM "boxing_record" WHERE "opponent"='toa naketoatama'; | 2-17998777-1 |
How many kills have 15 as the injured, with a year prior to 1987? | CREATE TABLE "europe" (
"perpetrator" text,
"date" text,
"year" real,
"location" text,
"country" text,
"killed" real,
"injured" text
); | SELECT SUM("killed") FROM "europe" WHERE "injured"='15' AND "year"<1987; | 2-17794738-5 |
What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"? | CREATE TABLE "2007" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "2007" WHERE "opposing_teams"='south africa' AND "venue"='vodacom park , bloemfontein'; | 2-18178551-8 |
What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."? | CREATE TABLE "2007" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT AVG("against") FROM "2007" WHERE "status"='2007 rugby world cup' AND "opposing_teams"='u.s.a.'; | 2-18178551-8 |
What is Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when Date is "08/09/2007"? | CREATE TABLE "2007" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "venue" FROM "2007" WHERE "status"='2007 rugby world cup' AND "against"<22 AND "date"='08/09/2007'; | 2-18178551-8 |
What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"? | CREATE TABLE "2007" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT MIN("against") FROM "2007" WHERE "status"='first test' AND "date"='26/05/2007'; | 2-18178551-8 |
What is Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"? | CREATE TABLE "2007" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "opposing_teams" FROM "2007" WHERE "against"=20 AND "venue"='twickenham , london'; | 2-18178551-8 |
What is the record when Danilo Pereira was the opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='danilo pereira'; | 2-17936984-2 |
Which event had Edson Claas Vieira as an opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='edson claas vieira'; | 2-17936984-2 |
Which method was used when Rafael Cavalcante was the opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='rafael cavalcante'; | 2-17936984-2 |
Which method was used when Alessio Sakara was the opponent? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='alessio sakara'; | 2-17936984-2 |
Who is the opponent when the record is 3-8? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='3-8'; | 2-17936984-2 |
What was the 2006 population for the local government area of alexandrina council whose rank was smaller than 19? | CREATE TABLE "25_largest_local_government_areas_by_pop" (
"rank" real,
"local_government_area" text,
"population_2006_census" real,
"population_2007_estimate" real,
"growth_rate" text,
"stat_division_district" text
); | SELECT AVG("population_2006_census") FROM "25_largest_local_government_areas_by_pop" WHERE "local_government_area"='alexandrina council' AND "rank"<19; | 2-18149854-2 |
What is the total fat with a smoke point of °c (), 25g of saturated fat? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "saturated_fat"='25g'; | 2-177267-1 |
What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='11g' AND "monounsaturated_fat"='73g'; | 2-177267-1 |
What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "smoke_point" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "monounsaturated_fat"='46g'; | 2-177267-1 |
What shows for monounsaturated fat when the saturated fat is 39g? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "monounsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "saturated_fat"='39g'; | 2-177267-1 |
What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "smoke_point" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='69g (4g in high oleic variety)'; | 2-177267-1 |
What is the saturated fat when the total fat is 100g, and polyunsaturated fat is 69g (4g in high oleic variety)? | CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
); | SELECT "saturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "polyunsaturated_fat"='69g (4g in high oleic variety)'; | 2-177267-1 |
What is the Tie No with a Score of 2–2? | CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "tie_no" FROM "sixth_round_proper" WHERE "score"='2–2'; | 2-17751803-6 |
What is the Date of the Crystal Palace Away game? | CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='crystal palace'; | 2-17751803-6 |
What is the Home team of Tie no 2? | CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "sixth_round_proper" WHERE "tie_no"='2'; | 2-17751803-6 |
What is the Home team of tie no 2? | CREATE TABLE "sixth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "home_team" FROM "sixth_round_proper" WHERE "tie_no"='2'; | 2-17751803-6 |
What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000RR", and when Rider is "Jason Pridmore"? | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT AVG("grid") FROM "superbike_race_2_classification" WHERE "laps"<24 AND "bike"='honda cbr1000rr' AND "rider"='jason pridmore'; | 2-18145978-2 |
What is the highest Laps, when Bike is "Yamaha YZF-R1", when Rider is "David Checa", and when Grid is greater than 18? | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT MAX("laps") FROM "superbike_race_2_classification" WHERE "bike"='yamaha yzf-r1' AND "rider"='david checa' AND "grid">18; | 2-18145978-2 |
What is the sum of Grid, when Time is "+16.687"? | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT SUM("grid") FROM "superbike_race_2_classification" WHERE "time"='+16.687'; | 2-18145978-2 |
What is the total number of Grid, when Laps is greater than 24? | CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
); | SELECT COUNT("grid") FROM "superbike_race_2_classification" WHERE "laps">24; | 2-18145978-2 |
Who was the runner-up after season 2 when the total prize money was $108,000? | CREATE TABLE "australia" (
"season" real,
"year" real,
"mole" text,
"winner" text,
"runner_up" text,
"total_prize_money" text,
"potential_prize_money" text,
"destination" text
); | SELECT "runner_up" FROM "australia" WHERE "season">2 AND "total_prize_money"='$108,000'; | 2-178242-2 |
What was the highest season number with a total prize of $108,000? | CREATE TABLE "australia" (
"season" real,
"year" real,
"mole" text,
"winner" text,
"runner_up" text,
"total_prize_money" text,
"potential_prize_money" text,
"destination" text
); | SELECT MAX("season") FROM "australia" WHERE "total_prize_money"='$108,000'; | 2-178242-2 |
What is the earliest season where Aisha Jefcoate was the runner-up? | CREATE TABLE "australia" (
"season" real,
"year" real,
"mole" text,
"winner" text,
"runner_up" text,
"total_prize_money" text,
"potential_prize_money" text,
"destination" text
); | SELECT MIN("season") FROM "australia" WHERE "runner_up"='aisha jefcoate'; | 2-178242-2 |
When the Mole was Petrina Edge, what was the potential prize money? | CREATE TABLE "australia" (
"season" real,
"year" real,
"mole" text,
"winner" text,
"runner_up" text,
"total_prize_money" text,
"potential_prize_money" text,
"destination" text
); | SELECT "potential_prize_money" FROM "australia" WHERE "mole"='petrina edge'; | 2-178242-2 |
Which Share has a weekly Rank of 8 and is dated 15 June? | CREATE TABLE "ratings" (
"show" text,
"date" text,
"official_ratings_millions" real,
"weekly_rank" text,
"share" text
); | SELECT "share" FROM "ratings" WHERE "weekly_rank"='8' AND "date"='15 june'; | 2-17643418-7 |
Which Weekly Rank has an Official ratings (millions) of 11.58? | CREATE TABLE "ratings" (
"show" text,
"date" text,
"official_ratings_millions" real,
"weekly_rank" text,
"share" text
); | SELECT "weekly_rank" FROM "ratings" WHERE "official_ratings_millions"=11.58; | 2-17643418-7 |
Which Show is dated 9 June? | CREATE TABLE "ratings" (
"show" text,
"date" text,
"official_ratings_millions" real,
"weekly_rank" text,
"share" text
); | SELECT "show" FROM "ratings" WHERE "date"='9 june'; | 2-17643418-7 |
Which Weekly Rank for a Live Final Show has an Official Ratings (millions) greater than 5.2? | CREATE TABLE "ratings" (
"show" text,
"date" text,
"official_ratings_millions" real,
"weekly_rank" text,
"share" text
); | SELECT "weekly_rank" FROM "ratings" WHERE "official_ratings_millions">5.2 AND "show"='live final'; | 2-17643418-7 |
What is the status with the opposing team of Scotland? | CREATE TABLE "1948" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "status" FROM "1948" WHERE "opposing_teams"='scotland'; | 2-18204560-2 |
What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland? | CREATE TABLE "1948" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT MIN("against") FROM "1948" WHERE "venue"='twickenham, london' AND "status"='five nations' AND "opposing_teams"='ireland'; | 2-18204560-2 |
Which Venue has a Against smaller than 7? | CREATE TABLE "1992" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "venue" FROM "1992" WHERE "against"<7; | 2-18178534-3 |
When has a Status of five nations, and a Against of 7? | CREATE TABLE "1992" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "date" FROM "1992" WHERE "status"='five nations' AND "against"=7; | 2-18178534-3 |
Which Venue has a Against larger than 13? | CREATE TABLE "1992" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT "venue" FROM "1992" WHERE "against">13; | 2-18178534-3 |
Name the Against which has a Venue of wembley stadium , london? | CREATE TABLE "1992" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
); | SELECT MAX("against") FROM "1992" WHERE "venue"='wembley stadium , london'; | 2-18178534-3 |
Which wins have less than 1 bye? | CREATE TABLE "first_ladder_1999" (
"club" text,
"wins" real,
"byes" real,
"losses" real,
"against" real
); | SELECT MAX("wins") FROM "first_ladder_1999" WHERE "byes"<1; | 2-17982205-1 |
Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly? | CREATE TABLE "first_ladder_1999" (
"club" text,
"wins" real,
"byes" real,
"losses" real,
"against" real
); | SELECT MIN("against") FROM "first_ladder_1999" WHERE "losses">10 AND "wins"<4 AND "club"='dunolly'; | 2-17982205-1 |
Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12? | CREATE TABLE "first_ladder_1999" (
"club" text,
"wins" real,
"byes" real,
"losses" real,
"against" real
); | SELECT AVG("byes") FROM "first_ladder_1999" WHERE "against"<1297 AND "club"='avoca' AND "wins">12; | 2-17982205-1 |
What Kit/Factory has a J250 model made by Jabiru? | CREATE TABLE "recreational_aircraft" (
"manufacturer" text,
"model" text,
"kit_factory" text,
"wing" text,
"seats" real
); | SELECT "kit_factory" FROM "recreational_aircraft" WHERE "manufacturer"='jabiru' AND "model"='j250'; | 2-17699890-1 |
When was the duchess, who was married on 11 july 1643, born? | CREATE TABLE "house_of_savoy" (
"name" text,
"father" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "birth" FROM "house_of_savoy" WHERE "marriage"='11 july 1643'; | 2-1825009-4 |
When was anne of lorraine born? | CREATE TABLE "house_of_savoy" (
"name" text,
"father" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "birth" FROM "house_of_savoy" WHERE "name"='anne of lorraine'; | 2-1825009-4 |
When did the duchess, who was married to philippe, die? | CREATE TABLE "house_of_savoy" (
"name" text,
"father" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "death" FROM "house_of_savoy" WHERE "spouse"='philippe'; | 2-1825009-4 |
When did the woman, who was married 22 may 1657, cease to be the duchess? | CREATE TABLE "house_of_savoy" (
"name" text,
"father" text,
"birth" text,
"marriage" text,
"became_duchess" text,
"ceased_to_be_duchess" text,
"death" text,
"spouse" text
); | SELECT "ceased_to_be_duchess" FROM "house_of_savoy" WHERE "marriage"='22 may 1657'; | 2-1825009-4 |
What is the score of the game with a tie no of 3? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='3'; | 2-17751851-4 |
Who did home team sunderland play on 23 january 1982? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "away_team" FROM "fourth_round_proper" WHERE "date"='23 january 1982' AND "home_team"='sunderland'; | 2-17751851-4 |
What is the score of the game against away team queens park rangers on 23 january 1982? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "date"='23 january 1982' AND "away_team"='queens park rangers'; | 2-17751851-4 |
What is the score of the game with a tie no of 6? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='6'; | 2-17751851-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.