question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which series is based in Toronto on may 18? | CREATE TABLE "western_conference_final_vs_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
); | SELECT "series" FROM "western_conference_final_vs_3" WHERE "home"='toronto' AND "date"='may 18'; | 2-11110963-4 |
What is the combined crowd in Vancouver on may 22? | CREATE TABLE "western_conference_final_vs_3" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"series" text
); | SELECT SUM("attendance") FROM "western_conference_final_vs_3" WHERE "home"='vancouver' AND "date"='may 22'; | 2-11110963-4 |
Tell me the 2012 when 2005 is 314 | CREATE TABLE "qs_world_university_rankings_university_" (
"2005" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
); | SELECT "2012" FROM "qs_world_university_rankings_university_" WHERE "2005"='314'; | 2-1098410-1 |
What position does the player with 13 caps play? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "caps"=13; | 2-11783766-5 |
How many caps for mike macdonald? | CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
); | SELECT SUM("caps") FROM "2007_rugby_world_cup_squads" WHERE "player"='mike macdonald'; | 2-11783766-5 |
Tell me the position for round less than 3 | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "position" FROM "draft_picks" WHERE "round"<3; | 2-11772511-15 |
Name the nationality for d | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "nationality" FROM "draft_picks" WHERE "position"='d'; | 2-11772511-15 |
What sort of Fuel/Trans does the Grey & Red locomotive have? | CREATE TABLE "diesel_locomotives" (
"name" text,
"built" text,
"wheels" text,
"fuel_trans" text,
"status" text,
"colour" text
); | SELECT "fuel_trans" FROM "diesel_locomotives" WHERE "colour"='grey & red'; | 2-1158066-2 |
What is the status of the Cub/John locomotive? | CREATE TABLE "diesel_locomotives" (
"name" text,
"built" text,
"wheels" text,
"fuel_trans" text,
"status" text,
"colour" text
); | SELECT "status" FROM "diesel_locomotives" WHERE "name"='the cub/john'; | 2-1158066-2 |
What is the manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric? | CREATE TABLE "diesel_locomotives" (
"name" text,
"built" text,
"wheels" text,
"fuel_trans" text,
"status" text,
"colour" text
); | SELECT "built" FROM "diesel_locomotives" WHERE "fuel_trans"='diesel-electric'; | 2-1158066-2 |
What is found in the Built column of the locomotive with 0-4-0 wheels that is still in service? | CREATE TABLE "diesel_locomotives" (
"name" text,
"built" text,
"wheels" text,
"fuel_trans" text,
"status" text,
"colour" text
); | SELECT "built" FROM "diesel_locomotives" WHERE "wheels"='0-4-0' AND "status"='in service'; | 2-1158066-2 |
What is the color of the locomotive built by Minirail 1954? | CREATE TABLE "diesel_locomotives" (
"name" text,
"built" text,
"wheels" text,
"fuel_trans" text,
"status" text,
"colour" text
); | SELECT "colour" FROM "diesel_locomotives" WHERE "built"='minirail 1954'; | 2-1158066-2 |
What's the total number of rounds with a win result at the sf 5: stadium event? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='sf 5: stadium'; | 2-11630690-2 |
What location was fábio maldonado the opponent at? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='fábio maldonado'; | 2-11630690-2 |
How many skaters have a Rank in FS of 3, and a Rank in SP larger than 4? | CREATE TABLE "program_details" (
"final_rank" real,
"skater" text,
"rank_in_sp" real,
"rank_in_fs" real,
"total_score" text
); | SELECT COUNT("final_rank") FROM "program_details" WHERE "rank_in_fs"=3 AND "rank_in_sp">4; | 2-1158735-9 |
What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5? | CREATE TABLE "program_details" (
"final_rank" real,
"skater" text,
"rank_in_sp" real,
"rank_in_fs" real,
"total_score" text
); | SELECT AVG("rank_in_sp") FROM "program_details" WHERE "rank_in_fs">2 AND "final_rank">5; | 2-1158735-9 |
What tournament is listed as A in 1972 and 2R in 1975? | CREATE TABLE "grand_slam_success" (
"tournament" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text,
"1979" text,
"career_sr" text,
"career_w_l" text,
"career_win_pct" text
); | SELECT "tournament" FROM "grand_slam_success" WHERE "1972"='a' AND "1975"='2r'; | 2-11479089-3 |
What is theW-L of the tournament listed as A for 1976? | CREATE TABLE "grand_slam_success" (
"tournament" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text,
"1979" text,
"career_sr" text,
"career_w_l" text,
"career_win_pct" text
); | SELECT "career_w_l" FROM "grand_slam_success" WHERE "1976"='a'; | 2-11479089-3 |
What is the listing for the US Open in 1977? | CREATE TABLE "grand_slam_success" (
"tournament" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text,
"1979" text,
"career_sr" text,
"career_w_l" text,
"career_win_pct" text
); | SELECT "1977" FROM "grand_slam_success" WHERE "tournament"='us open'; | 2-11479089-3 |
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974? | CREATE TABLE "grand_slam_success" (
"tournament" text,
"1968" text,
"1969" text,
"1970" text,
"1971" text,
"1972" text,
"1973" text,
"1974" text,
"1975" text,
"1976" text,
"1977" text,
"1978" text,
"1979" text,
"career_sr" text,
"career_w_l" text,
"career_win_pct" text
); | SELECT "career_w_l" FROM "grand_slam_success" WHERE "1968"='a' AND "1974"='4r'; | 2-11479089-3 |
What is the combined consumption of 1.6 16v? | CREATE TABLE "engines" (
"name" text,
"code" text,
"capacity" text,
"type" text,
"power" text,
"torque" text,
"top_speed" text,
"combined_consumption" text
); | SELECT "combined_consumption" FROM "engines" WHERE "name"='1.6 16v'; | 2-1139122-1 |
What is the power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code? | CREATE TABLE "engines" (
"name" text,
"code" text,
"capacity" text,
"type" text,
"power" text,
"torque" text,
"top_speed" text,
"combined_consumption" text
); | SELECT "power" FROM "engines" WHERE "combined_consumption"='(gas/ethanol)' AND "code"='k7m hi-torque'; | 2-1139122-1 |
What is the combined consumption of the engine with the code k9k 796? | CREATE TABLE "engines" (
"name" text,
"code" text,
"capacity" text,
"type" text,
"power" text,
"torque" text,
"top_speed" text,
"combined_consumption" text
); | SELECT "combined_consumption" FROM "engines" WHERE "code"='k9k 796'; | 2-1139122-1 |
What is the torque of the engine with a type 16 valves dohc and a code k4m hi-flex? | CREATE TABLE "engines" (
"name" text,
"code" text,
"capacity" text,
"type" text,
"power" text,
"torque" text,
"top_speed" text,
"combined_consumption" text
); | SELECT "torque" FROM "engines" WHERE "type"='16 valves dohc' AND "code"='k4m hi-flex'; | 2-1139122-1 |
Who had the highest assists on the November 13 game? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
); | SELECT "high_assists" FROM "game_log" WHERE "date"='november 13'; | 2-11907963-3 |
What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7? | CREATE TABLE "singles_finals_16_9_7" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
); | SELECT MAX("date") FROM "singles_finals_16_9_7" WHERE "score_in_the_final"='1–6, 4–6, 5–7'; | 2-1171445-5 |
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface? | CREATE TABLE "singles_finals_16_9_7" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
); | SELECT "championship" FROM "singles_finals_16_9_7" WHERE "surface"='clay' AND "score_in_the_final"='6–2, 5–7, 6–4, 6–2'; | 2-1171445-5 |
What was the score in the final, that Víctor Pecci was the opponent and winner after 1984? | CREATE TABLE "singles_finals_16_9_7" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
); | SELECT "score_in_the_final" FROM "singles_finals_16_9_7" WHERE "date">1984 AND "outcome"='winner' AND "opponent_in_the_final"='víctor pecci'; | 2-1171445-5 |
Which championship had a score in the final of 3–6, 6–4, 5–7? | CREATE TABLE "singles_finals_16_9_7" (
"outcome" text,
"date" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
); | SELECT "championship" FROM "singles_finals_16_9_7" WHERE "score_in_the_final"='3–6, 6–4, 5–7'; | 2-1171445-5 |
What is the grid total when there are 37 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "classification" WHERE "laps"=37; | 2-1122411-1 |
What constructor has a grid less than 13 with under 9 laps? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "classification" WHERE "grid"<13 AND "laps"<9; | 2-1122411-1 |
What year was the Competition of World Junior Championships with a 20th (qf) position? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT AVG("year") FROM "competition_record" WHERE "competition"='world junior championships' AND "position"='20th (qf)'; | 2-11355945-1 |
What was the notes of the 400 m event before 2004 with a position of 12th (h)? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT "notes" FROM "competition_record" WHERE "event"='400 m' AND "year"<2004 AND "position"='12th (h)'; | 2-11355945-1 |
Which venue had a note of 3:34.88 after 2003? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT "venue" FROM "competition_record" WHERE "year">2003 AND "notes"='3:34.88'; | 2-11355945-1 |
What were the notes of the All-Africa Games before 2007? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT "notes" FROM "competition_record" WHERE "competition"='all-africa games' AND "year"<2007; | 2-11355945-1 |
Which event in 2007 had a position of 5th? | CREATE TABLE "competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
); | SELECT "event" FROM "competition_record" WHERE "year"=2007 AND "position"='5th'; | 2-11355945-1 |
How many attended the game on 12/17 with stephen jackson as the leading scorer? | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT SUM("attendance") FROM "december" WHERE "leading_scorer"='stephen jackson' AND "date"='12/17'; | 2-11964379-5 |
WHAT WAS THE SCORE IN THE FINAL PLAYED AGAINST JOSE CHECA-CALVO IN THE SANT CUGAT TOURNAMENT ? | CREATE TABLE "singles_titles_92" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_titles_92" WHERE "tournament"='sant cugat' AND "opponent_in_the_final"='jose checa-calvo'; | 2-11070436-2 |
WHAT WAS THE SCORE IN THE FINAL AGAINST RABIE CHAKI? | CREATE TABLE "singles_titles_92" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
); | SELECT "score" FROM "singles_titles_92" WHERE "opponent_in_the_final"='rabie chaki'; | 2-11070436-2 |
What was the away team's score when Collingwood was the home team? | CREATE TABLE "round_9" (
"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_9" WHERE "home_team"='collingwood'; | 2-10783853-9 |
Who was the home team for the game played at Victoria Park? | CREATE TABLE "round_9" (
"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_9" WHERE "venue"='victoria park'; | 2-10783853-9 |
Who was the home team when Fitzroy was the away team? | CREATE TABLE "round_9" (
"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_9" WHERE "away_team"='fitzroy'; | 2-10783853-9 |
Who was the home team for the game played at Lake Oval? | CREATE TABLE "round_9" (
"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_9" WHERE "venue"='lake oval'; | 2-10783853-9 |
Who was the opponent in the championship in Johannesburg, South Africa? | CREATE TABLE "career_finals" (
"outcome" text,
"date" text,
"championship" text,
"opponent_in_the_final" text,
"score_in_the_final" text
); | SELECT "opponent_in_the_final" FROM "career_finals" WHERE "championship"='johannesburg, south africa'; | 2-10833727-1 |
What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has? | CREATE TABLE "managers_with_1_000_or_more_wins" (
"rank" real,
"name" text,
"wins" real,
"losses" real,
"pct" real
); | SELECT MIN("wins") FROM "managers_with_1_000_or_more_wins" WHERE "pct">0.526 AND "rank"<37 AND "losses"=947; | 2-12016454-2 |
I want the total number of people in the crowd for essendon home team | CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT COUNT("crowd") FROM "round_14" WHERE "home_team"='essendon'; | 2-10824095-14 |
How many grids have 102 laps and a Time/Retired of + 6.18? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT COUNT("grid") FROM "classification" WHERE "laps">102 AND "time_retired"='+ 6.18'; | 2-1122319-1 |
How many laps did innes ireland drive with a grid higher than 11? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("laps") FROM "classification" WHERE "driver"='innes ireland' AND "grid">11; | 2-1122319-1 |
What is the average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "classification" WHERE "constructor"='brm' AND "driver"='tony maggs' AND "laps">102; | 2-1122319-1 |
I want the score for 23 july 1992 | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "international_goals" WHERE "date"='23 july 1992'; | 2-1114137-1 |
I want the venue for 23 july 1992 | CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
); | SELECT "venue" FROM "international_goals" WHERE "date"='23 july 1992'; | 2-1114137-1 |
What is the Time/Retired that has a Grid smaller than 8, 73 laps, and a Constructor of williams - bmw? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "grid"<8 AND "laps"=73 AND "constructor"='williams - bmw'; | 2-1123489-2 |
Which away team has a home team score of 12.10 (82)? | CREATE TABLE "round_13" (
"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_13" WHERE "home_team_score"='12.10 (82)'; | 2-10808933-13 |
On what date was Richmond playing as an away team? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_13" WHERE "away_team"='richmond'; | 2-10808933-13 |
What is the crowd size for Victoria park? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "crowd" FROM "round_5" WHERE "venue"='victoria park'; | 2-10826072-5 |
What is the average crowd size for princes park? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_5" WHERE "venue"='princes park'; | 2-10826072-5 |
What is the home team score when the away team score is 17.18 (120)? | CREATE TABLE "round_5" (
"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_5" WHERE "away_team_score"='17.18 (120)'; | 2-10826072-5 |
When the home team scored 12.21 (93), what was the average crowd size? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_5" WHERE "home_team_score"='12.21 (93)'; | 2-10826072-5 |
Name the transfer wind for giuly | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "out" WHERE "name"='giuly'; | 2-11891841-3 |
Name the transfer fee for transfer status for fra | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_fee" FROM "out" WHERE "status"='transfer' AND "country"='fra'; | 2-11891841-3 |
Name the status for belletti | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "status" FROM "out" WHERE "name"='belletti'; | 2-11891841-3 |
Name the moving to for fra | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "moving_to" FROM "out" WHERE "country"='fra'; | 2-11891841-3 |
Name the transfer window of realmadrid | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "out" WHERE "moving_to"='realmadrid'; | 2-11891841-3 |
Name the country moving to chelsea | CREATE TABLE "out" (
"name" text,
"country" text,
"status" text,
"moving_to" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "country" FROM "out" WHERE "moving_to"='chelsea'; | 2-11891841-3 |
Who was the leading scorer of the game on 20 February 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "leading_scorer" FROM "february" WHERE "date"='20 february 2008'; | 2-11963447-7 |
What is the visitor team of the game with Rudy Gay (23) as the leading scorer? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "visitor" FROM "february" WHERE "leading_scorer"='rudy gay (23)'; | 2-11963447-7 |
What is the home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "home" FROM "february" WHERE "visitor"='grizzlies' AND "leading_scorer"='rudy gay (21)'; | 2-11963447-7 |
What is the record of the game on 5 February 2008? | CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "record" FROM "february" WHERE "date"='5 february 2008'; | 2-11963447-7 |
tell me the writer of production code ad1d09. | CREATE TABLE "season_4" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "written_by" FROM "season_4" WHERE "production_code"='ad1d09'; | 2-1137274-4 |
tell me the director of the production code ad1d02. | CREATE TABLE "season_4" (
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
); | SELECT "directed_by" FROM "season_4" WHERE "production_code"='ad1d02'; | 2-1137274-4 |
Which team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby? | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT "team_league" FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp"=0 AND "pick_num"<136 AND "player"='regan darby'; | 2-11636955-30 |
What planet orbits in 3.23 days? | CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" real,
"orbital_period" text,
"radial_velocity_m_s" real,
"detectable_by" text
); | SELECT "planet" FROM "planets" WHERE "orbital_period"='3.23 days'; | 2-10932739-2 |
What type of planet has a radial velocity of 45.2 m/s? | CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" real,
"orbital_period" text,
"radial_velocity_m_s" real,
"detectable_by" text
); | SELECT "planet_type" FROM "planets" WHERE "radial_velocity_m_s">45.2; | 2-10932739-2 |
What type of planet has a semimajor axis of 0.07 AU? | CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" real,
"orbital_period" text,
"radial_velocity_m_s" real,
"detectable_by" text
); | SELECT "planet_type" FROM "planets" WHERE "semimajor_axis_au"=0.07; | 2-10932739-2 |
How can Planet, 51 pegasi b be detected? | CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" real,
"orbital_period" text,
"radial_velocity_m_s" real,
"detectable_by" text
); | SELECT "detectable_by" FROM "planets" WHERE "planet"='51 pegasi b'; | 2-10932739-2 |
What is the city where the Telstra Dome is? | CREATE TABLE "venues" (
"stadium" text,
"games" real,
"city" text,
"state" text,
"capacity" real,
"best_crowd" text
); | SELECT "city" FROM "venues" WHERE "stadium"='telstra dome'; | 2-11942082-10 |
Name the D 41 which has a D 46 of r 6 | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "d_41" FROM "before_the_elections" WHERE "d_46"='r 6'; | 2-1104268-1 |
Name the D 41 which has a D 43 of r 18 | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "d_41" FROM "before_the_elections" WHERE "d_43"='r 18'; | 2-1104268-1 |
Name the R 52 which has a D 44 of d 44 | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "r_52" FROM "before_the_elections" WHERE "d_44"='d 44'; | 2-1104268-1 |
Name the D 46 which has a D 43 of majority→ | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "d_46" FROM "before_the_elections" WHERE "d_43"='majority→'; | 2-1104268-1 |
Name the D 42 which has a D 46 of r 26 | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "d_42" FROM "before_the_elections" WHERE "d_46"='r 26'; | 2-1104268-1 |
Name the D 42 which has a D 44 of d 44 | CREATE TABLE "before_the_elections" (
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"r_54" text,
"r_53" text,
"r_52" text,
"r_51" text
); | SELECT "d_42" FROM "before_the_elections" WHERE "d_44"='d 44'; | 2-1104268-1 |
How many wins did SD Eibar, which played less than 38 games, have? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("wins") FROM "final_table" WHERE "club"='sd eibar' AND "played"<38; | 2-12090729-2 |
What is the highest number of draws a club with less than 20 wins, less than 41 points, and less than 27 goals have? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MAX("draws") FROM "final_table" WHERE "wins"<20 AND "points"<41 AND "goals_for"<27; | 2-12090729-2 |
What is the lowest goal difference a club with more than 13 wins, less than 8 losses, and less than 11 draws has? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("goal_difference") FROM "final_table" WHERE "wins">13 AND "losses"<8 AND "draws"<11; | 2-12090729-2 |
What is the number of played games a club with more than 71 points and less than 8 losses has? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT SUM("played") FROM "final_table" WHERE "points">71 AND "losses"<8; | 2-12090729-2 |
What is the lowest goal difference a club with 61 goals against and less than 11 draws has? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" real,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MIN("goal_difference") FROM "final_table" WHERE "goals_against"=61 AND "draws"<11; | 2-12090729-2 |
Which Crowd has a Venue of princes park? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_13" WHERE "venue"='princes park'; | 2-10809823-13 |
Which Date has an Away team score of 16.13 (109)? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_13" WHERE "away_team_score"='16.13 (109)'; | 2-10809823-13 |
Which Away team has a Venue of mcg? | CREATE TABLE "round_13" (
"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_13" WHERE "venue"='mcg'; | 2-10809823-13 |
Which average Crowd has a Home team of essendon? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_13" WHERE "home_team"='essendon'; | 2-10809823-13 |
When was terry cook picked? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT AVG("pick") FROM "nfl_draft" WHERE "player"='terry cook'; | 2-11468831-1 |
What position is todd hammel? | CREATE TABLE "nfl_draft" (
"pick" real,
"round" text,
"player" text,
"position" text,
"school" text
); | SELECT "position" FROM "nfl_draft" WHERE "player"='todd hammel'; | 2-11468831-1 |
What is the score of the away team that played Essendon? | CREATE TABLE "round_14" (
"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_14" WHERE "home_team"='essendon'; | 2-10869537-14 |
How many people attended the North Melbourne game? | CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_14" WHERE "home_team"='north melbourne'; | 2-10869537-14 |
Where did Carlton play? | CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_14" WHERE "away_team"='carlton'; | 2-10869537-14 |
Which team played at VFL Park? | CREATE TABLE "round_14" (
"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_14" WHERE "venue"='vfl park'; | 2-10869537-14 |
Which player has a College of arizona? | CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "player" FROM "2007_boys_team" WHERE "college"='arizona'; | 2-11677760-18 |
Which school has a Hometown of phoenix, az? | CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "school" FROM "2007_boys_team" WHERE "hometown"='phoenix, az'; | 2-11677760-18 |
Which NBA draft has a School of huntington high school? | CREATE TABLE "2007_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
); | SELECT "nba_draft" FROM "2007_boys_team" WHERE "school"='huntington high school'; | 2-11677760-18 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.