question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
How many goals have more than 38 played and more than 9 draws? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("goals_for") FROM "final_table" WHERE "draws">9 AND "played">38; | 2-12252458-2 |
How many losses has more than 59 goals against and more than 17 position? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("losses") FROM "final_table" WHERE "goals_against">59 AND "position">17; | 2-12252458-2 |
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78? | CREATE TABLE "women" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
); | SELECT "date" FROM "women" WHERE "meet"='2007 pan american games' AND "time"='1:07.78'; | 2-13218493-2 |
What Nationality's time is 2:07.64? | CREATE TABLE "women" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
); | SELECT "nationality" FROM "women" WHERE "time"='2:07.64'; | 2-13218493-2 |
What Event's Time is 4:01.00? | CREATE TABLE "women" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
); | SELECT "event" FROM "women" WHERE "time"='4:01.00'; | 2-13218493-2 |
In what Location in the United States the Time 2:25.62? | CREATE TABLE "women" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
); | SELECT "location" FROM "women" WHERE "nationality"='united states' AND "time"='2:25.62'; | 2-13218493-2 |
Year larger than 1975, and a Record of 13–11 is what playoffs? | CREATE TABLE "outdoor" (
"year" real,
"record" text,
"regular_season_finish" text,
"playoffs" text,
"avg_attendance" real
); | SELECT "playoffs" FROM "outdoor" WHERE "year">1975 AND "record"='13–11'; | 2-1332984-1 |
Which 9:30 has a 10:30 of le journal weekend? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "9_30" FROM "sunday" WHERE "10_30"='le journal weekend'; | 2-12280777-1 |
Which 9:00 has an 8:00 behind the movies? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "9_00" FROM "sunday" WHERE "8_00"='behind the movies'; | 2-12280777-1 |
What 10:00 has a 7:30 of da kink in my hair? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "10_00" FROM "sunday" WHERE "7_30"='da kink in my hair'; | 2-12280777-1 |
What 7:00 has a 9:30 of tout le monde en parle? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "7_00" FROM "sunday" WHERE "9_30"='tout le monde en parle'; | 2-12280777-1 |
What 7:00 has a 10:00 of dirty sexy money? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "7_00" FROM "sunday" WHERE "10_00"='dirty sexy money'; | 2-12280777-1 |
What 10:00 has a 8:00 of movies? | CREATE TABLE "sunday" (
"7_00" text,
"7_30" text,
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text,
"10_30" text
); | SELECT "10_00" FROM "sunday" WHERE "8_00"='movies'; | 2-12280777-1 |
What are the venues prior to 2005 in the World Class category that resulted in a bronze? | CREATE TABLE "major_titles" (
"competition" text,
"venue" text,
"year" real,
"category" text,
"result" text
); | SELECT "venue" FROM "major_titles" WHERE "year"<2005 AND "category"='world class' AND "result"='bronze'; | 2-12762814-1 |
What are the competitions that occurred before 2006 in SVK Nitra? | CREATE TABLE "major_titles" (
"competition" text,
"venue" text,
"year" real,
"category" text,
"result" text
); | SELECT "competition" FROM "major_titles" WHERE "year"<2006 AND "venue"='svk nitra'; | 2-12762814-1 |
What are the categories of events that occurred after 2007 that were World Championships? | CREATE TABLE "major_titles" (
"competition" text,
"venue" text,
"year" real,
"category" text,
"result" text
); | SELECT "category" FROM "major_titles" WHERE "year">2007 AND "competition"='world championships'; | 2-12762814-1 |
What was the result of events held at Nor Elverum, prior to 2010? | CREATE TABLE "major_titles" (
"competition" text,
"venue" text,
"year" real,
"category" text,
"result" text
); | SELECT "result" FROM "major_titles" WHERE "year"<2010 AND "venue"='nor elverum'; | 2-12762814-1 |
What was the competition held in 2003? | CREATE TABLE "major_titles" (
"competition" text,
"venue" text,
"year" real,
"category" text,
"result" text
); | SELECT "competition" FROM "major_titles" WHERE "year"=2003; | 2-12762814-1 |
What chassis type does a scuderia ferrari with more than 1 point have? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='scuderia ferrari' AND "points">1; | 2-1219447-1 |
A ferrari flat-12 engine with more than 1 point has what kind of chassis? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='ferrari flat-12' AND "points">1; | 2-1219447-1 |
What is the average year for a merzario a2 chassis? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='merzario a2'; | 2-1219447-1 |
What was the team's record when they played visitor team Chicago Black Hawks on November 24? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "visitor"='chicago black hawks' AND "date"='november 24'; | 2-12797241-2 |
What is the name of the visitor team who played home team Chicago Black Hawks on March 20? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "visitor" FROM "regular_season" WHERE "home"='chicago black hawks' AND "date"='march 20'; | 2-12797241-2 |
What was the team's record on November 12? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "date"='november 12'; | 2-12797241-2 |
What champion has 1981 as the year? | CREATE TABLE "past_winners_and_runners_up" (
"year" text,
"date_final" text,
"venue" text,
"prize_money" text,
"champion" text,
"runner_up" text,
"score_in_final" text,
"commercial_name" text
); | SELECT "champion" FROM "past_winners_and_runners_up" WHERE "year"='1981'; | 2-12743706-1 |
What date final has 1982 as the year? | CREATE TABLE "past_winners_and_runners_up" (
"year" text,
"date_final" text,
"venue" text,
"prize_money" text,
"champion" text,
"runner_up" text,
"score_in_final" text,
"commercial_name" text
); | SELECT "date_final" FROM "past_winners_and_runners_up" WHERE "year"='1982'; | 2-12743706-1 |
What prize money has michelob light challenge of champions as the commercial name? | CREATE TABLE "past_winners_and_runners_up" (
"year" text,
"date_final" text,
"venue" text,
"prize_money" text,
"champion" text,
"runner_up" text,
"score_in_final" text,
"commercial_name" text
); | SELECT "prize_money" FROM "past_winners_and_runners_up" WHERE "commercial_name"='michelob light challenge of champions'; | 2-12743706-1 |
What date final has 1989 as the year? | CREATE TABLE "past_winners_and_runners_up" (
"year" text,
"date_final" text,
"venue" text,
"prize_money" text,
"champion" text,
"runner_up" text,
"score_in_final" text,
"commercial_name" text
); | SELECT "date_final" FROM "past_winners_and_runners_up" WHERE "year"='1989'; | 2-12743706-1 |
What score in final has boris becker as the champion? | CREATE TABLE "past_winners_and_runners_up" (
"year" text,
"date_final" text,
"venue" text,
"prize_money" text,
"champion" text,
"runner_up" text,
"score_in_final" text,
"commercial_name" text
); | SELECT "score_in_final" FROM "past_winners_and_runners_up" WHERE "champion"='boris becker'; | 2-12743706-1 |
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957 | CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MAX("points") FROM "complete_world_championship_formula_one_" WHERE "engine"='alta straight-4' AND "entrant"='connaught engineering' AND "year"<1957; | 2-1233860-1 |
What 1957 engine has a Chassis of connaught type b? | CREATE TABLE "complete_world_championship_formula_one_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "engine" FROM "complete_world_championship_formula_one_" WHERE "chassis"='connaught type b' AND "year">1957; | 2-1233860-1 |
Name the least year for david eddy | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT MIN("year") FROM "winners" WHERE "men_s_singles"='david eddy'; | 2-12169926-1 |
Name the mixed doubles for year before 1991 and men's doubles of david jepson buck ryan | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "mixed_doubles" FROM "winners" WHERE "year"<1991 AND "men_s_doubles"='david jepson buck ryan'; | 2-12169926-1 |
Name the women's doubles for year less than 1972 | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "women_s_doubles" FROM "winners" WHERE "year"<1972; | 2-12169926-1 |
When was the winning score −9 (72-68-64-67=271)? | CREATE TABLE "champions_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "champions_tour_wins_9" WHERE "winning_score"='−9 (72-68-64-67=271)'; | 2-1221065-7 |
What was the margin of victory for the Mississippi Gulf Resort Classic? | CREATE TABLE "champions_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "champions_tour_wins_9" WHERE "tournament"='mississippi gulf resort classic'; | 2-1221065-7 |
What was the margin of victory when Mark Calcavecchia was the runner-up? | CREATE TABLE "champions_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "champions_tour_wins_9" WHERE "runner_s_up"='mark calcavecchia'; | 2-1221065-7 |
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory? | CREATE TABLE "champions_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "date" FROM "champions_tour_wins_9" WHERE "margin_of_victory"='1 stroke' AND "tournament"='the ace group classic'; | 2-1221065-7 |
What was the margin of victory when the winning score was −9 (72-68-64-67=271)? | CREATE TABLE "champions_tour_wins_9" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
); | SELECT "margin_of_victory" FROM "champions_tour_wins_9" WHERE "winning_score"='−9 (72-68-64-67=271)'; | 2-1221065-7 |
What is the average round for te position? | CREATE TABLE "1981_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT AVG("round") FROM "1981_raiders_draft_selections" WHERE "position"='te'; | 2-12481356-1 |
Name the average overall for james davis | CREATE TABLE "1981_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "1981_raiders_draft_selections" WHERE "player"='james davis'; | 2-12481356-1 |
Name the most overall for james davis and round more than 5 | CREATE TABLE "1981_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT MAX("overall") FROM "1981_raiders_draft_selections" WHERE "player"='james davis' AND "round">5; | 2-12481356-1 |
Name the total number of overall for villanova and round less than 2 | CREATE TABLE "1981_raiders_draft_selections" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
); | SELECT COUNT("overall") FROM "1981_raiders_draft_selections" WHERE "college"='villanova' AND "round"<2; | 2-12481356-1 |
Which state is Mount Chiginagak located in? | CREATE TABLE "the_50_most_topographically_prominent_su" (
"rank" real,
"mountain_peak" text,
"state" text,
"mountain_range" text,
"location" text
); | SELECT "state" FROM "the_50_most_topographically_prominent_su" WHERE "mountain_peak"='mount chiginagak'; | 2-12444155-2 |
What were the circumstances for the Baghlan location? | CREATE TABLE "2008" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "circumstances" FROM "2008" WHERE "location"='baghlan'; | 2-12378453-7 |
What were the casualties in the Baghlan location? | CREATE TABLE "2008" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "casualties" FROM "2008" WHERE "location"='baghlan'; | 2-12378453-7 |
What was the date of natural cause situation? | CREATE TABLE "2008" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "date" FROM "2008" WHERE "circumstances"='natural cause'; | 2-12378453-7 |
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "gold_coast" FROM "2008" WHERE "perth"='no' AND "sydney"='yes' AND "auckland"='yes'; | 2-12230393-16 |
Which Melbourne has an Auckland of no, and a Gold Coast of no? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "melbourne" FROM "2008" WHERE "auckland"='no' AND "gold_coast"='no'; | 2-12230393-16 |
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "adelaide" FROM "2008" WHERE "melbourne"='yes' AND "auckland"='yes' AND "perth"='yes'; | 2-12230393-16 |
Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "sydney" FROM "2008" WHERE "perth"='no' AND "melbourne"='yes' AND "gold_coast"='no'; | 2-12230393-16 |
Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "auckland" FROM "2008" WHERE "adelaide"='no' AND "melbourne"='yes' AND "sydney"='yes'; | 2-12230393-16 |
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled? | CREATE TABLE "2008" (
"sydney" text,
"melbourne" text,
"perth" text,
"adelaide" text,
"gold_coast" text,
"auckland" text
); | SELECT "adelaide" FROM "2008" WHERE "auckland"='yes' AND "melbourne"='yes' AND "perth"='yes' AND "sydney"='cancelled'; | 2-12230393-16 |
Who is the owner of RSS Racing that driver Ryan Sieg belongs to? | CREATE TABLE "full_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text
); | SELECT "owner_s" FROM "full_time_teams" WHERE "team"='rss racing' AND "driver_s"='ryan sieg'; | 2-1266602-5 |
Parts Plus sponsors what driver? | CREATE TABLE "full_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text
); | SELECT "driver_s" FROM "full_time_teams" WHERE "primary_sponsor_s"='parts plus'; | 2-1266602-5 |
Who is the owner of NTS Motorsports sponsored by Qore-24? | CREATE TABLE "full_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text
); | SELECT "owner_s" FROM "full_time_teams" WHERE "team"='nts motorsports' AND "primary_sponsor_s"='qore-24'; | 2-1266602-5 |
Who is the crew chief, of driver Matt kurzejewski? | CREATE TABLE "full_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text
); | SELECT "crew_chief" FROM "full_time_teams" WHERE "driver_s"='matt kurzejewski'; | 2-1266602-5 |
Who is the driver that has a crew chief Gary Ritter? | CREATE TABLE "full_time_teams" (
"team" text,
"truck_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text
); | SELECT "driver_s" FROM "full_time_teams" WHERE "crew_chief"='gary ritter'; | 2-1266602-5 |
what is the award for the 2009 songwriter of the year? | CREATE TABLE "others_awards_and_nominations" (
"year" real,
"result" text,
"award" text,
"category" text,
"nominated_work" text
); | SELECT "award" FROM "others_awards_and_nominations" WHERE "year"=2009 AND "category"='songwriter of the year'; | 2-12416709-3 |
what is the category that has the people's choice awards? | CREATE TABLE "others_awards_and_nominations" (
"year" real,
"result" text,
"award" text,
"category" text,
"nominated_work" text
); | SELECT "category" FROM "others_awards_and_nominations" WHERE "award"='people''s choice awards'; | 2-12416709-3 |
what year has general nominated in the category or choice breakthrough artist? | CREATE TABLE "others_awards_and_nominations" (
"year" real,
"result" text,
"award" text,
"category" text,
"nominated_work" text
); | SELECT COUNT("year") FROM "others_awards_and_nominations" WHERE "nominated_work"='general' AND "category"='choice breakthrough artist'; | 2-12416709-3 |
What was the score on 6 February 2008? | CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "national_team" WHERE "date"='6 february 2008'; | 2-12318000-2 |
Which competition was held on 14 November 2012? | CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "national_team" WHERE "date"='14 november 2012'; | 2-12318000-2 |
What competition took place on 10 August 2011? | CREATE TABLE "national_team" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "national_team" WHERE "date"='10 august 2011'; | 2-12318000-2 |
What is the average Year with Chassis equalling cooper t60? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='cooper t60'; | 2-1226575-1 |
Which Chassis has an Entrant of cooper car company, and a Year of 1963? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "entrant"='cooper car company' AND "year"=1963; | 2-1226575-1 |
Which Entrant has an Engine of climax straight-4, and Points larger than 0? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='climax straight-4' AND "points">0; | 2-1226575-1 |
Which tournament has hard as the surface and apr. 12, 1998 as the date? | CREATE TABLE "singles_18_itf" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "tournament" FROM "singles_18_itf" WHERE "surface"='hard' AND "date"='apr. 12, 1998'; | 2-12531158-2 |
Which surface has wynne prakusya as the opponent in the final? | CREATE TABLE "singles_18_itf" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "surface" FROM "singles_18_itf" WHERE "opponent_in_the_final"='wynne prakusya'; | 2-12531158-2 |
What score has wynne prakusya as the opponent in the final? | CREATE TABLE "singles_18_itf" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_18_itf" WHERE "opponent_in_the_final"='wynne prakusya'; | 2-12531158-2 |
What tournament has nov. 21, 1999 as the date? | CREATE TABLE "singles_18_itf" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "tournament" FROM "singles_18_itf" WHERE "date"='nov. 21, 1999'; | 2-12531158-2 |
Name the authority for coed gender and chanel college | CREATE TABLE "masterton_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
); | SELECT "authority" FROM "masterton_district" WHERE "gender"='coed' AND "name"='chanel college'; | 2-12214488-6 |
Name the average decile for state authority and area of fernridge | CREATE TABLE "masterton_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
); | SELECT AVG("decile") FROM "masterton_district" WHERE "authority"='state' AND "area"='fernridge'; | 2-12214488-6 |
What was the week on October 11, 1998? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT MIN("week") FROM "schedule" WHERE "date"='october 11, 1998'; | 2-13258613-2 |
What is the location of the game with attendance of 63,336? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "game_site" FROM "schedule" WHERE "attendance"='63,336'; | 2-13258613-2 |
What was the date of the week 13 game? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "week"=13; | 2-13258613-2 |
What is the Panthers' Division Record? | CREATE TABLE "2007_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
); | SELECT "division_record" FROM "2007_regular_season_football_standings" WHERE "team"='panthers'; | 2-13054553-9 |
What is the Senators' division record? | CREATE TABLE "2007_regular_season_football_standings" (
"school" text,
"team" text,
"division_record" text,
"overall_record" text,
"season_outcome" text
); | SELECT "division_record" FROM "2007_regular_season_football_standings" WHERE "team"='senators'; | 2-13054553-9 |
What was the record after the January 18 game? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "date"='january 18'; | 2-13171682-2 |
What was the record after the January 6 game? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "date"='january 6'; | 2-13171682-2 |
Name the total number of ranks for kujalleq with former name of brattahlíð and population less than 47 | CREATE TABLE "settlements_with_population_below_100" (
"rank" real,
"population" real,
"name" text,
"former_name" text,
"municipality" text
); | SELECT COUNT("rank") FROM "settlements_with_population_below_100" WHERE "municipality"='kujalleq' AND "former_name"='brattahlíð' AND "population"<47; | 2-1278594-4 |
Name the former name for 49 rank | CREATE TABLE "settlements_with_population_below_100" (
"rank" real,
"population" real,
"name" text,
"former_name" text,
"municipality" text
); | SELECT "former_name" FROM "settlements_with_population_below_100" WHERE "rank"=49; | 2-1278594-4 |
Which NHL team has left wing listed as the position? | CREATE TABLE "round_six" (
"pick_num" text,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
); | SELECT "nhl_team" FROM "round_six" WHERE "position"='left wing'; | 2-1213511-6 |
What years does Kakahi school, with a decile of 3, have? | CREATE TABLE "ruapehu_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "years" FROM "ruapehu_district" WHERE "decile"=3 AND "name"='kakahi school'; | 2-12197750-1 |
What is the average decile of Ruapehu college, which has a state authority? | CREATE TABLE "ruapehu_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT AVG("decile") FROM "ruapehu_district" WHERE "authority"='state' AND "name"='ruapehu college'; | 2-12197750-1 |
What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8? | CREATE TABLE "ruapehu_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT SUM("roll") FROM "ruapehu_district" WHERE "area"='raetihi' AND "name"='orautoha school' AND "decile"<8; | 2-12197750-1 |
On what day was Utah Blaze the opponent? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"home_away_game" text,
"result" text
); | SELECT "date" FROM "schedule" WHERE "opponent"='utah blaze'; | 2-12150688-1 |
What is the 2006 value with a 1r in 2011? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2006" FROM "doubles_performance_timeline" WHERE "2011"='1r'; | 2-12774720-3 |
What is the 2010 value with a 2r in 200r and a 3r in 2011? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2010" FROM "doubles_performance_timeline" WHERE "2004"='2r' AND "2011"='3r'; | 2-12774720-3 |
What is the 2007 value with a 2r in 2012 and 1r in 2002? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2007" FROM "doubles_performance_timeline" WHERE "2012"='2r' AND "2002"='1r'; | 2-12774720-3 |
What is the 2004 value in the 2011 Grand Slam Tournaments? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2004" FROM "doubles_performance_timeline" WHERE "2011"='grand slam tournaments'; | 2-12774720-3 |
What is the 2004 value with a sf in 2010? | CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2004" FROM "doubles_performance_timeline" WHERE "2010"='sf'; | 2-12774720-3 |
Who played women's singles in 2002? | CREATE TABLE "canadian_open" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "women_s_singles" FROM "canadian_open" WHERE "year"='2002'; | 2-12552861-2 |
Who played men's doubles in 1963? | CREATE TABLE "canadian_open" (
"year" text,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "men_s_doubles" FROM "canadian_open" WHERE "year"='1963'; | 2-12552861-2 |
Name the score for 30 january 2013 | CREATE TABLE "international_goals" (
"goal_num" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "date"='30 january 2013'; | 2-13004730-2 |
Name the result for goal # more than 4 | CREATE TABLE "international_goals" (
"goal_num" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_goals" WHERE "goal_num">4; | 2-13004730-2 |
What is Fred Couples 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"='fred couples'; | 2-12626983-4 |
What place has a score under 68? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT "place" FROM "first_round" WHERE "score"<68; | 2-12626983-4 |
Which driver won when o.m. was the winning constructor ? | CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='o.m.'; | 2-12615783-2 |
Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ? | CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "winning_driver" FROM "other_grands_prix" WHERE "winning_constructor"='bugatti' AND "name"='boulogne grand prix'; | 2-12615783-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.