question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
|
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 AVG("goals_for") FROM "final_table" WHERE "goal_difference"<-16 AND "club"='real oviedo' AND "wins"<9;
|
2-12187674-2
|
How many people played at the club that had a "goal difference" of -8 and a position lower than 12?
|
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("played") FROM "final_table" WHERE "goal_difference"=-8 AND "position"<12;
|
2-12187674-2
|
How many "goals against" were scored at the club that had a "goal difference" of 0, 12 wins, and more than 44 goals?
|
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 COUNT("goals_against") FROM "final_table" WHERE "goal_difference"=0 AND "wins"=12 AND "goals_for">44;
|
2-12187674-2
|
What is the smallest number of "goals for" out of the clubs where there were 18 wins and fewer than 38 "goals against"?
|
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("goals_for") FROM "final_table" WHERE "wins"=18 AND "goals_against"<38;
|
2-12187674-2
|
When did Manny Pacquiao win his first championship?
|
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
|
SELECT MIN("year") FROM "list_of_winners" WHERE "fighter"='manny pacquiao';
|
2-12406070-1
|
Which sport did the United States win?
|
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
|
SELECT "sport" FROM "list_of_winners" WHERE "nation_represented"='united states';
|
2-12406070-1
|
What is the latest result where a person from the Philippines won?
|
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
|
SELECT MAX("year") FROM "list_of_winners" WHERE "nation_represented"='philippines';
|
2-12406070-1
|
Which nation won the boxing championship in 2012?
|
CREATE TABLE "list_of_winners" (
"year" real,
"fighter" text,
"nation_represented" text,
"sport" text,
"sanctioning_body_or_league" text,
"weight_class_represented_or_contested" text
);
|
SELECT "nation_represented" FROM "list_of_winners" WHERE "year"=2012;
|
2-12406070-1
|
What is the total number of seats of the Christian Democratic Union (CDU) party?
|
CREATE TABLE "results" (
"party" text,
"party_list_votes" real,
"vote_percentage" text,
"total_seats" text,
"seat_percentage" text
);
|
SELECT "total_seats" FROM "results" WHERE "party"='christian democratic union (cdu)';
|
2-1265169-2
|
What seat has a vote percentage of 100.0%
|
CREATE TABLE "results" (
"party" text,
"party_list_votes" real,
"vote_percentage" text,
"total_seats" text,
"seat_percentage" text
);
|
SELECT "seat_percentage" FROM "results" WHERE "vote_percentage"='100.0%';
|
2-1265169-2
|
What was the area in Glenella with a population of 522 in 2011?
|
CREATE TABLE "list" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" real,
"area_km" real,
"population_density" real
);
|
SELECT AVG("area_km") FROM "list" WHERE "name"='glenella' AND "population_2011"<522;
|
2-1256729-1
|
What is the population density of Siglunes when the change was smaller than -8.1 percent?
|
CREATE TABLE "list" (
"name" text,
"population_2011" real,
"population_2006" real,
"change_pct" real,
"area_km" real,
"population_density" real
);
|
SELECT COUNT("population_density") FROM "list" WHERE "name"='siglunes' AND "change_pct"<-8.1;
|
2-1256729-1
|
Who was the trainer when Crowd Pleaser won?
|
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
|
SELECT "trainer" FROM "winners_of_the_virginia_derby_since_1998" WHERE "winner"='crowd pleaser';
|
2-12262345-1
|
What was the race time of the horse with jockey Ramon Dominguez?
|
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
|
SELECT "time" FROM "winners_of_the_virginia_derby_since_1998" WHERE "jockey"='ramon dominguez';
|
2-12262345-1
|
What jockey rode for Michael House before 2012
|
CREATE TABLE "winners_of_the_virginia_derby_since_1998" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
|
SELECT "jockey" FROM "winners_of_the_virginia_derby_since_1998" WHERE "year"<2012 AND "owner"='michael house';
|
2-12262345-1
|
How many UK events won for the contestant that won under 1 US event?
|
CREATE TABLE "contestants" (
"name" text,
"from" text,
"discipline" text,
"events_won_uk_series" real,
"events_won_us_series" real
);
|
SELECT "events_won_uk_series" FROM "contestants" WHERE "events_won_us_series"<1;
|
2-12538190-1
|
How many US events did jason bennett win?
|
CREATE TABLE "contestants" (
"name" text,
"from" text,
"discipline" text,
"events_won_uk_series" real,
"events_won_us_series" real
);
|
SELECT AVG("events_won_us_series") FROM "contestants" WHERE "name"='jason bennett';
|
2-12538190-1
|
Which downhill has 7 overalls?
|
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
|
SELECT "downhill" FROM "season_standings" WHERE "overall"='7';
|
2-1302729-1
|
What super g was before 1998, had 2 giant slaloms and 24 downhills?
|
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
|
SELECT "super_g" FROM "season_standings" WHERE "season"<1998 AND "giant_slalom"='2' AND "downhill"='24';
|
2-1302729-1
|
What is the combined of 2 overalls and 5 slaloms?
|
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
|
SELECT "combined" FROM "season_standings" WHERE "overall"='2' AND "slalom"='5';
|
2-1302729-1
|
How many overalls has 1 combined and 24 downhills?
|
CREATE TABLE "season_standings" (
"season" real,
"overall" text,
"slalom" text,
"giant_slalom" text,
"super_g" text,
"downhill" text,
"combined" text
);
|
SELECT "overall" FROM "season_standings" WHERE "combined"='1' AND "downhill"='24';
|
2-1302729-1
|
What Distance had a Race Leader in Km (mi)?
|
CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
|
SELECT "distance" FROM "stage_results" WHERE "race_leader"='km (mi)';
|
2-12546510-1
|
What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, and over 72 games played?
|
CREATE TABLE "season_by_season_record" (
"season" text,
"games" real,
"lost" real,
"tied" text,
"points" real,
"goals_for" real,
"goals_against" real,
"standing" text
);
|
SELECT MAX("points") FROM "season_by_season_record" WHERE "tied"='4' AND "goals_for"<257 AND "games">72;
|
2-1243528-1
|
What is the average of games played with a percentage of 3.33% and less than 29 losses?
|
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
|
SELECT AVG("played") FROM "rugby_wales_internationals_1987" WHERE "percentage"='3.33%' AND "lost"<29;
|
2-13097393-3
|
What is the total number of games played that correlates with a first game in 1991, a percentage of 22.22%, and less than 7 losses?
|
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
|
SELECT COUNT("played") FROM "rugby_wales_internationals_1987" WHERE "first_game"=1991 AND "percentage"='22.22%' AND "lost">7;
|
2-13097393-3
|
What is the highest number of draws that correlates with a percentage of 0.00% and less than 1 loss?
|
CREATE TABLE "rugby_wales_internationals_1987" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
|
SELECT MAX("drawn") FROM "rugby_wales_internationals_1987" WHERE "percentage"='0.00%' AND "lost"<1;
|
2-13097393-3
|
What is the start value for rank 11?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT "start" FROM "indy_500_results" WHERE "rank"='11';
|
2-1252094-1
|
Which year has 200 laps?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT "year" FROM "indy_500_results" WHERE "laps"=200;
|
2-1252094-1
|
What is the finish value for a start of 19?
|
CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
);
|
SELECT "finish" FROM "indy_500_results" WHERE "start"='19';
|
2-1252094-1
|
What country is the film directed by Alfonso Cuarón from?
|
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "country" FROM "2000s" WHERE "director"='alfonso cuarón';
|
2-12886027-4
|
What is the original title of the film directed by Cristian Mungiu?
|
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "original_title" FROM "2000s" WHERE "director"='cristian mungiu';
|
2-12886027-4
|
What country is the film directed by Michael Haneke from?
|
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "country" FROM "2000s" WHERE "director"='michael haneke';
|
2-12886027-4
|
What is the English title of the film from after 2003 directed by Michael Haneke?
|
CREATE TABLE "2000s" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "english_title" FROM "2000s" WHERE "year">2003 AND "director"='michael haneke';
|
2-12886027-4
|
where is the naghsh jahan stadium?
|
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
|
SELECT "city" FROM "teams" WHERE "stadium"='naghsh jahan';
|
2-12551563-1
|
what city has a past season of n/a?
|
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
|
SELECT "city" FROM "teams" WHERE "past_season"='n/a';
|
2-12551563-1
|
where is the pegah team located?
|
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
|
SELECT "city" FROM "teams" WHERE "team"='pegah';
|
2-12551563-1
|
what stadium has a prior record of 7th?
|
CREATE TABLE "teams" (
"team" text,
"city" text,
"stadium" text,
"manager" text,
"past_season" text
);
|
SELECT "stadium" FROM "teams" WHERE "past_season"='7th';
|
2-12551563-1
|
What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "nationality" FROM "heats" WHERE "lane"=4 AND "time"='1:11.58';
|
2-12382578-2
|
What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT MIN("lane") FROM "heats" WHERE "heat">2 AND "time"='1:10.57';
|
2-12382578-2
|
What is the Heat for Smiljana Marinović?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT COUNT("heat") FROM "heats" WHERE "name"='smiljana marinović';
|
2-12382578-2
|
In heat 4, what is Byun Hye-young's Nationality?
|
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
|
SELECT "nationality" FROM "heats" WHERE "heat"=4 AND "name"='byun hye-young';
|
2-12382578-2
|
Which type of song did miriam yeung sing?
|
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
|
SELECT "kind_of_the_song" FROM "songs" WHERE "singer"='miriam yeung';
|
2-12341726-1
|
What type of song is larger than 8 and named 實情?
|
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
|
SELECT "kind_of_the_song" FROM "songs" WHERE "number">8 AND "name_of_the_song"='實情';
|
2-12341726-1
|
Which song has a ending theme, and is sung by miriam yeung?
|
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
|
SELECT "name_of_the_song" FROM "songs" WHERE "kind_of_the_song"='ending theme' AND "singer"='miriam yeung';
|
2-12341726-1
|
What is the number of the song named 實情?
|
CREATE TABLE "songs" (
"number" real,
"name_of_the_song" text,
"singer" text,
"drama" text,
"kind_of_the_song" text
);
|
SELECT "number" FROM "songs" WHERE "name_of_the_song"='實情';
|
2-12341726-1
|
Name the total number of start when finish is less than 4
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT COUNT("start") FROM "daytona_500_results" WHERE "finish"<4;
|
2-1314336-2
|
Name the sum of year when start is less than 30
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT SUM("year") FROM "daytona_500_results" WHERE "start"<30;
|
2-1314336-2
|
Name the most year with start more than 2
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT MAX("year") FROM "daytona_500_results" WHERE "start">2;
|
2-1314336-2
|
Name the most year with start less than 2
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT MAX("year") FROM "daytona_500_results" WHERE "start"<2;
|
2-1314336-2
|
Name the year when start was 32
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT "year" FROM "daytona_500_results" WHERE "start"=32;
|
2-1314336-2
|
Name the most finish for 2006
|
CREATE TABLE "daytona_500_results" (
"year" real,
"manufacturer" text,
"start" real,
"finish" real,
"team" text
);
|
SELECT MAX("finish") FROM "daytona_500_results" WHERE "year"=2006;
|
2-1314336-2
|
What was the total attendance at games when Detroit was the visiting team and the record was 36–13–5?
|
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
|
SELECT COUNT("attendance") FROM "february" WHERE "visitor"='detroit' AND "record"='36–13–5';
|
2-13034488-7
|
When did first minister Henry Mcleish enter office?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "entered_office" FROM "minister_for_community_safety_and_legal_" WHERE "first_minister"='henry mcleish';
|
2-12445442-1
|
What is the name of the minister that left office on 14 November 2006?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "name" FROM "minister_for_community_safety_and_legal_" WHERE "left_office"='14 november 2006';
|
2-12445442-1
|
What is the name of the minister from the party of minister for community safety and legal affairs?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "name" FROM "minister_for_community_safety_and_legal_" WHERE "party"='minister for community safety and legal affairs';
|
2-12445442-1
|
What is the name of the minister who has an entered office of entered office?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "name" FROM "minister_for_community_safety_and_legal_" WHERE "entered_office"='entered office';
|
2-12445442-1
|
What is the party of the minister who left office on 26 November 2002?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "party" FROM "minister_for_community_safety_and_legal_" WHERE "left_office"='26 november 2002';
|
2-12445442-1
|
What is the party of Richard Simpson?
|
CREATE TABLE "minister_for_community_safety_and_legal_" (
"name" text,
"entered_office" text,
"left_office" text,
"party" text,
"first_minister" text
);
|
SELECT "party" FROM "minister_for_community_safety_and_legal_" WHERE "name"='richard simpson';
|
2-12445442-1
|
Name the sum of spectators for time more than 20.05 and team #2 of estonia
|
CREATE TABLE "turkish_national_team" (
"date" text,
"time_cest" real,
"team_num1" text,
"res" text,
"team_num2" text,
"round" text,
"spectators" real
);
|
SELECT SUM("spectators") FROM "turkish_national_team" WHERE "time_cest">20.05 AND "team_num2"='estonia';
|
2-12243387-4
|
Name the spectators for 11 november 2011
|
CREATE TABLE "turkish_national_team" (
"date" text,
"time_cest" real,
"team_num1" text,
"res" text,
"team_num2" text,
"round" text,
"spectators" real
);
|
SELECT "spectators" FROM "turkish_national_team" WHERE "date"='11 november 2011';
|
2-12243387-4
|
Which loss has a Record of 54-39?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "record"='54-39';
|
2-12207430-5
|
Which opponent has a Record of 54-38?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "record"='54-38';
|
2-12207430-5
|
Which opponent has a date of July 7?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "date"='july 7';
|
2-12207430-5
|
Which record has a Loss of eichhorn (8-5)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "loss"='eichhorn (8-5)';
|
2-12207430-5
|
What is the average attendance San Jose home games?
|
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
|
SELECT AVG("attendance") FROM "november" WHERE "home"='san jose';
|
2-13034488-4
|
Who was the attendance at the game attended by 18,118 with a visiting team of Nashville?
|
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real
);
|
SELECT "home" FROM "november" WHERE "attendance">'18,118' AND "visitor"='nashville';
|
2-13034488-4
|
What was the record at the game that had a loss of Spillner (1-8)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "loss"='spillner (1-8)';
|
2-12207553-6
|
What was the score of the game that had a loss of Williams (1-1)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "loss"='williams (1-1)';
|
2-12207553-6
|
What was the loss of the game that had a record of 63-52?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "record"='63-52';
|
2-12207553-6
|
What was the score when the Washington Nationals had a record of 11-10?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='11-10';
|
2-12635188-1
|
Who was the opponent when the Washington Nationals had a record of 8-4?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "record"='8-4';
|
2-12635188-1
|
How many people were in attendance when the Washington Nationals had a score of 7-3 and a loss of Worrell (0-1)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT COUNT("attendance") FROM "game_log" WHERE "score"='7-3' AND "loss"='worrell (0-1)';
|
2-12635188-1
|
Name the Qual 2 which has the name of katherine legge
|
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
|
SELECT "qual_2" FROM "qualifying_results" WHERE "name"='katherine legge';
|
2-12167074-1
|
Name the team with best of 58.846
|
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
|
SELECT "team" FROM "qualifying_results" WHERE "best"='58.846';
|
2-12167074-1
|
Tell me the name with best of 58.403
|
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
|
SELECT "name" FROM "qualifying_results" WHERE "best"='58.403';
|
2-12167074-1
|
Tell me the qual 1 for jan heylen
|
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
|
SELECT "qual_1" FROM "qualifying_results" WHERE "name"='jan heylen';
|
2-12167074-1
|
When the attendance was 24,406 who lost?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "attendance"='24,406';
|
2-12207158-3
|
Which of the opponents has a record of 17-25?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "record"='17-25';
|
2-12207158-3
|
Who was the opponent that played on may 12?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "date"='may 12';
|
2-12207158-3
|
When in the 1st league position, how many people watch as they faced West Ham United?
|
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
|
SELECT MIN("attendance") FROM "premier_league" WHERE "league_position"='1st' AND "opponents"='west ham united';
|
2-12845546-3
|
What was the result with West Ham United with more than 67,577 in attendance?
|
CREATE TABLE "premier_league" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"league_position" text
);
|
SELECT "result_f_a" FROM "premier_league" WHERE "attendance">'67,577' AND "opponents"='west ham united';
|
2-12845546-3
|
What is the average bronze medals of Uganda's swimmers when they earned over 2 medals?
|
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='uganda' AND "total">2;
|
2-12656357-3
|
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
|
CREATE TABLE "medals_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MAX("silver") FROM "medals_table" WHERE "bronze"<3 AND "gold"<1 AND "total"=1 AND "nation"='ireland';
|
2-12656357-3
|
What's the highest silver and 1 gold that the nation of djibouti received with a total less than 3?
|
CREATE TABLE "total" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MAX("silver") FROM "total" WHERE "gold"=1 AND "nation"='djibouti' AND "total"<3;
|
2-12403052-2
|
What's the total number that had a rank larger than 17 and a gold greater than 0?
|
CREATE TABLE "total" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT COUNT("total") FROM "total" WHERE "rank">17 AND "gold">0;
|
2-12403052-2
|
Which opponent was faced before week 2?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
|
SELECT "opponent" FROM "schedule" WHERE "week"<2;
|
2-12536551-2
|
Name the least total for 1978 years won
|
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
|
SELECT MIN("total") FROM "made_the_cut" WHERE "year_s_won"='1978';
|
2-12819742-1
|
Name the total with finish of t22
|
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
|
SELECT "total" FROM "made_the_cut" WHERE "finish"='t22';
|
2-12819742-1
|
Name the average total for years won of 1975
|
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
|
SELECT AVG("total") FROM "made_the_cut" WHERE "year_s_won"='1975';
|
2-12819742-1
|
Name the finish with player lou graham
|
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
|
SELECT "finish" FROM "made_the_cut" WHERE "player"='lou graham';
|
2-12819742-1
|
Name the total number of total with finish of t45
|
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
|
SELECT COUNT("total") FROM "made_the_cut" WHERE "finish"='t45';
|
2-12819742-1
|
What year was the League the malaysian super league, and a Malaysia Cup of group stage?
|
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
|
SELECT "year" FROM "achievements" WHERE "league"='malaysian super league' AND "malaysia_cup"='group stage';
|
2-12392649-1
|
What is the position when the League is the malaysian super league, and a Year of 2011?
|
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
|
SELECT "position" FROM "achievements" WHERE "league"='malaysian super league' AND "year"='2011';
|
2-12392649-1
|
What year was the position 6/13?
|
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
|
SELECT "year" FROM "achievements" WHERE "position"='6/13';
|
2-12392649-1
|
What year was the League of malaysian super league, and the Position was 10/14?
|
CREATE TABLE "achievements" (
"year" text,
"position" text,
"league" text,
"fa_cup" text,
"malaysia_cup" text
);
|
SELECT "year" FROM "achievements" WHERE "league"='malaysian super league' AND "position"='10/14';
|
2-12392649-1
|
tell me the average roll for the featherston area and integrated authority.
|
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT AVG("roll") FROM "south_wairarapa_district" WHERE "area"='featherston' AND "authority"='integrated';
|
2-12214488-8
|
tell me the authority that has a decile less than 6 and roll less than 65.
|
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "authority" FROM "south_wairarapa_district" WHERE "decile"<6 AND "roll"<65;
|
2-12214488-8
|
tell me the average roll for pirinoa school.
|
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT AVG("roll") FROM "south_wairarapa_district" WHERE "name"='pirinoa school';
|
2-12214488-8
|
tell me the total number of decile with a roll showing 251.
|
CREATE TABLE "south_wairarapa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT COUNT("decile") FROM "south_wairarapa_district" WHERE "roll"=251;
|
2-12214488-8
|
What is the score for 2004?
|
CREATE TABLE "external_links" (
"year" real,
"champion" text,
"score" text,
"defeated" text,
"location" text
);
|
SELECT "score" FROM "external_links" WHERE "year"=2004;
|
2-13281014-1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.