question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Who was the winner for the Rome to Teramo course?
|
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
|
SELECT "winner" FROM "stage_results" WHERE "course"='rome to teramo';
|
2-12606666-1
|
Who was the winner of stage 11?
|
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"course" text,
"distance" text,
"winner" text,
"race_leader" text
);
|
SELECT "winner" FROM "stage_results" WHERE "stage"='11';
|
2-12606666-1
|
What is the average Apps of indonesia with Goals smaller than 1000?
|
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
|
SELECT AVG("apps") FROM "club" WHERE "country"='indonesia' AND "goals"<1000;
|
2-12260101-1
|
What division is Traktor Tashkent in 2005?
|
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
|
SELECT "division" FROM "club" WHERE "team"='traktor tashkent' AND "season"='2005';
|
2-12260101-1
|
How many apps does Uzbekistan have in 2003?
|
CREATE TABLE "club" (
"season" text,
"team" text,
"country" text,
"division" text,
"apps" real,
"goals" real
);
|
SELECT "apps" FROM "club" WHERE "country"='uzbekistan' AND "season"='2003';
|
2-12260101-1
|
What was the attendance at the game when the record was 74-77?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "attendance" FROM "game_log" WHERE "record"='74-77';
|
2-12205689-8
|
What was score of the game when the record was 72-74?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='72-74';
|
2-12205689-8
|
What were the air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
|
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
|
SELECT "airdate" FROM "series_3" WHERE "episode_no"<4 AND "bbc_one_weekly_ranking"=6;
|
2-12890652-3
|
What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?
|
CREATE TABLE "series_3" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" real
);
|
SELECT "total_viewers" FROM "series_3" WHERE "bbc_one_weekly_ranking">7 AND "episode_no"<4;
|
2-12890652-3
|
Name the most rank with bronze of 0 and silver more than 1 and gold more than 0
|
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MAX("rank") FROM "cultural_events" WHERE "bronze"=0 AND "silver">1 AND "gold">0;
|
2-12281192-4
|
Name the average silver with total less than 1
|
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT AVG("silver") FROM "cultural_events" WHERE "total"<1;
|
2-12281192-4
|
Name the average year for result of nominated
|
CREATE TABLE "awards" (
"year" real,
"award" text,
"festival" text,
"nominated_work" text,
"result" text
);
|
SELECT AVG("year") FROM "awards" WHERE "result"='nominated';
|
2-12284058-1
|
Name the nominated work for 1996 and festival of black maria film and video festival
|
CREATE TABLE "awards" (
"year" real,
"award" text,
"festival" text,
"nominated_work" text,
"result" text
);
|
SELECT "nominated_work" FROM "awards" WHERE "year"=1996 AND "festival"='black maria film and video festival';
|
2-12284058-1
|
What was the date of the away game that they lost to Accrington?
|
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
|
SELECT "date" FROM "league" WHERE "venue"='away' AND "win_draw_lose"='lost' AND "team"='accrington';
|
2-12607744-1
|
What was the date of the home game against Accrington?
|
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
|
SELECT "date" FROM "league" WHERE "team"='accrington' AND "venue"='home';
|
2-12607744-1
|
What was the result of the home game against Derby County?
|
CREATE TABLE "league" (
"date" text,
"team" text,
"venue" text,
"win_draw_lose" text,
"score" text
);
|
SELECT "win_draw_lose" FROM "league" WHERE "venue"='home' AND "team"='derby county';
|
2-12607744-1
|
What is the Standard cost (USD) by hans Oischinger Creator ?
|
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
|
SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='hans oischinger';
|
2-13023575-2
|
What is the Standard cost (USD) of Kwin team creator?
|
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
|
SELECT "standard_cost_usd" FROM "for_the_x_window_system" WHERE "creator"='kwin team';
|
2-13023575-2
|
Who is the Creator that has a version of 0.5.2 (part of compiz fusion release)?
|
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
|
SELECT "creator" FROM "for_the_x_window_system" WHERE "latest_stable_version"='0.5.2 (part of compiz fusion release)';
|
2-13023575-2
|
Who is a Creator of hyriand?
|
CREATE TABLE "for_the_x_window_system" (
"name" text,
"creator" text,
"latest_stable_version" text,
"standard_cost_usd" text,
"software_license" text
);
|
SELECT "name" FROM "for_the_x_window_system" WHERE "creator"='hyriand';
|
2-13023575-2
|
What is the number of people who attended the game later than game 6?
|
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
|
SELECT COUNT("attendance") FROM "summary" WHERE "game">6;
|
2-1218039-1
|
Which title has a year later than 1986 with an album as the format?
|
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
|
SELECT "title" FROM "recording_industry_association_of_americ" WHERE "year">1986 AND "format_s"='album';
|
2-1220300-21
|
Which is the average year with the date of February 24?
|
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
|
SELECT AVG("year") FROM "recording_industry_association_of_americ" WHERE "date"='february 24';
|
2-1220300-21
|
Which award description has a year later than 1994 with a date of December 6?
|
CREATE TABLE "recording_industry_association_of_americ" (
"year" real,
"date" text,
"title" text,
"format_s" text,
"award_description_s" text,
"result_s" text
);
|
SELECT "award_description_s" FROM "recording_industry_association_of_americ" WHERE "year">1994 AND "date"='december 6';
|
2-1220300-21
|
How many goals have a Date of december 4, 2010, and a Score of 1-0?
|
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT COUNT("goal") FROM "international_goals" WHERE "date"='december 4, 2010' AND "score"='1-0';
|
2-12257608-1
|
Which venue has a Competition of 2008 myanmar grand royal challenge cup?
|
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "venue" FROM "international_goals" WHERE "competition"='2008 myanmar grand royal challenge cup';
|
2-12257608-1
|
Which venue has a Goal of 4?
|
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT "venue" FROM "international_goals" WHERE "goal"=4;
|
2-12257608-1
|
What is the largest goal with a Score of 3-0?
|
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
|
SELECT MAX("goal") FROM "international_goals" WHERE "score"='3-0';
|
2-12257608-1
|
Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?
|
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "opponents_in_the_final" FROM "doubles_24_12_12" WHERE "partnering"='bruno soares' AND "surface"='clay' AND "date"='august 1, 2010';
|
2-12122432-6
|
What surface was played on that resulted in a score of 4–6, 6–2, [10–7]?
|
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "surface" FROM "doubles_24_12_12" WHERE "score"='4–6, 6–2, [10–7]';
|
2-12122432-6
|
What was the outcome on May 25, 2009?
|
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "outcome" FROM "doubles_24_12_12" WHERE "date"='may 25, 2009';
|
2-12122432-6
|
What was the outcome on May 18, 2008?
|
CREATE TABLE "doubles_24_12_12" (
"outcome" text,
"date" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
|
SELECT "outcome" FROM "doubles_24_12_12" WHERE "date"='may 18, 2008';
|
2-12122432-6
|
what is the place for Heath Slocum?
|
CREATE TABLE "first_round_thursday" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
|
SELECT "place" FROM "first_round_thursday" WHERE "player"='heath slocum';
|
2-12512153-4
|
What is the attendance for august 29?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "attendance" FROM "game_log" WHERE "date"='august 29';
|
2-12367921-6
|
Which loss has an Opponent of @ angels, and a Date of august 1?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "opponent"='@ angels' AND "date"='august 1';
|
2-12367921-6
|
Which score has an Attendance of 31,178?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "attendance"='31,178';
|
2-12367921-6
|
Which record has a Date of august 28?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "date"='august 28';
|
2-12367921-6
|
Which loss has an Attendance of 23,952?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "loss" FROM "game_log" WHERE "attendance"='23,952';
|
2-12367921-6
|
Which opponent has a Loss of corcoran (4-4)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "loss"='corcoran (4-4)';
|
2-12367921-6
|
What is the location of the gold medal match?
|
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
|
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='gold medal match';
|
2-13227897-5
|
What was the lineup that resulted in 1-0 AET W?
|
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
|
SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "result"='1-0 aet w';
|
2-13227897-5
|
What was the result of match 25?
|
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='25';
|
2-13227897-5
|
What is the result of the London 2012 Women's Olympic Football Tournament?
|
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
"match" text,
"date" text,
"location" text,
"lineup" text,
"result" text,
"competition" text
);
|
SELECT "result" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "location"='london 2012 women''s olympic football tournament';
|
2-13227897-5
|
What was the score of the game that had a loss of Wegman (2-6)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "loss"='wegman (2-6)';
|
2-12207449-4
|
What was the record at the game that had a loss of Blyleven (4-5)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "loss"='blyleven (4-5)';
|
2-12207449-4
|
Name the city with july of 88 °f / 31.1 °c
|
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "jul"='88 °f / 31.1 °c';
|
2-13270-2
|
Name the city with Feb of 66 °f / 18.9 °c
|
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "feb"='66 °f / 18.9 °c';
|
2-13270-2
|
Name the city with september of 83 °f / 28.3 °c
|
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
|
SELECT "city" FROM "monthly_normal_low_and_high_temperatures" WHERE "sep"='83 °f / 28.3 °c';
|
2-13270-2
|
Name the june when it has july of 84 °f / 28.9 °c
|
CREATE TABLE "monthly_normal_low_and_high_temperatures" (
"city" text,
"jan" text,
"feb" text,
"mar" text,
"apr" text,
"jun" text,
"jul" text,
"aug" text,
"sep" text,
"oct" text,
"nov" text,
"dec" text
);
|
SELECT "jun" FROM "monthly_normal_low_and_high_temperatures" WHERE "jul"='84 °f / 28.9 °c';
|
2-13270-2
|
What Time has Date of May 9?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"time" text,
"att" text,
"record" text
);
|
SELECT "time" FROM "game_log" WHERE "date"='may 9';
|
2-12569321-5
|
What is the lowest roll number of Katikati college?
|
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT MIN("roll") FROM "western_bay_of_plenty_district" WHERE "name"='katikati college';
|
2-12174210-1
|
What is the highest roll number of the school in Te puna with a decile larger than 2?
|
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "decile">2 AND "area"='te puna';
|
2-12174210-1
|
What is the roll number of Te Puke Intermediate, which has a decile of 4?
|
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "roll" FROM "western_bay_of_plenty_district" WHERE "decile"=4 AND "name"='te puke intermediate';
|
2-12174210-1
|
What is the highest roll number of the school with a state authority and a decile smaller than 8?
|
CREATE TABLE "western_bay_of_plenty_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "authority"='state' AND "decile"<8;
|
2-12174210-1
|
What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?
|
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT SUM("lost") FROM "clausura_2004_standings" WHERE "points">21 AND "draw"=2;
|
2-13119037-1
|
What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?
|
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT MAX("goals_scored") FROM "clausura_2004_standings" WHERE "team"='san salvador f.c.' AND "points"<10;
|
2-13119037-1
|
What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?
|
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT SUM("goals_conceded") FROM "clausura_2004_standings" WHERE "points"<26 AND "played"<18;
|
2-13119037-1
|
What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?
|
CREATE TABLE "clausura_2004_standings" (
"place" real,
"team" text,
"played" real,
"draw" real,
"lost" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
|
SELECT AVG("lost") FROM "clausura_2004_standings" WHERE "goals_scored">20 AND "played"<18;
|
2-13119037-1
|
What is score of the game played in place t8 with Byron Nelson playing?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT "score" FROM "final_leaderboard" WHERE "place"='t8' AND "player"='byron nelson';
|
2-13059263-1
|
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT SUM("money") FROM "final_leaderboard" WHERE "country"='united states' AND "player"='sam snead';
|
2-13059263-1
|
What is the Money ($) of the game with a score of 69-74-70-73=286?
|
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
|
SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='69-74-70-73=286';
|
2-13059263-1
|
Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "intergiro_classification"='not awarded' AND "stage"='2';
|
2-12261714-2
|
Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='adriano baffi' AND "intergiro_classification"='ján svorada' AND "stage"='13';
|
2-12261714-2
|
Name trofeo fast team with young rider classification of francesco casagrande and stage of 10
|
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"intergiro_classification" text,
"trofeo_fast_team" text
);
|
SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "stage"='10';
|
2-12261714-2
|
What is the sum of the total for a routine score of 26.6?
|
CREATE TABLE "qualification" (
"rank" real,
"gymnast" text,
"difficulty_score" text,
"routine_score" real,
"total" real
);
|
SELECT SUM("total") FROM "qualification" WHERE "routine_score"=26.6;
|
2-1325898-1
|
Name the january when april is courtney rachel culkin
|
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
|
SELECT "january" FROM "2000_2009" WHERE "april"='courtney rachel culkin';
|
2-12868503-6
|
Name the october when november is buffy tyler
|
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
|
SELECT "october" FROM "2000_2009" WHERE "november"='buffy tyler';
|
2-12868503-6
|
Name the october when the september is dalene kurtis
|
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
|
SELECT "october" FROM "2000_2009" WHERE "september"='dalene kurtis';
|
2-12868503-6
|
Name the april for candice cassidy
|
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
|
SELECT "april" FROM "2000_2009" WHERE "june"='candice cassidy';
|
2-12868503-6
|
Name the october for july of kimberley stanfield
|
CREATE TABLE "2000_2009" (
"january" text,
"february" text,
"march" text,
"april" text,
"june" text,
"july" text,
"august" text,
"september" text,
"october" text,
"november" text,
"december" text
);
|
SELECT "october" FROM "2000_2009" WHERE "july"='kimberley stanfield';
|
2-12868503-6
|
Which Representative was from Kentucky during the years of 1855–1859?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "representative" FROM "external_links" WHERE "state"='kentucky' AND "years"='1855–1859';
|
2-12601236-1
|
What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "lifespan" FROM "external_links" WHERE "party"='republican' AND "years"='1953–1970';
|
2-12601236-1
|
What years did the Representative from Iowa with a lifespan of 1880–1942 serve?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "years" FROM "external_links" WHERE "state"='iowa' AND "lifespan"='1880–1942';
|
2-12601236-1
|
Which Representative had a Lifespan of 1795–1866?
|
CREATE TABLE "external_links" (
"representative" text,
"years" text,
"state" text,
"party" text,
"lifespan" text
);
|
SELECT "representative" FROM "external_links" WHERE "lifespan"='1795–1866';
|
2-12601236-1
|
When did the Chiefs have their first bye?
|
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
|
SELECT MIN("week") FROM "season_schedule" WHERE "attendance"='bye';
|
2-12535990-1
|
What is the position played for the player drafted in round 2?
|
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
|
SELECT "position" FROM "january_draft" WHERE "round"=2;
|
2-12937301-9
|
what is the name of the player that played position 3b?
|
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
|
SELECT "name" FROM "january_draft" WHERE "position"='3b';
|
2-12937301-9
|
what is the school for Ivey armstrong?
|
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
|
SELECT "school" FROM "january_draft" WHERE "name"='ivey armstrong';
|
2-12937301-9
|
what is the position for the player from university of alabama?
|
CREATE TABLE "january_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
);
|
SELECT "position" FROM "january_draft" WHERE "school"='university of alabama';
|
2-12937301-9
|
How many days with frost were there in the City/Town of Lugo have?
|
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
|
SELECT SUM("days_with_frost") FROM "climate" WHERE "city_town"='lugo';
|
2-12837-1
|
What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?
|
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
|
SELECT MIN("sunlight_hours") FROM "climate" WHERE "city_town"='ourense' AND "days_with_frost">30;
|
2-12837-1
|
What is the largest amount of sunlight hours for the City of Pontevedra?
|
CREATE TABLE "climate" (
"city_town" text,
"july_av_t" text,
"rain" text,
"days_with_rain_year_summer" text,
"days_with_frost" real,
"sunlight_hours" real
);
|
SELECT MAX("sunlight_hours") FROM "climate" WHERE "city_town"='pontevedra';
|
2-12837-1
|
for the rank of 3 for the united states, what is the average lane?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='united states' AND "rank"=3;
|
2-12386222-5
|
for the rank more than 1 and nationality of netherlands, what is the lane?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='netherlands' AND "rank">1;
|
2-12386222-5
|
for the time of 49.04 and lane less than 3, what is the nationality?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT "nationality" FROM "semifinal_2" WHERE "lane"<3 AND "time"=49.04;
|
2-12386222-5
|
for the rank of 8 and lane less than 3 what is the name?
|
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT "name" FROM "semifinal_2" WHERE "lane"<3 AND "rank"=8;
|
2-12386222-5
|
What play has a loss of 2?
|
CREATE TABLE "2007_2008_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 "played" FROM "2007_2008_table" WHERE "lost"='2';
|
2-12784856-5
|
What try bonus has a club of caerphilly rfc?
|
CREATE TABLE "2007_2008_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 "try_bonus" FROM "2007_2008_table" WHERE "club"='caerphilly rfc';
|
2-12784856-5
|
What club has a play of 22, and losing bonus of 7?
|
CREATE TABLE "2007_2008_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 "club" FROM "2007_2008_table" WHERE "played"='22' AND "losing_bonus"='7';
|
2-12784856-5
|
What point against has tries against of 77, and a lost of 16?
|
CREATE TABLE "2007_2008_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 "points_against" FROM "2007_2008_table" WHERE "tries_against"='77' AND "lost"='16';
|
2-12784856-5
|
The nll participate in what sport?
|
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
|
SELECT "sport" FROM "professional_sports" WHERE "league"='nll';
|
2-126641-5
|
When did the Club of western new york flash begin to play?
|
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
|
SELECT "began_play" FROM "professional_sports" WHERE "club"='western new york flash';
|
2-126641-5
|
Which club plays soccer in the nwsl?
|
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
|
SELECT "club" FROM "professional_sports" WHERE "sport"='soccer' AND "league"='nwsl';
|
2-126641-5
|
When did the Rochester Rhinos begin to play?
|
CREATE TABLE "professional_sports" (
"club" text,
"sport" text,
"began_play" text,
"league" text,
"venue" text
);
|
SELECT "began_play" FROM "professional_sports" WHERE "club"='rochester rhinos';
|
2-126641-5
|
The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.
|
CREATE TABLE "podiums_on_all_three_grands_tours" (
"name" text,
"tour" real,
"giro" real,
"vuelta" real,
"total" real
);
|
SELECT SUM("total") FROM "podiums_on_all_three_grands_tours" WHERE "tour"=7 AND "giro"<3;
|
2-1286819-2
|
What genders did Lynmore Primary School take?
|
CREATE TABLE "rotorua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
|
SELECT "gender" FROM "rotorua_district" WHERE "name"='lynmore primary school';
|
2-12174210-3
|
Which area served coed genders at Kaharoa school and had a Decile of 9?
|
CREATE TABLE "rotorua_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" text
);
|
SELECT "area" FROM "rotorua_district" WHERE "gender"='coed' AND "decile"='9' AND "name"='kaharoa school';
|
2-12174210-3
|
What was the gender for the integrated authority with a roll of 142?
|
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "gender" FROM "lower_hutt_city" WHERE "authority"='integrated' AND "roll"=142;
|
2-12214488-3
|
What was the Authority for Avalon School with a roll less than 358?
|
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "authority" FROM "lower_hutt_city" WHERE "area"='avalon' AND "roll"<358 AND "name"='avalon school';
|
2-12214488-3
|
Who is the authority for the coed Eastbourne school?
|
CREATE TABLE "lower_hutt_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "authority" FROM "lower_hutt_city" WHERE "area"='eastbourne' AND "gender"='coed';
|
2-12214488-3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.