question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Which city station is owned by Coyote Communications?
|
CREATE TABLE "fm" (
"station" text,
"frequency" real,
"network_affiliation" text,
"format" text,
"city_of_license" text,
"status" text
);
|
SELECT "city_of_license" FROM "fm" WHERE "status"='owned by coyote communications';
|
2-12271718-3
|
What year were the Olympic Games?
|
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
|
SELECT SUM("year") FROM "achievements" WHERE "competition"='olympic games';
|
2-12955486-1
|
What's the year in 5th position that happened in Osaka, Japan?
|
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
|
SELECT MIN("year") FROM "achievements" WHERE "position"='5th' AND "venue"='osaka, japan';
|
2-12955486-1
|
What year was the venue in Barcelona, Spain?
|
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
|
SELECT MIN("year") FROM "achievements" WHERE "venue"='barcelona, spain';
|
2-12955486-1
|
For a school with authority of state and a roll of 798, what is the decile?
|
CREATE TABLE "whakatane_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "decile" FROM "whakatane_district" WHERE "authority"='state' AND "roll"=798;
|
2-12174210-4
|
Murupara has a roll greater than 296 for what years?
|
CREATE TABLE "whakatane_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "years" FROM "whakatane_district" WHERE "roll">296 AND "area"='murupara';
|
2-12174210-4
|
When a school has authority of state and a decile greater than 1, what is the roll number?
|
CREATE TABLE "whakatane_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT "roll" FROM "whakatane_district" WHERE "authority"='state' AND "decile">1;
|
2-12174210-4
|
Who did the Jays play on August 30?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "date"='august 30';
|
2-12207900-6
|
Which opponent has a record of 5-0-1?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "record"='5-0-1';
|
2-12602946-2
|
What method does the opponent of Dan New use?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='dan new';
|
2-12602946-2
|
Which method has a record of 3-0?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='3-0';
|
2-12602946-2
|
Which event is a win by an opponent of Nicolas Smith, with the round marked n/a?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round"='n/a' AND "opponent"='nicolas smith';
|
2-12602946-2
|
Which event lasted 1 round and included an opponent of Dan Spychalski?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "opponent"='dan spychalski';
|
2-12602946-2
|
What is Jimmy Smith's opponent's record?
|
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text
);
|
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='jimmy smith';
|
2-12602946-2
|
Name the sum of frequecy with brand of exa fm
|
CREATE TABLE "fm_radio" (
"frequency" real,
"callsign" text,
"brand" text,
"format" text,
"city_of_license" text,
"website" text,
"webcast" text
);
|
SELECT SUM("frequency") FROM "fm_radio" WHERE "brand"='exa fm';
|
2-12394513-3
|
Name the webcast for website of • and frequency of 103.3
|
CREATE TABLE "fm_radio" (
"frequency" real,
"callsign" text,
"brand" text,
"format" text,
"city_of_license" text,
"website" text,
"webcast" text
);
|
SELECT "webcast" FROM "fm_radio" WHERE "website"='•' AND "frequency"=103.3;
|
2-12394513-3
|
Name the lowest frequency for brand of radio manantial
|
CREATE TABLE "fm_radio" (
"frequency" real,
"callsign" text,
"brand" text,
"format" text,
"city_of_license" text,
"website" text,
"webcast" text
);
|
SELECT MIN("frequency") FROM "fm_radio" WHERE "brand"='radio manantial';
|
2-12394513-3
|
Score of new york yankees – 2, brooklyn dodgers – 3 involves how many number of games?
|
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
|
SELECT COUNT("game") FROM "summary" WHERE "score"='new york yankees – 2, brooklyn dodgers – 3';
|
2-1332364-1
|
Date of october 5 had what score?
|
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
|
SELECT "score" FROM "summary" WHERE "date"='october 5';
|
2-1332364-1
|
brooklyn dodgers – 3, new york yankees – 5, and a Game larger than 1 had what attendance figure?
|
CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
);
|
SELECT SUM("attendance") FROM "summary" WHERE "score"='brooklyn dodgers – 3, new york yankees – 5' AND "game">1;
|
2-1332364-1
|
Who won mixed doubles in the 2002 season?
|
CREATE TABLE "21st_century" (
"season" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
);
|
SELECT "mixed_doubles" FROM "21st_century" WHERE "season"=2002;
|
2-12194021-1
|
Name the lowest Quay cranes for Berths of 1 and operator of mtl with terminal of terminal 5 (ct5)
|
CREATE TABLE "container_terminals" (
"terminal" text,
"operator" text,
"depth_m" text,
"berths" real,
"quay_cranes" real
);
|
SELECT MIN("quay_cranes") FROM "container_terminals" WHERE "berths"=1 AND "operator"='mtl' AND "terminal"='terminal 5 (ct5)';
|
2-1230098-1
|
Name the operator with berths more than 1 and depth of 12.5-15.5
|
CREATE TABLE "container_terminals" (
"terminal" text,
"operator" text,
"depth_m" text,
"berths" real,
"quay_cranes" real
);
|
SELECT "operator" FROM "container_terminals" WHERE "berths">1 AND "depth_m"='12.5-15.5';
|
2-1230098-1
|
What is the average points that Centro Asegurador earned with the McLaren M23 chassis?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='mclaren m23' AND "entrant"='centro asegurador';
|
2-1228326-1
|
What was the chassis of Emilio de Villota in 1981?
|
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 "year">1981;
|
2-1228326-1
|
What directors won an award on 14/6/6?
|
CREATE TABLE "2006" (
"film" text,
"director_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "director_s" FROM "2006" WHERE "date"='14/6/6';
|
2-12200520-2
|
What date did Passion Pictures receive an award?
|
CREATE TABLE "2006" (
"film" text,
"director_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "date" FROM "2006" WHERE "recipient"='passion pictures';
|
2-12200520-2
|
What award did Charlie Productions Ltd receive?
|
CREATE TABLE "2006" (
"film" text,
"director_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "award" FROM "2006" WHERE "recipient"='charlie productions ltd';
|
2-12200520-2
|
What film had Bub Ltd as the recipient?
|
CREATE TABLE "2006" (
"film" text,
"director_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "film" FROM "2006" WHERE "recipient"='bub ltd';
|
2-12200520-2
|
What film was awarded on 22/3/06?
|
CREATE TABLE "2006" (
"film" text,
"director_s" text,
"recipient" text,
"date" text,
"award" text
);
|
SELECT "film" FROM "2006" WHERE "date"='22/3/06';
|
2-12200520-2
|
What score resulted in a winner after 2008?
|
CREATE TABLE "finals_6_3_titles_3_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"partner" text,
"opponent" text,
"score" text
);
|
SELECT "score" FROM "finals_6_3_titles_3_runners_up" WHERE "outcome"='winner' AND "year">2008;
|
2-12980230-1
|
What score has an opponent gan teik chai lin woon fui?
|
CREATE TABLE "finals_6_3_titles_3_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"partner" text,
"opponent" text,
"score" text
);
|
SELECT "score" FROM "finals_6_3_titles_3_runners_up" WHERE "opponent"='gan teik chai lin woon fui';
|
2-12980230-1
|
What tournament has an opponent gan teik chai lin woon fui?
|
CREATE TABLE "finals_6_3_titles_3_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"partner" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "finals_6_3_titles_3_runners_up" WHERE "opponent"='gan teik chai lin woon fui';
|
2-12980230-1
|
What tournament has an opponent jung jae-sung lee yong-dae?
|
CREATE TABLE "finals_6_3_titles_3_runners_up" (
"outcome" text,
"year" real,
"tournament" text,
"partner" text,
"opponent" text,
"score" text
);
|
SELECT "tournament" FROM "finals_6_3_titles_3_runners_up" WHERE "opponent"='jung jae-sung lee yong-dae';
|
2-12980230-1
|
What is the record of the team that lost to Alexander (5-2)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "record" FROM "game_log" WHERE "loss"='alexander (5-2)';
|
2-12207474-3
|
Which opponent has a record of 17-11?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "opponent" FROM "game_log" WHERE "record"='17-11';
|
2-12207474-3
|
What is the score of the game that resulted in a 15-9 record?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "record"='15-9';
|
2-12207474-3
|
What was the attendance on May 26?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "attendance" FROM "game_log" WHERE "date"='may 26';
|
2-12207474-3
|
What is the score of the game that was a loss to Dotson (2-3)?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "score" FROM "game_log" WHERE "loss"='dotson (2-3)';
|
2-12207474-3
|
On what date was the record 19-11?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
|
SELECT "date" FROM "game_log" WHERE "record"='19-11';
|
2-12207474-3
|
What were the highest points before the year 1974?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "year"<1974;
|
2-1235922-1
|
What was the chassis when the entrant was Lavazza March, and the points were 0.5?
|
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"='lavazza march' AND "points"=0.5;
|
2-1235922-1
|
What was the chassis when the entrant was Lavazza March, and the year was 1975?
|
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"='lavazza march' AND "year"=1975;
|
2-1235922-1
|
What was the chassis when the points were greater than 0 and the entrant was March Engineering?
|
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 "points">0 AND "entrant"='march engineering';
|
2-1235922-1
|
Who had a time of 56.07?
|
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
|
SELECT "name" FROM "semifinal_1" WHERE "time"=56.07;
|
2-12386451-4
|
What is the original title of Madame Rosa?
|
CREATE TABLE "1970s" (
"year" text,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "original_title" FROM "1970s" WHERE "english_title"='madame rosa';
|
2-12886027-1
|
What is the original title where Paul Verhoeven is the director?
|
CREATE TABLE "1970s" (
"year" text,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "original_title" FROM "1970s" WHERE "director"='paul verhoeven';
|
2-12886027-1
|
What original title has a year of 1978?
|
CREATE TABLE "1970s" (
"year" text,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "original_title" FROM "1970s" WHERE "year"='1978';
|
2-12886027-1
|
Who is the director of the best foreign film?
|
CREATE TABLE "1970s" (
"year" text,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "director" FROM "1970s" WHERE "original_title"='best foreign film';
|
2-12886027-1
|
What is the English title for Ansikte Mot Ansikte?
|
CREATE TABLE "1970s" (
"year" text,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
|
SELECT "english_title" FROM "1970s" WHERE "original_title"='ansikte mot ansikte';
|
2-12886027-1
|
What happened on 2009-09-05?
|
CREATE TABLE "2009" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
|
SELECT "circumstances" FROM "2009" WHERE "date"='2009-09-05';
|
2-12378453-8
|
Where was the combat of 2009-09-16?
|
CREATE TABLE "2009" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
|
SELECT "location" FROM "2009" WHERE "circumstances"='combat' AND "date"='2009-09-16';
|
2-12378453-8
|
What happened on 2009-03-14?
|
CREATE TABLE "2009" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
|
SELECT "circumstances" FROM "2009" WHERE "date"='2009-03-14';
|
2-12378453-8
|
How many casualties from the combat in the Fayzabad area?
|
CREATE TABLE "2009" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
|
SELECT "casualties" FROM "2009" WHERE "circumstances"='combat' AND "location"='fayzabad area';
|
2-12378453-8
|
Where was the incident of 2009-09-05?
|
CREATE TABLE "2009" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
);
|
SELECT "location" FROM "2009" WHERE "date"='2009-09-05';
|
2-12378453-8
|
What is the home team of the game on January 22?
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "regular_season" WHERE "date"='january 22';
|
2-12798122-2
|
What is the score of the game on February 26 with the Chicago black hawks as the home team and the New York Rangers as the visitor team?
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "score" FROM "regular_season" WHERE "home"='chicago black hawks' AND "visitor"='new york rangers' AND "date"='february 26';
|
2-12798122-2
|
What is the home team of the game on February 4?
|
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
|
SELECT "home" FROM "regular_season" WHERE "date"='february 4';
|
2-12798122-2
|
What Team had less than 1 point with a Zakspeed 871 chassis?
|
CREATE TABLE "formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT "team" FROM "formula_one_results" WHERE "points"<1 AND "chassis"='zakspeed 871';
|
2-1219722-3
|
What is the lowest amount of points for a Ford Cosworth DFR (Mader) 3.5 V8 engine?
|
CREATE TABLE "formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT MIN("points") FROM "formula_one_results" WHERE "engine"='ford cosworth dfr (mader) 3.5 v8';
|
2-1219722-3
|
What year was a Rial Arc2 chassis used?
|
CREATE TABLE "formula_one_results" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT SUM("year") FROM "formula_one_results" WHERE "chassis"='rial arc2';
|
2-1219722-3
|
Name the bronze when silver is 1
|
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT "bronze" FROM "medal_table" WHERE "silver"=1;
|
2-12320552-17
|
Name the least silver when gold is less than 0
|
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;
|
2-12320552-17
|
Name the least silver for nation of total when bronze is more than 24
|
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
|
SELECT MIN("silver") FROM "medal_table" WHERE "nation"='total' AND "bronze">24;
|
2-12320552-17
|
Name the year with finish of 12th and record of 23-36
|
CREATE TABLE "season_by_season" (
"year" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
|
SELECT "year" FROM "season_by_season" WHERE "finish"='12th' AND "record"='23-36';
|
2-13076944-1
|
Name the record for 1997
|
CREATE TABLE "season_by_season" (
"year" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
|
SELECT "record" FROM "season_by_season" WHERE "year"='1997';
|
2-13076944-1
|
Name the year for jesus alfaro and finish of 6th
|
CREATE TABLE "season_by_season" (
"year" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
|
SELECT "year" FROM "season_by_season" WHERE "manager"='jesus alfaro' AND "finish"='6th';
|
2-13076944-1
|
Name the manager for playoffs of missed for 1999
|
CREATE TABLE "season_by_season" (
"year" text,
"record" text,
"finish" text,
"manager" text,
"playoffs" text
);
|
SELECT "manager" FROM "season_by_season" WHERE "playoffs"='missed' AND "year"='1999';
|
2-13076944-1
|
What was the average attendance when the record was 17-18?
|
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
|
SELECT AVG("attendance") FROM "game_log" WHERE "record"='17-18';
|
2-12206211-3
|
What was marlboro brm's lowest points by using brm p160b?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "entrant"='marlboro brm' AND "chassis"='brm p160b';
|
2-1226516-1
|
What is the total points in 1974?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT COUNT("points") FROM "complete_formula_one_world_championship_" WHERE "year"=1974;
|
2-1226516-1
|
Who has 0 points in 1974?
|
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 "points"=0 AND "year"=1974;
|
2-1226516-1
|
What is the lowest points of using mclaren m14a as chassis?
|
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
|
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='mclaren m14a';
|
2-1226516-1
|
Location of saint paul, and a Final-Score larger than 14.35, and a Event of all around is what sum of year?
|
CREATE TABLE "2006_season_junior_career" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" real,
"final_score" real
);
|
SELECT SUM("year") FROM "2006_season_junior_career" WHERE "location"='saint paul' AND "final_score">14.35 AND "event"='all around';
|
2-13114949-5
|
Competition of u.s championships, and a Event of all around has what average year?
|
CREATE TABLE "2006_season_junior_career" (
"year" real,
"competition" text,
"location" text,
"event" text,
"final_rank" real,
"final_score" real
);
|
SELECT AVG("year") FROM "2006_season_junior_career" WHERE "competition"='u.s championships' AND "event"='all around';
|
2-13114949-5
|
What film was in 1970?
|
CREATE TABLE "nominated" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
|
SELECT "film" FROM "nominated" WHERE "year"=1970;
|
2-1311275-2
|
Who wrote the lyrics for Mukti?
|
CREATE TABLE "nominated" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
|
SELECT "lyricist" FROM "nominated" WHERE "film"='mukti';
|
2-1311275-2
|
What song was directed by Shankar Jaikishan?
|
CREATE TABLE "nominated" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
|
SELECT "song" FROM "nominated" WHERE "music_director_s"='shankar jaikishan';
|
2-1311275-2
|
What song was written after 1976 and directed by Rahul Dev Burman?
|
CREATE TABLE "nominated" (
"year" real,
"song" text,
"film" text,
"music_director_s" text,
"lyricist" text
);
|
SELECT "song" FROM "nominated" WHERE "year">1976 AND "music_director_s"='rahul dev burman';
|
2-1311275-2
|
What is the population for the place with a Former Name of bluie west-1?
|
CREATE TABLE "settlements_with_population_between_100_" (
"rank" real,
"population" real,
"name" text,
"former_name" text,
"municipality" text
);
|
SELECT MIN("population") FROM "settlements_with_population_between_100_" WHERE "former_name"='bluie west-1';
|
2-1278594-3
|
What car does Scott Deware own that has rounds under 12?
|
CREATE TABLE "part_time_teams" (
"team" text,
"car_s" text,
"driver_s" text,
"primary_sponsor_s" text,
"owner_s" text,
"crew_chief" text,
"rounds" real
);
|
SELECT "car_s" FROM "part_time_teams" WHERE "rounds"<12 AND "owner_s"='scott deware';
|
2-1266602-4
|
Which City or town has a Top division titles of 17
|
CREATE TABLE "clubs" (
"club" text,
"city_or_town" text,
"position_in_2012_13_season" text,
"first_season_in_top_division" text,
"number_of_seasons_in_top_division" real,
"first_season_of_current_spell_in_top_division" text,
"top_division_titles" text,
"last_top_division_title" text
);
|
SELECT "city_or_town" FROM "clubs" WHERE "top_division_titles"='17';
|
2-1303104-1
|
Which City or town has top division smaller than 40 and Gaziantepspor Club ?
|
CREATE TABLE "clubs" (
"club" text,
"city_or_town" text,
"position_in_2012_13_season" text,
"first_season_in_top_division" text,
"number_of_seasons_in_top_division" real,
"first_season_of_current_spell_in_top_division" text,
"top_division_titles" text,
"last_top_division_title" text
);
|
SELECT "city_or_town" FROM "clubs" WHERE "number_of_seasons_in_top_division"<40 AND "club"='gaziantepspor';
|
2-1303104-1
|
What is the 2003 value with 2r in 2008 and 1r in 2011?
|
CREATE TABLE "doubles" (
"tournament" text,
"2003" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text
);
|
SELECT "2003" FROM "doubles" WHERE "2008"='2r' AND "2011"='1r';
|
2-12486018-5
|
What is the 2007 value with 2r in 2011 and 2r in 2008?
|
CREATE TABLE "doubles" (
"tournament" text,
"2003" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text
);
|
SELECT "2007" FROM "doubles" WHERE "2011"='2r' AND "2008"='2r';
|
2-12486018-5
|
What is the 2007 value with 1r in 2009 and 2r in 2011 at the Tournament of Wimbledon?
|
CREATE TABLE "doubles" (
"tournament" text,
"2003" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text
);
|
SELECT "2007" FROM "doubles" WHERE "2009"='1r' AND "2011"='2r' AND "tournament"='wimbledon';
|
2-12486018-5
|
What is the 2003 value with 1r in 2009 at the Australian Open?
|
CREATE TABLE "doubles" (
"tournament" text,
"2003" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text
);
|
SELECT "2003" FROM "doubles" WHERE "2009"='1r' AND "tournament"='australian open';
|
2-12486018-5
|
How many wins did they have at Richmond Cricket Ground Stadium?
|
CREATE TABLE "home_grounds" (
"stadium" text,
"years" text,
"played" real,
"wins" real,
"losses" real,
"draw" text,
"win_percentage" text
);
|
SELECT "wins" FROM "home_grounds" WHERE "stadium"='richmond cricket ground';
|
2-12941233-13
|
How many games did they play in 1905?
|
CREATE TABLE "home_grounds" (
"stadium" text,
"years" text,
"played" real,
"wins" real,
"losses" real,
"draw" text,
"win_percentage" text
);
|
SELECT AVG("played") FROM "home_grounds" WHERE "years"='1905';
|
2-12941233-13
|
Which term in office has a qld state, a Party of labor, and an Electorate of fisher?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "term_in_office" FROM "see_also" WHERE "state"='qld' AND "party"='labor' AND "electorate"='fisher';
|
2-1237918-1
|
Which member has an Electorate of kennedy?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "member" FROM "see_also" WHERE "electorate"='kennedy';
|
2-1237918-1
|
Which Party has a Member of david jull?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "party" FROM "see_also" WHERE "member"='david jull';
|
2-1237918-1
|
Which term in office has an Electorate of hinkler?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "term_in_office" FROM "see_also" WHERE "electorate"='hinkler';
|
2-1237918-1
|
Which Electorate has a State of qld, a Party of national, and a Member of hon evan adermann?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "electorate" FROM "see_also" WHERE "state"='qld' AND "party"='national' AND "member"='hon evan adermann';
|
2-1237918-1
|
Which state has a Term in office of 1984–1996, a Party of labor, and a Member of robert tickner?
|
CREATE TABLE "see_also" (
"member" text,
"party" text,
"electorate" text,
"state" text,
"term_in_office" text
);
|
SELECT "state" FROM "see_also" WHERE "term_in_office"='1984–1996' AND "party"='labor' AND "member"='robert tickner';
|
2-1237918-1
|
What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?
|
CREATE TABLE "waipa_district" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
|
SELECT SUM("decile") FROM "waipa_district" WHERE "authority"='state' AND "name"='pokuru school' AND "roll"<109;
|
2-12146269-6
|
Name the most laps for corvette racing in 2004
|
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
|
SELECT MAX("laps") FROM "24_hours_of_le_mans_results" WHERE "team"='corvette racing' AND "year"=2004;
|
2-1235891-4
|
Name the class for 4th position with year before 2006
|
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
|
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "pos"='4th' AND "year"<2006;
|
2-1235891-4
|
Name the total number of laps for 23rd position
|
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
|
SELECT COUNT("laps") FROM "24_hours_of_le_mans_results" WHERE "pos"='23rd';
|
2-1235891-4
|
Name the team with laps less than 315 and co-drivers of david brabham franck lagorce?
|
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"team" text,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
|
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "laps"<315 AND "co_drivers"='david brabham franck lagorce';
|
2-1235891-4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.