question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
How many draws did clitheroe have when their position was less than 12 and they lost less than 4 times? | CREATE TABLE "first_division_final_table" (
"position" real,
"team" text,
"played" real,
"drawn" real,
"lost" real,
"goals_for" real,
"goals_against" real,
"goal_difference" text,
"points_1" text
); | SELECT SUM("drawn") FROM "first_division_final_table" WHERE "position"<12 AND "team"='clitheroe' AND "lost">4; | 2-17776244-1 |
What is the reserved for (ST/ST/None) when it was Uklana? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "name"='uklana'; | 2-17922483-1 |
Bhiwani district have what constituency number? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "constituency_number" FROM "assembly_segments" WHERE "district"='bhiwani'; | 2-17922483-1 |
What is the reserved for (SC/ST/None) when number of electorates (2009) is larger than 101,595, and constituency is 49? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "number_of_electorates_2009">'101,595' AND "constituency_number"='49'; | 2-17922483-1 |
What is the constituency number with electorates (2009) number larger than 152,958? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
); | SELECT "constituency_number" FROM "assembly_segments" WHERE "number_of_electorates_2009">'152,958'; | 2-17922483-1 |
What is the date of the performance by Jatin Shah and co-contestant is Shalini Chandran? | CREATE TABLE "week_4_july_30_and_31_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
); | SELECT "date_performed" FROM "week_4_july_30_and_31_2008" WHERE "main_contestant"='jatin shah' AND "co_contestant_yaar_vs_pyaar"='shalini chandran'; | 2-18278508-4 |
What are the scores when total score/week is 41/60 and co-contestant is Shalini Chandran? | CREATE TABLE "week_4_july_30_and_31_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
); | SELECT "scores_by_each_individual_judge" FROM "week_4_july_30_and_31_2008" WHERE "total_score_week"='41/60' AND "co_contestant_yaar_vs_pyaar"='shalini chandran'; | 2-18278508-4 |
What position is there when the main contestant is Vishal Singh and the scores are 1 + 7 + 5 = 13? | CREATE TABLE "week_4_july_30_and_31_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
); | SELECT "position" FROM "week_4_july_30_and_31_2008" WHERE "main_contestant"='vishal singh' AND "scores_by_each_individual_judge"='1 + 7 + 5 = 13'; | 2-18278508-4 |
Who is the main contestant when the co-contestant (yaar vs. pyaar) is Shalini Chandran? | CREATE TABLE "week_4_july_30_and_31_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
); | SELECT "main_contestant" FROM "week_4_july_30_and_31_2008" WHERE "co_contestant_yaar_vs_pyaar"='shalini chandran'; | 2-18278508-4 |
Who is the main contestant eliminated with a score of 1 + 7 + 5 = 13? | CREATE TABLE "week_4_july_30_and_31_2008" (
"main_contestant" text,
"co_contestant_yaar_vs_pyaar" text,
"date_performed" text,
"scores_by_each_individual_judge" text,
"total_score_week" text,
"position" text,
"status" text
); | SELECT "main_contestant" FROM "week_4_july_30_and_31_2008" WHERE "status"='eliminated' AND "scores_by_each_individual_judge"='1 + 7 + 5 = 13'; | 2-18278508-4 |
What shows for series 4 when the seat shows 1? | CREATE TABLE "czech_republic" (
"seat" real,
"series_1" text,
"series_2" text,
"series_3" text,
"series_4" text
); | SELECT "series_4" FROM "czech_republic" WHERE "seat"=1; | 2-1787654-2 |
What is the seat number when Series 3 shows Dana Bérová? | CREATE TABLE "czech_republic" (
"seat" real,
"series_1" text,
"series_2" text,
"series_3" text,
"series_4" text
); | SELECT AVG("seat") FROM "czech_republic" WHERE "series_3"='dana bérová'; | 2-1787654-2 |
Who was the Partner in the Algiers 2, Algeria Tournament? | CREATE TABLE "double_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "double_titles_5" WHERE "tournament"='algiers 2, algeria'; | 2-17717526-9 |
Who were the Opponents in the Match with Partner Rushmi Chakravarthi? | CREATE TABLE "double_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "opponents" FROM "double_titles_5" WHERE "partner"='rushmi chakravarthi'; | 2-17717526-9 |
What is the Date of the Match with a Score of 6–4, 7–5? | CREATE TABLE "double_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "date" FROM "double_titles_5" WHERE "score"='6–4, 7–5'; | 2-17717526-9 |
What is the fewest loses for the club that is below 8 in position, and had played less than 30 games? | CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
); | SELECT MIN("loses") FROM "1_lyga" WHERE "position"<8 AND "games_played"<30; | 2-18018214-2 |
What is the loses total when there is less than 4 draws, less than 105 conceded goals, less than 38 goals scored, and the club is positioned greater than 2? | CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
); | SELECT SUM("loses") FROM "1_lyga" WHERE "draws"<4 AND "goals_conceded"<105 AND "position">2 AND "goals_scored"<38; | 2-18018214-2 |
How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws? | CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
); | SELECT SUM("goals_conceded") FROM "1_lyga" WHERE "points">58 AND "wins"<27 AND "draws"<1; | 2-18018214-2 |
How many total goals scored when less than 30 games have been played? | CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
); | SELECT COUNT("goals_scored") FROM "1_lyga" WHERE "games_played"<30; | 2-18018214-2 |
When less than 30 games have been played what is the average goals scored? | CREATE TABLE "1_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
); | SELECT AVG("goals_scored") FROM "1_lyga" WHERE "games_played"<30; | 2-18018214-2 |
What is the league cup app with league cup goals more than 0? | 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,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "league_cup_goals">0; | 2-18304826-1 |
What is the fa cup apps with 0 league cup goals, and a total of 43 apps? | 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,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "total_apps"='43'; | 2-18304826-1 |
What is the highest FLT goals with 0 league cup goals, a GK position, and 2 league cup apps? | 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,
"flt_apps" text,
"flt_goals" real,
"total_apps" text,
"total_goals" real
); | SELECT MAX("flt_goals") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "position"='gk' AND "league_cup_apps"='2'; | 2-18304826-1 |
On what date is the venue Sam Nujoma Stadium, Windhoek, Namibia? | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_goals" WHERE "venue"='sam nujoma stadium, windhoek, namibia'; | 2-17644729-1 |
Who was in third place when the Winner was Dalian Shide, Chongqing Longxin was 4th and 14 clubs? | CREATE TABLE "professional_seasons_1994_2003" (
"season" real,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_placed" text,
"number_of_clubs" real
); | SELECT "third_place" FROM "professional_seasons_1994_2003" WHERE "number_of_clubs"=14 AND "winners"='dalian shide' AND "fourth_placed"='chongqing longxin'; | 2-17632217-2 |
What season had Dalian Wanda as the winner with Yanbian Aodong winning 4th? | CREATE TABLE "professional_seasons_1994_2003" (
"season" real,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_placed" text,
"number_of_clubs" real
); | SELECT SUM("season") FROM "professional_seasons_1994_2003" WHERE "winners"='dalian wanda' AND "fourth_placed"='yanbian aodong'; | 2-17632217-2 |
What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao? | CREATE TABLE "professional_seasons_1994_2003" (
"season" real,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_placed" text,
"number_of_clubs" real
); | SELECT AVG("number_of_clubs") FROM "professional_seasons_1994_2003" WHERE "fourth_placed"='shenzhen jianlibao' AND "season"<2003; | 2-17632217-2 |
What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th? | CREATE TABLE "professional_seasons_1994_2003" (
"season" real,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_placed" text,
"number_of_clubs" real
); | SELECT AVG("number_of_clubs") FROM "professional_seasons_1994_2003" WHERE "winners"='dalian shide' AND "fourth_placed"='sichuan quanxing'; | 2-17632217-2 |
Who was the winner when the runner-up was Guangzhou Apollo? | CREATE TABLE "professional_seasons_1994_2003" (
"season" real,
"winners" text,
"runners_up" text,
"third_place" text,
"fourth_placed" text,
"number_of_clubs" real
); | SELECT "winners" FROM "professional_seasons_1994_2003" WHERE "runners_up"='guangzhou apollo'; | 2-17632217-2 |
How many Byes have an Against of 972, and more than 11 wins? | CREATE TABLE "2010_ladder" (
"lexton_plains" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT SUM("byes") FROM "2010_ladder" WHERE "against"=972 AND "wins">11; | 2-17982205-6 |
Which Byes have a Lexton Plains of skipton? | CREATE TABLE "2010_ladder" (
"lexton_plains" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("byes") FROM "2010_ladder" WHERE "lexton_plains"='skipton'; | 2-17982205-6 |
What is the value for Lost when Drawn is 0, and Tries against is 41? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "lost" FROM "league_table" WHERE "drawn"='0' AND "tries_against"='41'; | 2-17941032-3 |
What is the drawn value for furnace united rfc? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "drawn" FROM "league_table" WHERE "club"='furnace united rfc'; | 2-17941032-3 |
What tries against value does burry port rfc have? | CREATE TABLE "league_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "tries_against" FROM "league_table" WHERE "club"='burry port rfc'; | 2-17941032-3 |
Of the ships with diesel-electric hybrid engines, length of 443 feet, and over 190 guests, what is the lowest number of staterooms? | CREATE TABLE "ships_cruising_in_europe" (
"ship_name" text,
"year_built_refurbished" text,
"length" text,
"crew" real,
"guests" real,
"staterooms" real,
"comments" text
); | SELECT MIN("staterooms") FROM "ships_cruising_in_europe" WHERE "comments"='diesel-electric hybrid engines' AND "length"='443 feet' AND "guests">190; | 2-18622103-1 |
How many wins for the year that is later than 1987 and has points less than 188? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "wins" FROM "grand_prix_career_statistics" WHERE "year">1987 AND "points"<188; | 2-1861396-4 |
What is the name of the machine that ranked 4th and has 2 wins? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "machine" FROM "grand_prix_career_statistics" WHERE "rank"='4th' AND "wins"=2; | 2-1861396-4 |
How many wins were there in 1994? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT SUM("wins") FROM "grand_prix_career_statistics" WHERE "year"=1994; | 2-1861396-4 |
What is the rank associated with the team that has more than 2 wins and has greater than 204 points? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "rank" FROM "grand_prix_career_statistics" WHERE "wins">2 AND "points">204; | 2-1861396-4 |
How many picks have a Player of pong escobal? | CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
); | SELECT SUM("pick") FROM "round_2" WHERE "player"='pong escobal'; | 2-18991234-3 |
Which PBA team has a College of nu? | CREATE TABLE "round_2" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
); | SELECT "pba_team" FROM "round_2" WHERE "college"='nu'; | 2-18991234-3 |
What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro? | CREATE TABLE "list_of_participants" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
); | SELECT "place_of_birth" FROM "list_of_participants" WHERE "elevator"='lucius iii' AND "cardinalatial_title"='deacon of s. giorgio in velabro'; | 2-18890652-1 |
What is the place of birth for the elector Laborante de Panormo? | CREATE TABLE "list_of_participants" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
); | SELECT "place_of_birth" FROM "list_of_participants" WHERE "elector"='laborante de panormo'; | 2-18890652-1 |
Who is the elector that has the cardinalatial title of Deacon of SS. Cosma e Damiano? | CREATE TABLE "list_of_participants" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
); | SELECT "elector" FROM "list_of_participants" WHERE "cardinalatial_title"='deacon of ss. cosma e damiano'; | 2-18890652-1 |
Who is the elevator with the cardinalatial title of Deacon of SS. Sergio e Bacco? | CREATE TABLE "list_of_participants" (
"elector" text,
"place_of_birth" text,
"cardinalatial_title" text,
"elevated" text,
"elevator" text
); | SELECT "elevator" FROM "list_of_participants" WHERE "cardinalatial_title"='deacon of ss. sergio e bacco'; | 2-18890652-1 |
How much Premier League has an FA Cup of 0, and a Total of 1, and a UEFA Cup larger than 1? | CREATE TABLE "goalscorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"uefa_cup" real,
"total" real
); | SELECT SUM("premier_league") FROM "goalscorers" WHERE "fa_cup"=0 AND "total"=1 AND "uefa_cup">1; | 2-19008977-1 |
How many totals have a Premier League smaller than 6, and a League Cup larger than 0? | CREATE TABLE "goalscorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"uefa_cup" real,
"total" real
); | SELECT SUM("total") FROM "goalscorers" WHERE "premier_league"<6 AND "league_cup">0; | 2-19008977-1 |
Which FA Cup has a Total smaller than 1? | CREATE TABLE "goalscorers" (
"name" text,
"premier_league" real,
"league_cup" real,
"fa_cup" real,
"uefa_cup" real,
"total" real
); | SELECT AVG("fa_cup") FROM "goalscorers" WHERE "total"<1; | 2-19008977-1 |
What week is the opponent the Indianapolis Colts with an attendance of 68,932? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT COUNT("week") FROM "schedule" WHERE "attendance"='68,932' AND "opponent"='indianapolis colts'; | 2-18753409-1 |
What was the attendance for the week before 10 with a result of L 12-15 | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "week"<10 AND "result"='l 12-15'; | 2-18753409-1 |
What week has a result of L 17-31 first? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT MAX("week") FROM "schedule" WHERE "result"='l 17-31'; | 2-18753409-1 |
What was the score for the game that attendance was 70,721? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "result" FROM "schedule" WHERE "attendance"='70,721'; | 2-18753409-1 |
What week was she safe for a salsa dance? | CREATE TABLE "performances" (
"week" real,
"partner" text,
"dance" text,
"song" text,
"result" text
); | SELECT SUM("week") FROM "performances" WHERE "result"='safe' AND "dance"='salsa'; | 2-18595004-1 |
Who was the opponent with the loss in Westbury, NY? | CREATE TABLE "professional_boxing_record" (
"result" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text,
"location" text
); | SELECT "opponent" FROM "professional_boxing_record" WHERE "result"='loss' AND "location"='westbury, ny'; | 2-1891840-1 |
What is the date where the type is type? | CREATE TABLE "professional_boxing_record" (
"result" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text,
"location" text
); | SELECT "date" FROM "professional_boxing_record" WHERE "type"='type'; | 2-1891840-1 |
What is the total rank for the player with less than 2 silvers, 4 golds, and more than 2 bronze? | CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("rank") FROM "performances_by_nation" WHERE "silver"<2 AND "gold"=4 AND "bronze">2; | 2-18594384-2 |
What is the sum of rank with more than 1 silver medal, 1 gold medal, and less than 6? | CREATE TABLE "performances_by_nation" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("rank") FROM "performances_by_nation" WHERE "silver">1 AND "gold"=1 AND "total"<6; | 2-18594384-2 |
What is the height for the 2008 club Arona? | CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
); | SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='arona'; | 2-18499677-6 |
Who was the 2008 club Apure? | CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
); | SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='apure'; | 2-18499677-6 |
Which spike has a 2008 club Karava? | CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
); | SELECT "spike" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='karava'; | 2-18499677-6 |
What's the date of the circuit Winton Motor Raceway? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text
); | SELECT "date" FROM "race_calendar" WHERE "circuit"='winton motor raceway'; | 2-18961926-1 |
What's the city/state of Hidden Valley Raceway? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text
); | SELECT "city_state" FROM "race_calendar" WHERE "circuit"='hidden valley raceway'; | 2-18961926-1 |
What's the date of Bahrain International Circuit? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text
); | SELECT "date" FROM "race_calendar" WHERE "circuit"='bahrain international circuit'; | 2-18961926-1 |
What's the circuit that had an event cancelled? | CREATE TABLE "race_calendar" (
"race_title" text,
"circuit" text,
"city_state" text,
"date" text,
"winner" text
); | SELECT "circuit" FROM "race_calendar" WHERE "winner"='event cancelled'; | 2-18961926-1 |
what is the distance for ridge? | CREATE TABLE "nearby_terrain_features" (
"name" text,
"feature" text,
"latitude" text,
"longitude" text,
"distance" text,
"bearing" text
); | SELECT "distance" FROM "nearby_terrain_features" WHERE "feature"='ridge'; | 2-18766024-2 |
what is the latitude when the distance is 42.5km? | CREATE TABLE "nearby_terrain_features" (
"name" text,
"feature" text,
"latitude" text,
"longitude" text,
"distance" text,
"bearing" text
); | SELECT "latitude" FROM "nearby_terrain_features" WHERE "distance"='42.5km'; | 2-18766024-2 |
what is the feature named bird ridge? | CREATE TABLE "nearby_terrain_features" (
"name" text,
"feature" text,
"latitude" text,
"longitude" text,
"distance" text,
"bearing" text
); | SELECT "feature" FROM "nearby_terrain_features" WHERE "name"='bird ridge'; | 2-18766024-2 |
what is the distance for mjåkollen? | CREATE TABLE "nearby_terrain_features" (
"name" text,
"feature" text,
"latitude" text,
"longitude" text,
"distance" text,
"bearing" text
); | SELECT "distance" FROM "nearby_terrain_features" WHERE "name"='mjåkollen'; | 2-18766024-2 |
what is the distance for bearing 297°? | CREATE TABLE "nearby_terrain_features" (
"name" text,
"feature" text,
"latitude" text,
"longitude" text,
"distance" text,
"bearing" text
); | SELECT "distance" FROM "nearby_terrain_features" WHERE "bearing"='297°'; | 2-18766024-2 |
What platform has a year of 2007? | CREATE TABLE "gamasutra" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "platform_s" FROM "gamasutra" WHERE "year"=2007; | 2-1851722-20 |
Which game was released in 2011? | CREATE TABLE "gamasutra" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "game" FROM "gamasutra" WHERE "year"=2011; | 2-1851722-20 |
What platform came out before 2009 with the game wii sports? | CREATE TABLE "gamasutra" (
"year" real,
"game" text,
"genre" text,
"platform_s" text,
"developer_s" text
); | SELECT "platform_s" FROM "gamasutra" WHERE "year"<2009 AND "game"='wii sports'; | 2-1851722-20 |
What nationality has a lane less than 6, with 1 as the rank? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT "nationality" FROM "semifinal_2" WHERE "lane"<6 AND "rank"=1; | 2-18624865-5 |
What time has a lane less than 5, with Poland as the nationality? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT "time" FROM "semifinal_2" WHERE "lane"<5 AND "nationality"='poland'; | 2-18624865-5 |
How many lanes have 1:53.70 as the time? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT COUNT("lane") FROM "semifinal_2" WHERE "time"='1:53.70'; | 2-18624865-5 |
How many ranks have chen yin as the name, with a lane greater than 8? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT SUM("rank") FROM "semifinal_2" WHERE "name"='chen yin' AND "lane">8; | 2-18624865-5 |
What nationality has 1:55.35 as the time? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT "nationality" FROM "semifinal_2" WHERE "time"='1:55.35'; | 2-18624865-5 |
How many lanes have a rank greater than 8? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
); | SELECT SUM("lane") FROM "semifinal_2" WHERE "rank">8; | 2-18624865-5 |
Where in Sweden is the home of the Swedish team? | CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "home" FROM "teams" WHERE "country"='sweden'; | 2-18446443-1 |
Who is third to Xu Xiaoming at second? | CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "third" FROM "teams" WHERE "second"='xu xiaoming'; | 2-18446443-1 |
Who is the lead for the team from Saskatoon, Saskatchewan? | CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "lead" FROM "teams" WHERE "home"='saskatoon, saskatchewan'; | 2-18446443-1 |
Who is second on the team with Euan Byers at lead? | CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "second" FROM "teams" WHERE "lead"='euan byers'; | 2-18446443-1 |
Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip? | CREATE TABLE "teams" (
"team" text,
"country" text,
"home" text,
"skip" text,
"third" text,
"second" text,
"lead" text
); | SELECT "third" FROM "teams" WHERE "home"='madison, wisconsin' AND "skip"='craig brown'; | 2-18446443-1 |
On which date was the opponent the Chicago Bears? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "opponent"='chicago bears'; | 2-18747741-1 |
Which week was on october 30, 1983? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT SUM("week") FROM "schedule" WHERE "date"='october 30, 1983'; | 2-18747741-1 |
What is the Mascot for the team from leo that had a Previous Conference value of independent? | CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class_football_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
); | SELECT "mascot" FROM "current_members" WHERE "previous_conference"='independent' AND "location"='leo'; | 2-18765101-1 |
What School had 3a/2a as the value for IHSAA Class/ Football Class? | CREATE TABLE "current_members" (
"school" text,
"location" text,
"mascot" text,
"enrollment_08_09" real,
"ihsaa_class_football_class" text,
"county" text,
"year_joined" real,
"previous_conference" text
); | SELECT "school" FROM "current_members" WHERE "ihsaa_class_football_class"='3a/2a'; | 2-18765101-1 |
How many July 1, 2013 projections have a Rank of 27? | CREATE TABLE "table" (
"rank" text,
"country_or_dependent_territory" text,
"july_1_2013_projection" real,
"pct_of_pop" real,
"average_relative_annual_growth_pct" real,
"average_absolute_annual_growth" real
); | SELECT COUNT("july_1_2013_projection") FROM "table" WHERE "rank"='27'; | 2-18435549-1 |
What is the format for the one which has a call sign of cite-fm-1? | CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"format" text,
"owner" text,
"notes" text
); | SELECT "format" FROM "radio" WHERE "call_sign"='cite-fm-1'; | 2-18409243-1 |
What'd the total Dolphin points when there was an attendance of 52,860? | CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"dolphins_points" real,
"opponents" real,
"record" text,
"attendance" real
); | SELECT COUNT("dolphins_points") FROM "schedule" WHERE "attendance"='52,860'; | 2-18847732-2 |
What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots? | CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"dolphins_points" real,
"opponents" real,
"record" text,
"attendance" real
); | SELECT MAX("attendance") FROM "schedule" WHERE "dolphins_points"<24 AND "opponent"='new england patriots'; | 2-18847732-2 |
Which district had SC reserved and 169 Constituents? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2003" real
); | SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='sc' AND "constituency_number"='169'; | 2-18517401-1 |
What was reserved in the district that has 169 constituents? | CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2003" real
); | SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='169'; | 2-18517401-1 |
What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1995" FROM "singles_performance_timeline" WHERE "1997"='lq' AND "1989"='1r'; | 2-18622227-5 |
What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1996" FROM "singles_performance_timeline" WHERE "1994"='lq' AND "1992"='3r'; | 2-18622227-5 |
What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1994" FROM "singles_performance_timeline" WHERE "1993"='grand slam tournaments'; | 2-18622227-5 |
What is 1995 Grand Slam Tournament if 1990 is LQ? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1995" FROM "singles_performance_timeline" WHERE "1990"='lq'; | 2-18622227-5 |
What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1990" FROM "singles_performance_timeline" WHERE "1996"='grand slam tournaments'; | 2-18622227-5 |
What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
); | SELECT "1987" FROM "singles_performance_timeline" WHERE "1989"='grand slam tournaments'; | 2-18622227-5 |
How many people attended the home game against the New York Jets? | CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT SUM("attendance") FROM "season_schedule" WHERE "opponent"='new york jets'; | 2-18907895-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.