question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
I want the driver for Laps more than 8 and ferrari with Grid of 8
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "laps">8 AND "constructor"='ferrari' AND "grid"=8;
2-1123180-2
Which title has the Translation of vesoul?
CREATE TABLE "track_listing" ( "track" real, "title" text, "translation" text, "composer" text, "recorded" text );
SELECT "title" FROM "track_listing" WHERE "translation"='vesoul';
2-1190471-1
What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?
CREATE TABLE "1990s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );
SELECT "original_title" FROM "1990s" WHERE "year"='1996 (11th)' AND "winner_and_nominees"='breaking the waves';
2-11365848-1
What is the original title for the winner and nominees 'Secrets & Lies'?
CREATE TABLE "1990s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );
SELECT "original_title" FROM "1990s" WHERE "winner_and_nominees"='secrets & lies';
2-11365848-1
The winner and nominee 'Hidden Agenda' is from which country?
CREATE TABLE "1990s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );
SELECT "country" FROM "1990s" WHERE "winner_and_nominees"='hidden agenda';
2-11365848-1
What is the total amount of freight produced of u28c?
CREATE TABLE "general_electric" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text );
SELECT "total_produced" FROM "general_electric" WHERE "service"='freight' AND "builder_s_model"='u28c';
2-1140522-3
What is the build date for PRR Class gf30a?
CREATE TABLE "general_electric" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text );
SELECT "build_date" FROM "general_electric" WHERE "prr_class"='gf30a';
2-1140522-3
What is the PRR class for wheel arrangement c-c and total less than 15?
CREATE TABLE "general_electric" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text );
SELECT "prr_class" FROM "general_electric" WHERE "wheel_arrangement"='c-c' AND "total_produced"<15;
2-1140522-3
What was the model for PRR class of gf28a freight?
CREATE TABLE "general_electric" ( "prr_class" text, "builder_s_model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "service" text, "power_output" text );
SELECT "builder_s_model" FROM "general_electric" WHERE "service"='freight' AND "prr_class"='gf28a';
2-1140522-3
Who got 189,524 votes?
CREATE TABLE "1961" ( "1961_democratic_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real );
SELECT "queens" FROM "1961" WHERE "manhattan"='189,524';
2-1108394-32
Which owner has the frequency of 103.3 FM?
CREATE TABLE "fm" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text );
SELECT "owner" FROM "fm" WHERE "frequency"='103.3 fm';
2-11527967-3
What is the call sign of the Classic Country Music station?
CREATE TABLE "fm" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text );
SELECT "call_sign" FROM "fm" WHERE "format"='classic country';
2-11527967-3
Which owner has the call sign of KDSU?
CREATE TABLE "fm" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text );
SELECT "name" FROM "fm" WHERE "call_sign"='kdsu';
2-11527967-3
What is the call sign for Thunder 106.1?
CREATE TABLE "fm" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text );
SELECT "call_sign" FROM "fm" WHERE "name"='thunder 106.1';
2-11527967-3
Which owner has a Contemporary Christian music station on 97.9 FM?
CREATE TABLE "fm" ( "frequency" text, "call_sign" text, "name" text, "format" text, "owner" text );
SELECT "name" FROM "fm" WHERE "format"='contemporary christian music' AND "frequency"='97.9 fm';
2-11527967-3
Who was the leading scorer in the game where the visiting team was the Pistons?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "leading_scorer" FROM "january" WHERE "visitor"='pistons';
2-11963601-6
How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT MIN("attendance") FROM "january" WHERE "leading_scorer"='tim duncan (24)' AND "home"='spurs';
2-11963601-6
What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "time_retired"='water leak' AND "grid">12;
2-1123412-2
What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "time_retired"='spun off' AND "driver"='nick heidfeld';
2-1123412-2
What is the sum grid number when the driver was Luciano Burti?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "race" WHERE "driver"='luciano burti';
2-1123412-2
Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "race" WHERE "laps">3 AND "driver"='jarno trulli';
2-1123412-2
Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordinary_income_tax_rate" text, "single" text, "married_filing_jointly_or_qualified_widow_er" text, "married_filing_separately" text, "head_of_household" text );
SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_jointly_or_qualified_widow_er"='$137,051–$208,850';
2-11647327-2
Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordinary_income_tax_rate" text, "single" text, "married_filing_jointly_or_qualified_widow_er" text, "married_filing_separately" text, "head_of_household" text );
SELECT "married_filing_jointly_or_qualified_widow_er" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
2-11647327-2
Name the married filing separately for single of $0–$8,350
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordinary_income_tax_rate" text, "single" text, "married_filing_jointly_or_qualified_widow_er" text, "married_filing_separately" text, "head_of_household" text );
SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$0–$8,350';
2-11647327-2
Name the head of household that has married filing separately of $104,426–$186,475
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordinary_income_tax_rate" text, "single" text, "married_filing_jointly_or_qualified_widow_er" text, "married_filing_separately" text, "head_of_household" text );
SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_separately"='$104,426–$186,475';
2-11647327-2
Name the marginal ordinary income tax rate that has a head of household of $372,951+
CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordinary_income_tax_rate" text, "single" text, "married_filing_jointly_or_qualified_widow_er" text, "married_filing_separately" text, "head_of_household" text );
SELECT "marginal_ordinary_income_tax_rate" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$372,951+';
2-11647327-2
What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7?
CREATE TABLE "40_point_games" ( "number" real, "opponent" text, "box_score" text, "points" real, "fgm_fga" text, "3_pm_3_pa" text, "ftm_fta" text, "assists" real, "rebounds" real, "steals" real, "blocks" real );
SELECT AVG("points") FROM "40_point_games" WHERE "fgm_fga"='11-28' AND "number"<7;
2-11012104-8
What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?
CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_ft" text, "floors" real, "year" real );
SELECT MIN("floors") FROM "tallest_buildings" WHERE "name"='dubai marriott harbour hotel & suites';
2-12002458-1
What is the name of the building housing more than 101 floors, that was built after 2006?
CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_m_ft" text, "floors" real, "year" real );
SELECT "name" FROM "tallest_buildings" WHERE "year">2006 AND "floors">101;
2-12002458-1
Which team played against the away team that scored 5.5 (35)?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_15" WHERE "away_team_score"='5.5 (35)';
2-10823950-15
What was the crowd size on 4 july 1981, and a Away team of essendon?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_15" WHERE "date"='4 july 1981' AND "away_team"='essendon';
2-10823950-15
When did essendon play away?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_15" WHERE "away_team"='essendon';
2-10823950-15
Which category won the Sundance Film Festival award in 1998?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "film_or_series" text, "result" text );
SELECT "category" FROM "awards_and_nominations" WHERE "result"='won' AND "year"=1998 AND "award"='sundance film festival';
2-1190935-2
Which award category was the film series The Wire nominated for after 2005?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "film_or_series" text, "result" text );
SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "film_or_series"='the wire' AND "year">2005;
2-1190935-2
What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?
CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "film_or_series" text, "result" text );
SELECT "result" FROM "awards_and_nominations" WHERE "category"='outstanding supporting actress in a drama series' AND "year"=2009;
2-1190935-2
When the home team scored 11.13 (79), what away team were they playing?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_2" WHERE "home_team_score"='11.13 (79)';
2-10788451-2
When st kilda played as the away team, what date was that?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_2" WHERE "away_team"='st kilda';
2-10788451-2
What was the crowd total on the day the home team scored 12.12 (84)?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_2" WHERE "home_team_score"='12.12 (84)';
2-10809444-2
On what date did Fitzroy play as the home team?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_2" WHERE "home_team"='fitzroy';
2-10809444-2
What date did the home team score 12.12 (84)?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_2" WHERE "home_team_score"='12.12 (84)';
2-10809444-2
How many points did the away team score in the game that the home team scored 14.25 (109)?
CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_2" WHERE "home_team_score"='14.25 (109)';
2-10809444-2
What is the sum of crowds that saw hawthorn at home?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_18" WHERE "home_team"='hawthorn';
2-10790651-18
What away side scores 10.17 (77)?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_18" WHERE "away_team_score"='10.17 (77)';
2-10790651-18
Who is the home side when the away side scores 10.17 (77)?
CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_18" WHERE "away_team_score"='10.17 (77)';
2-10790651-18
Name the antonio thomas for Hikaru Sato of tanaka (8:09)
CREATE TABLE "2010" ( "block_a" text, "antonio_thomas" text, "hikaru_sato" text, "hiroshi_yamato" text, "kaz_hayashi" text, "minoru" text, "super_crazy" text );
SELECT "antonio_thomas" FROM "2010" WHERE "hikaru_sato"='tanaka (8:09)';
2-11934531-11
Tell me the block A for antonio thomas of kondo (13:24)
CREATE TABLE "2010" ( "block_a" text, "antonio_thomas" text, "hikaru_sato" text, "hiroshi_yamato" text, "kaz_hayashi" text, "minoru" text, "super_crazy" text );
SELECT "block_a" FROM "2010" WHERE "antonio_thomas"='kondo (13:24)';
2-11934531-11
Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)
CREATE TABLE "2010" ( "block_a" text, "antonio_thomas" text, "hikaru_sato" text, "hiroshi_yamato" text, "kaz_hayashi" text, "minoru" text, "super_crazy" text );
SELECT "minoru" FROM "2010" WHERE "hikaru_sato"='x' AND "super_crazy"='yang (8:36)';
2-11934531-11
Atlanta was a visitor on December 8, what was their record?
CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "record" FROM "december" WHERE "visitor"='atlanta';
2-11772462-5
Tell me the team which has matches of 13
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT "team" FROM "managerial_statistics" WHERE "matches"=13;
2-1175663-1
Tell me the sum of win % for drawn being larger than 35
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT SUM("win_pct") FROM "managerial_statistics" WHERE "drawn">35;
2-1175663-1
Name the most win % for 13 drawn
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT MAX("win_pct") FROM "managerial_statistics" WHERE "drawn"=13;
2-1175663-1
Name the sum of drawn for 30 october 2006 and win % more than 43.2
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT SUM("drawn") FROM "managerial_statistics" WHERE "from"='30 october 2006' AND "win_pct">43.2;
2-1175663-1
Name the win % average from 22 april 2000 for drawn more than 1
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT AVG("win_pct") FROM "managerial_statistics" WHERE "from"='22 april 2000' AND "drawn">1;
2-1175663-1
Name the average lost for matches of 6
CREATE TABLE "managerial_statistics" ( "team" text, "nation" text, "from" text, "matches" real, "drawn" real, "lost" real, "win_pct" real );
SELECT AVG("lost") FROM "managerial_statistics" WHERE "matches"=6;
2-1175663-1
What was the time recorded for grid 18?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "race" WHERE "grid"=18;
2-1123419-2
What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT "catalogue" FROM "disc_two" WHERE "track"<16 AND "recorded"='2/3/56' AND "song_title"='lawdy miss clawdy';
2-11551042-3
What is the highest track for the song Rip it Up?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT MAX("track") FROM "disc_two" WHERE "song_title"='rip it up';
2-11551042-3
What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT SUM("track") FROM "disc_two" WHERE "catalogue"='epa 4054' AND "time"='2:05';
2-11551042-3
What catalogue has a length of 2:10?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT "catalogue" FROM "disc_two" WHERE "time"='2:10';
2-11551042-3
When was the release date of a track greater than 4, 1/12/57 recorded, and a length of 2:31?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT "release_date" FROM "disc_two" WHERE "track">4 AND "recorded"='1/12/57' AND "time"='2:31';
2-11551042-3
When was the cataglogue EPA 4054 released with a 1/12/57 recorded?
CREATE TABLE "disc_two" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "time" text );
SELECT "release_date" FROM "disc_two" WHERE "catalogue"='epa 4054' AND "recorded"='1/12/57';
2-11551042-3
Tell me the school with a height of 6-9
CREATE TABLE "2002_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2002_boys_team" WHERE "height"='6-9';
2-11677760-12
Which school did the player have a height of 6-4?
CREATE TABLE "2002_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2002_boys_team" WHERE "height"='6-4';
2-11677760-12
Tell me the college that paul davis went to
CREATE TABLE "2002_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "college" FROM "2002_boys_team" WHERE "player"='paul davis';
2-11677760-12
Tell me the school that jason fraser went to
CREATE TABLE "2002_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "2002_boys_team" WHERE "player"='jason fraser';
2-11677760-12
What is the result of the game with 68,436 attending?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='68,436';
2-11280995-1
What is the NBA Draft status of the person who went to college at LSU?
CREATE TABLE "1988_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "nba_draft" FROM "1988_boys_team" WHERE "college"='lsu';
2-11677760-10
What is Player Kenny Williams' Height?
CREATE TABLE "1988_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "height" FROM "1988_boys_team" WHERE "player"='kenny williams';
2-11677760-10
What School did Player Billy Owens attend?
CREATE TABLE "1988_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "1988_boys_team" WHERE "player"='billy owens';
2-11677760-10
What School did Player Alonzo Mourning attend?
CREATE TABLE "1988_boys_team" ( "player" text, "height" text, "school" text, "hometown" text, "college" text, "nba_draft" text );
SELECT "school" FROM "1988_boys_team" WHERE "player"='alonzo mourning';
2-11677760-10
How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?
CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medals_table" WHERE "total">1 AND "gold"<2 AND "rank"=2;
2-11312764-2
How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?
CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("silver") FROM "medals_table" WHERE "total"<3 AND "rank"=6 AND "bronze">1;
2-11312764-2
What is the date of the Cubs game when the Cubs had a record of 1-0?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='1-0';
2-11800675-2
Who did the Cubs play when they had a record of 4-4?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "record"='4-4';
2-11800675-2
What is the frequency of WMAD?
CREATE TABLE "aor_radio_stations" ( "call_letters" text, "market" text, "frequency" text, "aor_years" text, "current_format" text );
SELECT "frequency" FROM "aor_radio_stations" WHERE "call_letters"='wmad';
2-1127557-1
Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "ifop_5_11_09" FROM "polling" WHERE "opinion_way_5_11_09"='2%' AND "ipsos_3_14_09"='2%';
2-11728067-2
Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "ifop_4_24_09" FROM "polling" WHERE "opinion_way_4_17_09"='5%' AND "party"='left front';
2-11728067-2
Name the lfop for 5/11/09 with lfop 1/9/09 of 5%
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "ifop_5_11_09" FROM "polling" WHERE "ifop_1_9_09"='5%';
2-11728067-2
Name the csa 4/16/09 for opinionway being 4/17/09 of 12%
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "csa_4_16_09" FROM "polling" WHERE "opinion_way_4_17_09"='12%';
2-11728067-2
Name the lpsos 3/14/09 for opinionway of 4/17/09 of 5% and lfof 11/12/08 of 7%
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "ipsos_3_14_09" FROM "polling" WHERE "ifop_11_12_08"='7%' AND "opinion_way_4_17_09"='5%';
2-11728067-2
Name the 2004 results for npa
CREATE TABLE "polling" ( "party" text, "results_2004" text, "ifop_11_12_08" text, "ifop_1_9_09" text, "ipsos_3_14_09" text, "csa_4_16_09" text, "opinion_way_4_17_09" text, "ifop_4_24_09" text, "ipsos_5_2_09" text, "ifop_5_11_09" text, "opinion_way_5_11_09" text );
SELECT "results_2004" FROM "polling" WHERE "party"='npa';
2-11728067-2
What was the decision when Tampa Bay was the visitor?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "decision" FROM "february" WHERE "visitor"='tampa bay';
2-11870934-7
Which visitor visited on February 21?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "record" text );
SELECT "visitor" FROM "february" WHERE "date"='february 21';
2-11870934-7
Which team has an away score of 9.10 (64)?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_6" WHERE "away_team_score"='9.10 (64)';
2-1204658-6
What date is the Victoria Park venue?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "date" FROM "round_6" WHERE "venue"='victoria park';
2-1204658-6
What Home team has an away score of 6.6 (42)?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team_score" FROM "round_6" WHERE "away_team_score"='6.6 (42)';
2-1204658-6
What home team has a score of 5.8 (38)?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "home_team" FROM "round_6" WHERE "home_team_score"='5.8 (38)';
2-1204658-6
What is the away team score of a Melbourne team that has a home team score of 12.7 (79)?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team_score" FROM "round_6" WHERE "home_team_score"='12.7 (79)' AND "away_team"='melbourne';
2-1204658-6
What Away team is from Fitzroy?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text );
SELECT "away_team" FROM "round_6" WHERE "home_team"='fitzroy';
2-1204658-6
Who was the home team that played the Lakers?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "home" FROM "march" WHERE "visitor"='lakers';
2-11963209-8
What is the low money with 374,164$ of debt and receipts larger than 3,898,226 without loans?
CREATE TABLE "democrats" ( "candidate" text, "total_receipts" real, "loans_received" real, "receipts_w_o_loans" real, "money_spent" real, "cash_on_hand" real, "total_debt" text, "cash_on_hand_minus_debt" real );
SELECT MIN("money_spent") FROM "democrats" WHERE "total_debt"='374,164' AND "receipts_w_o_loans">'3,898,226';
2-12030247-4
Which tournament had a 2008 result of 1R?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2006"='a' AND "2008"='1r';
2-11801126-6
Which tournament in 2012 had a 2007 and 2011 finishes of "A"?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2012" FROM "doubles_performance_timeline" WHERE "2007"='a' AND "2011"='a';
2-11801126-6
Which tournament in 2013 had a 2010 finish of 1R?
CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text );
SELECT "2013" FROM "doubles_performance_timeline" WHERE "2006"='a' AND "2010"='1r';
2-11801126-6
Which home team score has an Away team of melbourne?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_15" WHERE "away_team"='melbourne';
2-10808089-15
What is the highest crowd for Home team of geelong?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_15" WHERE "home_team"='geelong';
2-10808089-15
Which crowd has an Away team score of 16.9 (105)?
CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "crowd" FROM "round_15" WHERE "away_team_score"='16.9 (105)';
2-10808089-15
What is the year when the performance is 60.73m and the age (years) is more than 45?
CREATE TABLE "new_zealand_track_field_championships" ( "year" real, "place" text, "event" text, "performance" text, "age_years" real );
SELECT COUNT("year") FROM "new_zealand_track_field_championships" WHERE "performance"='60.73m' AND "age_years">45;
2-1109963-3
What is the highest age (years) that the 1st place had a performance of 62.20m?
CREATE TABLE "new_zealand_track_field_championships" ( "year" real, "place" text, "event" text, "performance" text, "age_years" real );
SELECT MAX("age_years") FROM "new_zealand_track_field_championships" WHERE "place"='1st' AND "performance"='62.20m';
2-1109963-3
What is the place when the performance is 60.73m?
CREATE TABLE "new_zealand_track_field_championships" ( "year" real, "place" text, "event" text, "performance" text, "age_years" real );
SELECT "place" FROM "new_zealand_track_field_championships" WHERE "performance"='60.73m';
2-1109963-3