question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
When has a Source of surveyusa and a Obama of 54%? | CREATE TABLE "polling" (
"source" text,
"date" text,
"clinton" text,
"obama" text,
"undecided" text
); | SELECT "date" FROM "polling" WHERE "source"='surveyusa' AND "obama"='54%'; | 2-15638491-1 |
When has a Source of rasmussen reports? | CREATE TABLE "polling" (
"source" text,
"date" text,
"clinton" text,
"obama" text,
"undecided" text
); | SELECT "date" FROM "polling" WHERE "source"='rasmussen reports'; | 2-15638491-1 |
Which Source has a Clinton of 39% and a Undecided of 7%? | CREATE TABLE "polling" (
"source" text,
"date" text,
"clinton" text,
"obama" text,
"undecided" text
); | SELECT "source" FROM "polling" WHERE "clinton"='39%' AND "undecided"='7%'; | 2-15638491-1 |
What is the Date of Birth with a Block that is larger than 342? | CREATE TABLE "volleyball_at_the_2004_summer_olympics_m" (
"name" text,
"date_of_birth" text,
"height" real,
"weight" real,
"spike" real,
"block" real
); | SELECT "date_of_birth" FROM "volleyball_at_the_2004_summer_olympics_m" WHERE "block">342; | 2-15859432-9 |
What is the number of positions that have 2012 ratings of 0.92? | CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"launch_date" real,
"owner" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_p" real
); | SELECT COUNT("position") FROM "most_viewed_channels" WHERE "2012"='0.92'; | 2-15887683-22 |
What is the owner of the channel that has a 2012 rating of 5.42? | CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"launch_date" real,
"owner" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_p" real
); | SELECT "owner" FROM "most_viewed_channels" WHERE "2012"='5.42'; | 2-15887683-22 |
What is the 2007 rating of the channel with a position of 6? | CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"launch_date" real,
"owner" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_p" real
); | SELECT "2007" FROM "most_viewed_channels" WHERE "position"=6; | 2-15887683-22 |
What is the channel with a 2011 rating of 8.5? | CREATE TABLE "most_viewed_channels" (
"position" real,
"channel" text,
"launch_date" real,
"owner" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013_p" real
); | SELECT "channel" FROM "most_viewed_channels" WHERE "2011"='8.5'; | 2-15887683-22 |
What is ASTC Member, when State is Arkansas, when AAM Member is No, and when AAM Accredited is Yes? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "astc_member" FROM "see_also" WHERE "state"='arkansas' AND "aam_member"='no' AND "aam_accredited"='yes'; | 2-15728686-1 |
What is City, when State is Florida, when AAM Member is No, and when AAM Accredited is No? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "city" FROM "see_also" WHERE "state"='florida' AND "aam_member"='no' AND "aam_accredited"='no'; | 2-15728686-1 |
What is City, when ASTC Member is No, when State is California, and when AAM Member is Yes? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "city" FROM "see_also" WHERE "astc_member"='no' AND "state"='california' AND "aam_member"='yes'; | 2-15728686-1 |
What is State, when AAM Accredited is No, when ASTC Member is No, and when City is Tulsa? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "state" FROM "see_also" WHERE "aam_accredited"='no' AND "astc_member"='no' AND "city"='tulsa'; | 2-15728686-1 |
What is City, when State is California, when AAM Accredited is No, when ASTC Member is Yes, and when AAM Member is No? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "city" FROM "see_also" WHERE "state"='california' AND "aam_accredited"='no' AND "astc_member"='yes' AND "aam_member"='no'; | 2-15728686-1 |
What is AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento? | CREATE TABLE "see_also" (
"city" text,
"state" text,
"aam_accredited" text,
"aam_member" text,
"astc_member" text
); | SELECT "aam_member" FROM "see_also" WHERE "aam_accredited"='no' AND "state"='california' AND "astc_member"='yes' AND "city"='sacramento'; | 2-15728686-1 |
Who were the runners-up when the individual winner was Tiger Woods? | CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text,
"runners_up" text
); | SELECT "runners_up" FROM "winners" WHERE "individual"='tiger woods'; | 2-1543977-4 |
How many years was the individual winner from the United States was Tiger Woods? | CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text,
"runners_up" text
); | SELECT COUNT("year") FROM "winners" WHERE "country"='united states' AND "individual"='tiger woods'; | 2-1543977-4 |
What is the earliest year that the tournament was played in Cape Town, South Africa? | CREATE TABLE "winners" (
"year" real,
"country" text,
"team" text,
"individual" text,
"location" text,
"runners_up" text
); | SELECT MIN("year") FROM "winners" WHERE "location"='cape town, south africa'; | 2-1543977-4 |
What is the highest league for the league cup more than 1, and a FA cup of 1? | CREATE TABLE "topscorers_in_order_of_league_goals" (
"player" text,
"club" text,
"league" real,
"fa_cup" real,
"fa_trophy" real,
"league_cup" real,
"total" real
); | SELECT MAX("league") FROM "topscorers_in_order_of_league_goals" WHERE "league_cup">1 AND "fa_cup"=1; | 2-15654040-4 |
Who is the Driver, when the Date is October 6? | CREATE TABLE "winners" (
"season" real,
"date" text,
"location" text,
"driver" text,
"chassis" text,
"engine" text,
"team" text
); | SELECT "driver" FROM "winners" WHERE "date"='october 6'; | 2-15736385-1 |
What is the total number of Seasons, when the Engine is Cosworth, and when the Team is Kraco Racing? | CREATE TABLE "winners" (
"season" real,
"date" text,
"location" text,
"driver" text,
"chassis" text,
"engine" text,
"team" text
); | SELECT COUNT("season") FROM "winners" WHERE "engine"='cosworth' AND "team"='kraco racing'; | 2-15736385-1 |
Who is the Driver, when the Engine is Chevrolet, and when the Date is October 3? | CREATE TABLE "winners" (
"season" real,
"date" text,
"location" text,
"driver" text,
"chassis" text,
"engine" text,
"team" text
); | SELECT "driver" FROM "winners" WHERE "engine"='chevrolet' AND "date"='october 3'; | 2-15736385-1 |
What is the sum of Seasons, when the Team is Penske Racing, and when the Date is October 3? | CREATE TABLE "winners" (
"season" real,
"date" text,
"location" text,
"driver" text,
"chassis" text,
"engine" text,
"team" text
); | SELECT SUM("season") FROM "winners" WHERE "team"='penske racing' AND "date"='october 3'; | 2-15736385-1 |
What was the Year to Open for the Dandeung Bridge? | CREATE TABLE "bridges_under_construction" (
"name" text,
"main_span_metres" text,
"main_span_feet" text,
"year_to_open" real,
"country" text
); | SELECT COUNT("year_to_open") FROM "bridges_under_construction" WHERE "name"='dandeung bridge'; | 2-1604842-2 |
What is the Main span of the Qincaobei Bridge | CREATE TABLE "bridges_under_construction" (
"name" text,
"main_span_metres" text,
"main_span_feet" text,
"year_to_open" real,
"country" text
); | SELECT "main_span_feet" FROM "bridges_under_construction" WHERE "name"='qincaobei bridge'; | 2-1604842-2 |
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585? | CREATE TABLE "bridges_under_construction" (
"name" text,
"main_span_metres" text,
"main_span_feet" text,
"year_to_open" real,
"country" text
); | SELECT "main_span_metres" FROM "bridges_under_construction" WHERE "year_to_open"=2013 AND "country"='china' AND "main_span_feet"='2,585'; | 2-1604842-2 |
Which republican ticket has stanley h. fuld as the Democratic ticket? | CREATE TABLE "1966_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"conservative_ticket" text,
"liberal_ticket" text,
"socialist_labor_ticket" text,
"socialist_workers_ticket" text
); | SELECT "republican_ticket" FROM "1966_state_election_results" WHERE "democratic_ticket"='stanley h. fuld'; | 2-15558974-1 |
What is the liberal ticket that has judith white as the socialist workers? | CREATE TABLE "1966_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"conservative_ticket" text,
"liberal_ticket" text,
"socialist_labor_ticket" text,
"socialist_workers_ticket" text
); | SELECT "liberal_ticket" FROM "1966_state_election_results" WHERE "socialist_workers_ticket"='judith white'; | 2-15558974-1 |
What socialist workers ticket has malcolm wilson as the Republican ticket? | CREATE TABLE "1966_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"conservative_ticket" text,
"liberal_ticket" text,
"socialist_labor_ticket" text,
"socialist_workers_ticket" text
); | SELECT "socialist_workers_ticket" FROM "1966_state_election_results" WHERE "republican_ticket"='malcolm wilson'; | 2-15558974-1 |
Which office has kieran o'doherty as the conservative ticket? | CREATE TABLE "1966_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"conservative_ticket" text,
"liberal_ticket" text,
"socialist_labor_ticket" text,
"socialist_workers_ticket" text
); | SELECT "office" FROM "1966_state_election_results" WHERE "conservative_ticket"='kieran o''doherty'; | 2-15558974-1 |
What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket? | CREATE TABLE "1966_state_election_results" (
"office" text,
"republican_ticket" text,
"democratic_ticket" text,
"conservative_ticket" text,
"liberal_ticket" text,
"socialist_labor_ticket" text,
"socialist_workers_ticket" text
); | SELECT "office" FROM "1966_state_election_results" WHERE "socialist_labor_ticket"='(none)' AND "liberal_ticket"='stanley h. fuld'; | 2-15558974-1 |
If the call sign is w291ch what's the ERP W corresponding to that sign? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "erp_w" FROM "translators" WHERE "call_sign"='w291ch'; | 2-1540742-1 |
For the call sign w242at what's the city the license plate is registered to? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "city_of_license" FROM "translators" WHERE "call_sign"='w242at'; | 2-1540742-1 |
What's the Class for the city the license plate was issued in great barrington, massachusetts? | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "class" FROM "translators" WHERE "city_of_license"='great barrington, massachusetts'; | 2-1540742-1 |
How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3? | CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medals_table" WHERE "bronze"=1 AND "rank"<6 AND "total"<3; | 2-15826161-2 |
How many France bronze have a gold of more than 1 and a rank of 0? | CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("bronze") FROM "medals_table" WHERE "gold">1 AND "nation"='france' AND "rank"<1; | 2-15826161-2 |
How many gold have a silver of 1 and a bronze of 0? | CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medals_table" WHERE "silver"=1 AND "bronze"<1; | 2-15826161-2 |
What is the Aircraft when Kabul was the location, unknown fatalities, and the tail number was ya-ban? | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "aircraft" FROM "accidents_and_incidents" WHERE "location"='kabul' AND "fatalities"='unknown' AND "tail_number"='ya-ban'; | 2-158904-1 |
What is the Fatalities when the tail number was unknown and in Kabul> | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "fatalities" FROM "accidents_and_incidents" WHERE "tail_number"='unknown' AND "location"='kabul'; | 2-158904-1 |
What is the location for the an-12b aircraft? | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "location" FROM "accidents_and_incidents" WHERE "aircraft"='an-12b'; | 2-158904-1 |
What location had 25/25 fatalities? | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "location" FROM "accidents_and_incidents" WHERE "fatalities"='25/25'; | 2-158904-1 |
What tail number was on the an-26, with 25/25 fatalities? | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "tail_number" FROM "accidents_and_incidents" WHERE "aircraft"='an-26' AND "fatalities"='25/25'; | 2-158904-1 |
What type of aircraft was the plane with a tail number of ya-bao? | CREATE TABLE "accidents_and_incidents" (
"location" text,
"aircraft" text,
"tail_number" text,
"aircraft_damage" text,
"fatalities" text
); | SELECT "aircraft" FROM "accidents_and_incidents" WHERE "tail_number"='ya-bao'; | 2-158904-1 |
What is the total number of Points from a Match that is larger than 18? | CREATE TABLE "third_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
); | SELECT COUNT("points") FROM "third_league" WHERE "match">18; | 2-15447701-4 |
In what Season was the Series Formula Renault 3.5 series with less than 7 Races? | CREATE TABLE "racing_record" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"points" text,
"position" text
); | SELECT SUM("season") FROM "racing_record" WHERE "series"='formula renault 3.5 series' AND "races"<7; | 2-16079003-1 |
What was the Series in 2009? | CREATE TABLE "racing_record" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"points" text,
"position" text
); | SELECT "series" FROM "racing_record" WHERE "season"=2009; | 2-16079003-1 |
How many Wins in the Year with more than 16 Races? | CREATE TABLE "racing_record" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"points" text,
"position" text
); | SELECT "wins" FROM "racing_record" WHERE "races">16; | 2-16079003-1 |
In what Season were then less than 3 Races with less than 1 Win? | CREATE TABLE "racing_record" (
"season" real,
"series" text,
"team" text,
"races" real,
"wins" real,
"points" text,
"position" text
); | SELECT AVG("season") FROM "racing_record" WHERE "races"<3 AND "wins"<1; | 2-16079003-1 |
Which 1st leg has a Team #1 of ummc ekaterinburg? | CREATE TABLE "eighth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "1st_leg" FROM "eighth_finals" WHERE "team_num1"='ummc ekaterinburg'; | 2-15627455-1 |
Which Team #2 has a 2nd leg of 79 - 74 (ot)? | CREATE TABLE "eighth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num2" FROM "eighth_finals" WHERE "2nd_leg"='79 - 74 (ot)'; | 2-15627455-1 |
Which Team #2 has a 1st leg of 70 - 44? | CREATE TABLE "eighth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num2" FROM "eighth_finals" WHERE "1st_leg"='70 - 44'; | 2-15627455-1 |
Which Team #2 has a Team #1 of gambrinus sika brno? | CREATE TABLE "eighth_finals" (
"team_num1" text,
"agg" text,
"team_num2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_num2" FROM "eighth_finals" WHERE "team_num1"='gambrinus sika brno'; | 2-15627455-1 |
What is the Goal number in Råsunda, Stockholm with a Result of 2–2? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT AVG("goal") FROM "international_goals" WHERE "result"='2–2' AND "venue"='råsunda, stockholm'; | 2-1610526-1 |
What is the Result of Goal number 3? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "goal"=3; | 2-1610526-1 |
On what day was a game played at Reese Smith Field, with a score of 4-3? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "date" FROM "schedule_and_results" WHERE "score"='4-3' AND "site_stadium"='reese smith field'; | 2-15996225-5 |
What was the score for the game played on May 10 at Alex Box Stadium? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='alex box stadium' AND "date"='may 10'; | 2-15996225-5 |
What was the score for the game played at Sarge Frye Field? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='sarge frye field'; | 2-15996225-5 |
On what date was a game played, which left the team with a record of 5-7? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "date" FROM "schedule_and_results" WHERE "record"='5-7'; | 2-15996225-5 |
What was the score of the game played at Harmon Stadium on February 24? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "score" FROM "schedule_and_results" WHERE "site_stadium"='harmon stadium' AND "date"='february 24'; | 2-15996225-5 |
Where was the game on May 9 played? | CREATE TABLE "schedule_and_results" (
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"record" text
); | SELECT "site_stadium" FROM "schedule_and_results" WHERE "date"='may 9'; | 2-15996225-5 |
What is the greatest position when the points are less than 21, and the played greater than 14? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MAX("position") FROM "campeonato_paulista" WHERE "points"<21 AND "played">14; | 2-15352382-1 |
What is the fewest lost with a difference of 9 and a less than 3 drawn? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("lost") FROM "campeonato_paulista" WHERE "difference"='9' AND "drawn"<3; | 2-15352382-1 |
Team Estudantes Paulista with a position less than 4 has what average against? | CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT AVG("against") FROM "campeonato_paulista" WHERE "team"='estudantes paulista' AND "position"<4; | 2-15352382-1 |
What was the margin of victory on Apr 8, 1979? | CREATE TABLE "lpga_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "lpga_tour_wins_8" WHERE "date"='apr 8, 1979'; | 2-1539945-2 |
What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley? | CREATE TABLE "lpga_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "winning_score" FROM "lpga_tour_wins_8" WHERE "margin_of_victory"='2 strokes' AND "runner_s_up"='pat bradley'; | 2-1539945-2 |
What was the margin of victory when the winning score was −5 (69-69-73=211)? | CREATE TABLE "lpga_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "lpga_tour_wins_8" WHERE "winning_score"='−5 (69-69-73=211)'; | 2-1539945-2 |
Which tournament had a winning score of −5 (69-69-73=211)? | CREATE TABLE "lpga_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "tournament" FROM "lpga_tour_wins_8" WHERE "winning_score"='−5 (69-69-73=211)'; | 2-1539945-2 |
When was the winning score −6 (69-69-73-71=282)? | CREATE TABLE "lpga_tour_wins_8" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "lpga_tour_wins_8" WHERE "winning_score"='−6 (69-69-73-71=282)'; | 2-1539945-2 |
Who is the opponent of the game played on November 20, 1995? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1995'; | 2-16023832-2 |
What is the highest Grid with a Name that is jamie whincup? | CREATE TABLE "race_2_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("grid") FROM "race_2_results" WHERE "name"='jamie whincup'; | 2-15889510-3 |
What is the Team with a Lap that is 5? | CREATE TABLE "race_2_results" (
"name" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "team" FROM "race_2_results" WHERE "laps"=5; | 2-15889510-3 |
What's the lowest round Justin Forsett was drafted in, with a draft pick larger than 233? | CREATE TABLE "2008_nfl_draft_selections" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
); | SELECT MIN("round") FROM "2008_nfl_draft_selections" WHERE "name"='justin forsett' AND "pick">233; | 2-15347797-1 |
What's the average round the position of RB was drafted? | CREATE TABLE "2008_nfl_draft_selections" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "2008_nfl_draft_selections" WHERE "position"='rb'; | 2-15347797-1 |
What's the average round Red Bryant was drafted with a pick larger than 121? | CREATE TABLE "2008_nfl_draft_selections" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "2008_nfl_draft_selections" WHERE "name"='red bryant' AND "pick">121; | 2-15347797-1 |
Can you tell me the Overall Record that has the Away Team of miami? | CREATE TABLE "schedule" (
"week" real,
"home_team" text,
"away_team" text,
"overall_record" text,
"divisional_record" text
); | SELECT "overall_record" FROM "schedule" WHERE "away_team"='miami'; | 2-15947181-2 |
Can you tell me the Overall Record that has the Week of 3? | CREATE TABLE "schedule" (
"week" real,
"home_team" text,
"away_team" text,
"overall_record" text,
"divisional_record" text
); | SELECT "overall_record" FROM "schedule" WHERE "week"=3; | 2-15947181-2 |
Can you tell me the Divisional Record that has the Away Team of dallas? | CREATE TABLE "schedule" (
"week" real,
"home_team" text,
"away_team" text,
"overall_record" text,
"divisional_record" text
); | SELECT "divisional_record" FROM "schedule" WHERE "away_team"='dallas'; | 2-15947181-2 |
Can you tell me the Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami? | CREATE TABLE "schedule" (
"week" real,
"home_team" text,
"away_team" text,
"overall_record" text,
"divisional_record" text
); | SELECT "overall_record" FROM "schedule" WHERE "week"<16 AND "divisional_record"='(1-0)' AND "away_team"='miami'; | 2-15947181-2 |
Can you tell me the Week that has the Home Team of detroit, and the Divisional Record of (3-0), and the Overall Record of (5-1), and the Away Team of minnesota? | CREATE TABLE "schedule" (
"week" real,
"home_team" text,
"away_team" text,
"overall_record" text,
"divisional_record" text
); | SELECT "week" FROM "schedule" WHERE "home_team"='detroit' AND "divisional_record"='(3-0)' AND "overall_record"='(5-1)' AND "away_team"='minnesota'; | 2-15947181-2 |
Who is the choreographer with the style pas de deux? | CREATE TABLE "week_6_july_16_2008" (
"couple" text,
"style" text,
"music" text,
"choreographer_s" text,
"results" text
); | SELECT "choreographer_s" FROM "week_6_july_16_2008" WHERE "style"='pas de deux'; | 2-15918328-9 |
What is the end of reign for Dimitar Stojkovski? | CREATE TABLE "autocephalous_church_since_1967" (
"name" text,
"start_of_reign" real,
"end_of_reign" text,
"birth_name" text,
"title" text
); | SELECT "end_of_reign" FROM "autocephalous_church_since_1967" WHERE "birth_name"='dimitar stojkovski'; | 2-16065885-2 |
What is the title of the person who started their reign in 1999? | CREATE TABLE "autocephalous_church_since_1967" (
"name" text,
"start_of_reign" real,
"end_of_reign" text,
"birth_name" text,
"title" text
); | SELECT "title" FROM "autocephalous_church_since_1967" WHERE "start_of_reign"=1999; | 2-16065885-2 |
What is the date of birth of the person who started their reign in 1986? | CREATE TABLE "autocephalous_church_since_1967" (
"name" text,
"start_of_reign" real,
"end_of_reign" text,
"birth_name" text,
"title" text
); | SELECT "birth_name" FROM "autocephalous_church_since_1967" WHERE "start_of_reign"=1986; | 2-16065885-2 |
What is the average number for goals less than 73? | CREATE TABLE "top_goalscorers" (
"name" text,
"career" text,
"apps" real,
"goals" real,
"average" real
); | SELECT COUNT("average") FROM "top_goalscorers" WHERE "goals"<73; | 2-15453888-2 |
What is the total average for 1990-1995, and goals less than 90? | CREATE TABLE "top_goalscorers" (
"name" text,
"career" text,
"apps" real,
"goals" real,
"average" real
); | SELECT COUNT("average") FROM "top_goalscorers" WHERE "career"='1990-1995' AND "goals"<90; | 2-15453888-2 |
What was the lowest Position for a Team with fewer than 3 Lost, a Difference of 1, and more than 7 games Played? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT MIN("position") FROM "torneio_rio_s_o_paulo" WHERE "lost"<3 AND "difference"='1' AND "played">7; | 2-15315989-1 |
What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT SUM("played") FROM "torneio_rio_s_o_paulo" WHERE "team"='vasco da gama' AND "against"<12; | 2-15315989-1 |
What was the Difference of the Team that had a Position less than 2? | CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
); | SELECT "difference" FROM "torneio_rio_s_o_paulo" WHERE "position"<2; | 2-15315989-1 |
Which attendance number was taken on november 21, 2004? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "date"='november 21, 2004'; | 2-15315503-1 |
Which attendance number was taken in a week less than 16 when the Washington Redskins were the opponents? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "week"<16 AND "opponent"='washington redskins'; | 2-15315503-1 |
How many weeks had the Green Bay packers as opponents? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT SUM("week") FROM "schedule" WHERE "opponent"='green bay packers'; | 2-15315503-1 |
What Country had a Score of 71-67=138? | CREATE TABLE "second_round_friday_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round_friday_saturday" WHERE "score"='71-67=138'; | 2-16147528-5 |
What Country had a Score of 75-68=143? | CREATE TABLE "second_round_friday_saturday" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
); | SELECT "country" FROM "second_round_friday_saturday" WHERE "score"='75-68=143'; | 2-16147528-5 |
How many total innings have an average under 6.33, strike rate under 71.43, balls faced over 36, and smaller than 19 runs scored? | CREATE TABLE "sri_lanka" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"average" real,
"s_r" real
); | SELECT SUM("innings") FROM "sri_lanka" WHERE "average"<6.33 AND "s_r"<71.43 AND "balls_faced">36 AND "runs_scored"<19; | 2-15700367-5 |
What is the number of averages having a balls faced over 297 and more than 7 innings? | CREATE TABLE "sri_lanka" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"average" real,
"s_r" real
); | SELECT COUNT("average") FROM "sri_lanka" WHERE "balls_faced">297 AND "innings">7; | 2-15700367-5 |
What is the smallest number of innings with a strike rate of 72.05 and under 297 balls faced? | CREATE TABLE "sri_lanka" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"average" real,
"s_r" real
); | SELECT MIN("innings") FROM "sri_lanka" WHERE "s_r"=72.05 AND "balls_faced"<297; | 2-15700367-5 |
What is the sum of balls faced associated with a strike rate over 48.28, 3 innings, and an average under 5? | CREATE TABLE "sri_lanka" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"average" real,
"s_r" real
); | SELECT SUM("balls_faced") FROM "sri_lanka" WHERE "s_r">48.28 AND "innings"=3 AND "average"<5; | 2-15700367-5 |
What is the Nation with a Date that is may 6, 1991? | CREATE TABLE "record_progression" (
"record" text,
"athlete" text,
"nation" text,
"venue" text,
"date" text
); | SELECT "nation" FROM "record_progression" WHERE "date"='may 6, 1991'; | 2-1580329-1 |
What is the Record with a Date that is may 20, 1961? | CREATE TABLE "record_progression" (
"record" text,
"athlete" text,
"nation" text,
"venue" text,
"date" text
); | SELECT "record" FROM "record_progression" WHERE "date"='may 20, 1961'; | 2-1580329-1 |
Who was the partner of the winner? | CREATE TABLE "doubles_5_1_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_final" text,
"score_in_final" text
); | SELECT "partner" FROM "doubles_5_1_4" WHERE "outcome"='winner'; | 2-15746889-4 |
What is the Volume:Issue for the song " stars on 45 medley "? | CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" real,
"song" text,
"artist" text
); | SELECT "volume_issue" FROM "see_also" WHERE "song"='\" stars on 45 medley \"'; | 2-15476957-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.