question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which Attendance has an Opponent of perth glory, and a Round of 9? | CREATE TABLE "attendance_at_home_games" (
"round" text,
"date" text,
"opponent" text,
"score_aufc_away" text,
"attendance" real,
"weekday" text
); | SELECT MIN("attendance") FROM "attendance_at_home_games" WHERE "opponent"='perth glory' AND "round"='9'; | 2-18484319-12 |
What is the lowest rank of rider darren gilpin? | CREATE TABLE "race_1_newcomers_race_c" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT MIN("rank") FROM "race_1_newcomers_race_c" WHERE "rider"='darren gilpin'; | 2-18649514-3 |
What is the highest rank of rider colin martin? | CREATE TABLE "race_1_newcomers_race_c" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT MAX("rank") FROM "race_1_newcomers_race_c" WHERE "rider"='colin martin'; | 2-18649514-3 |
What is shown on Tuesday when Monday is showing Fox Sports Primetime? | CREATE TABLE "current_regular_national_weekly_schedule" (
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text
); | SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "monday"='fox sports primetime'; | 2-1891648-1 |
What is shown on Friday when Tuesday is Jay Mohr Sports? | CREATE TABLE "current_regular_national_weekly_schedule" (
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text
); | SELECT "friday" FROM "current_regular_national_weekly_schedule" WHERE "tuesday"='jay mohr sports'; | 2-1891648-1 |
What is shown on Friday when Monday is Fox Sports Primetime? | CREATE TABLE "current_regular_national_weekly_schedule" (
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text
); | SELECT "friday" FROM "current_regular_national_weekly_schedule" WHERE "monday"='fox sports primetime'; | 2-1891648-1 |
What is shown on Tuesday when Thursday shows Fox Sports Tonight (ends 1 am next day)? | CREATE TABLE "current_regular_national_weekly_schedule" (
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text
); | SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "thursday"='fox sports tonight (ends 1 am next day)'; | 2-1891648-1 |
What is shown on Tuesday when Wednesday is Fox Sports Tonight (ends 1 am next day)? | CREATE TABLE "current_regular_national_weekly_schedule" (
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text
); | SELECT "tuesday" FROM "current_regular_national_weekly_schedule" WHERE "wednesday"='fox sports tonight (ends 1 am next day)'; | 2-1891648-1 |
Which capacity has the class 4c3h? | CREATE TABLE "classic_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
); | SELECT "capacity" FROM "classic_competition" WHERE "class"='4c3h'; | 2-18394791-3 |
What is the navigator for James? | CREATE TABLE "classic_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
); | SELECT "navigator" FROM "classic_competition" WHERE "driver"='james'; | 2-18394791-3 |
How much time did Coad make when the margin was 04:02? | CREATE TABLE "classic_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
); | SELECT "total_time" FROM "classic_competition" WHERE "margin"='04:02' AND "driver"='coad'; | 2-18394791-3 |
What class has a capacity smaller than 3384 for Ferguson? | CREATE TABLE "classic_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
); | SELECT "class" FROM "classic_competition" WHERE "capacity"<3384 AND "navigator"='ferguson'; | 2-18394791-3 |
Which 1990 has a 2005 smaller than 5,361, and a 2007 smaller than 4,841, and a 2006 smaller than 618, and a 2004 smaller than 389? | CREATE TABLE "figures_of_the_sports_associations_in_th" (
"1985" text,
"1990" text,
"2004" real,
"2005" real,
"2006" real,
"2007" real
); | SELECT "1990" FROM "figures_of_the_sports_associations_in_th" WHERE "2005"<'5,361' AND "2007"<'4,841' AND "2006"<618 AND "2004"<389; | 2-18894903-1 |
What is the total number of places for a song with a draw of 21 and more than 36 points? | CREATE TABLE "results" (
"draw" real,
"language" text,
"artist" text,
"song" text,
"english_translation" text,
"place" real,
"points" real
); | SELECT COUNT("place") FROM "results" WHERE "draw"=21 AND "points">36; | 2-185193-1 |
What is the lowest numbered game against Phoenix with a record of 29-17? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT MIN("game") FROM "game_log" WHERE "opponent"='phoenix' AND "record"='29-17'; | 2-18409087-6 |
what is the soap opera when the duration is 18 years and the character is miley byrne? | CREATE TABLE "ireland" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
); | SELECT "soap_opera" FROM "ireland" WHERE "duration"='18 years' AND "character"='miley byrne'; | 2-18772558-8 |
what is the years when the duration is 13 years and the character is renee phelan? | CREATE TABLE "ireland" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
); | SELECT "years" FROM "ireland" WHERE "duration"='13 years' AND "character"='renee phelan'; | 2-18772558-8 |
what is the years when the soap opera is glenroe and the actor is mick lally? | CREATE TABLE "ireland" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
); | SELECT "years" FROM "ireland" WHERE "soap_opera"='glenroe' AND "actor"='mick lally'; | 2-18772558-8 |
who is the actor when the character is dinny byrne? | CREATE TABLE "ireland" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
); | SELECT "actor" FROM "ireland" WHERE "character"='dinny byrne'; | 2-18772558-8 |
what is the soap opera when the actor is dave duffy? | CREATE TABLE "ireland" (
"actor" text,
"character" text,
"soap_opera" text,
"years" text,
"duration" text
); | SELECT "soap_opera" FROM "ireland" WHERE "actor"='dave duffy'; | 2-18772558-8 |
What is the score for the game with an 11 tie number? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='11'; | 2-18657589-4 |
What date was Ipswich Town the away team? | CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
); | SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='ipswich town'; | 2-18657589-4 |
Who is the owner with a Hot Adult Contemporary format? | CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
); | SELECT "owner" FROM "radio" WHERE "format"='hot adult contemporary'; | 2-18409499-1 |
What's the call sign of The Q? | CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
); | SELECT "call_sign" FROM "radio" WHERE "branding"='the q'; | 2-18409499-1 |
What's the call sign for Jack FM? | CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
); | SELECT "call_sign" FROM "radio" WHERE "branding"='jack fm'; | 2-18409499-1 |
What is the average year for a Saar of FK Pirmasens and Hessen of Wormatia Worms? | CREATE TABLE "1928_to_1933" (
"year" real,
"main" text,
"hessen" text,
"rhein" text,
"saar" text
); | SELECT AVG("year") FROM "1928_to_1933" WHERE "saar"='fk pirmasens' AND "hessen"='wormatia worms'; | 2-18577849-11 |
What is the smallest year for a Main of Eintracht Frankfurt, Rhein of Waldhof Mannheim, Sarr of FK Pirmasens, and Hessen of Wormatia Worms? | CREATE TABLE "1928_to_1933" (
"year" real,
"main" text,
"hessen" text,
"rhein" text,
"saar" text
); | SELECT MIN("year") FROM "1928_to_1933" WHERE "main"='eintracht frankfurt' AND "rhein"='waldhof mannheim' AND "saar"='fk pirmasens' AND "hessen"='wormatia worms'; | 2-18577849-11 |
Which year has a Main of Eintracht Frankfurt and Hessen of FSV Mainz 05? | CREATE TABLE "1928_to_1933" (
"year" real,
"main" text,
"hessen" text,
"rhein" text,
"saar" text
); | SELECT "year" FROM "1928_to_1933" WHERE "main"='eintracht frankfurt' AND "hessen"='fsv mainz 05'; | 2-18577849-11 |
Who was the Hessen the year that Saar was FK Pirmasens? | CREATE TABLE "1928_to_1933" (
"year" real,
"main" text,
"hessen" text,
"rhein" text,
"saar" text
); | SELECT "hessen" FROM "1928_to_1933" WHERE "saar"='fk pirmasens'; | 2-18577849-11 |
What's the series of Buddy The Woodsman by director Jack King? | CREATE TABLE "1934" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
); | SELECT "series" FROM "1934" WHERE "director"='jack king' AND "title"='buddy the woodsman'; | 2-18792938-5 |
Who was the director of the movie having a release date of 1934-09-15, an MM Series and a production number less than 6494? | CREATE TABLE "1934" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
); | SELECT "director" FROM "1934" WHERE "series"='mm' AND "production_num"<6494 AND "release_date"='1934-09-15'; | 2-18792938-5 |
Who's the director of Buddy of the Apes? | CREATE TABLE "1934" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
); | SELECT "director" FROM "1934" WHERE "title"='buddy of the apes'; | 2-18792938-5 |
What's the title of the film directed by Friz Freleng with an MM Series, production number greater than 6209 and a release date of 1934-11-03? | CREATE TABLE "1934" (
"title" text,
"series" text,
"director" text,
"production_num" real,
"release_date" text
); | SELECT "title" FROM "1934" WHERE "production_num">6209 AND "series"='mm' AND "director"='friz freleng' AND "release_date"='1934-11-03'; | 2-18792938-5 |
What is the lowest time for Paulo Villar in lane 9? | CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"notes" text
); | SELECT MIN("time") FROM "semifinal_1" WHERE "athlete"='paulo villar' AND "lane"<9; | 2-18578891-4 |
What is the nationality of lane 4? | CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"notes" text
); | SELECT "nationality" FROM "semifinal_1" WHERE "lane"=4; | 2-18578891-4 |
What is the nationality with a 13.21 time? | CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"nationality" text,
"time" real,
"notes" text
); | SELECT "nationality" FROM "semifinal_1" WHERE "time"=13.21; | 2-18578891-4 |
With an increase in net assets of $211,418, what are the net assets at end of year? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$211,418'; | 2-18618509-1 |
What increase in net assets also has $5,617,236 as the total expenses? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "increase_in_net_assets" FROM "finances" WHERE "total_expenses"='$5,617,236'; | 2-18618509-1 |
With the net assets at end of year of $8,231,767, what is the increase in net assets? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "increase_in_net_assets" FROM "finances" WHERE "net_assets_at_end_of_year"='$8,231,767'; | 2-18618509-1 |
What net assets at end of year has $6,310,964 as the increase in net assets? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$6,310,964'; | 2-18618509-1 |
When the increase in net assets is $654,066, what is the net assets at end of year? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$654,066'; | 2-18618509-1 |
What net assets at end of year also has $736,132 as the increase in net assets? | CREATE TABLE "finances" (
"year" text,
"total_support_and_revenue" text,
"total_expenses" text,
"increase_in_net_assets" text,
"net_assets_at_end_of_year" text
); | SELECT "net_assets_at_end_of_year" FROM "finances" WHERE "increase_in_net_assets"='$736,132'; | 2-18618509-1 |
How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=1 AND "nation"='puerto rico' AND "total"<1; | 2-18532667-2 |
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "bronze"<7 AND "silver"=1 AND "rank">9; | 2-18532667-2 |
How many Silver medals did the Nation with 10 or more Bronze receive? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "bronze">10; | 2-18532667-2 |
what is the average wins when draws is less than 0? | CREATE TABLE "1937_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
); | SELECT AVG("wins") FROM "1937_ladder" WHERE "draws"<0; | 2-18628904-11 |
what is the average losses when the club is warrnambool and wins is less than 12? | CREATE TABLE "1937_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
); | SELECT AVG("losses") FROM "1937_ladder" WHERE "club"='warrnambool' AND "wins"<12; | 2-18628904-11 |
what is the most losses when the club is terang and draws is less than 0? | CREATE TABLE "1937_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MAX("losses") FROM "1937_ladder" WHERE "club"='terang' AND "draws"<0; | 2-18628904-11 |
What is the sum of losses when wins is more than 6, club is camperdown and against is more than 1238? | CREATE TABLE "1937_ladder" (
"club" text,
"wins" real,
"losses" real,
"draws" real,
"against" real
); | SELECT SUM("losses") FROM "1937_ladder" WHERE "wins">6 AND "club"='camperdown' AND "against">1238; | 2-18628904-11 |
What is the drew for the 1999-2000 season when they were in third place? | CREATE TABLE "year_by_year_performance" (
"season" text,
"competition" text,
"round" text,
"played" text,
"drew" text,
"lost" text
); | SELECT "drew" FROM "year_by_year_performance" WHERE "round"='third place' AND "season"='1999-2000'; | 2-18800287-3 |
What competition did they have 1 lost, 3 draws, and played 9 games? | CREATE TABLE "year_by_year_performance" (
"season" text,
"competition" text,
"round" text,
"played" text,
"drew" text,
"lost" text
); | SELECT "competition" FROM "year_by_year_performance" WHERE "lost"='1' AND "drew"='3' AND "played"='9'; | 2-18800287-3 |
What is the number of draws when the played 9 and lost 3? | CREATE TABLE "year_by_year_performance" (
"season" text,
"competition" text,
"round" text,
"played" text,
"drew" text,
"lost" text
); | SELECT "drew" FROM "year_by_year_performance" WHERE "played"='9' AND "lost"='3'; | 2-18800287-3 |
How many cable channels have callsign CBFT-DT? | CREATE TABLE "television_stations" (
"call_sign" text,
"broadcast_channel" real,
"digital_psip" real,
"cable_channel" real,
"network" text
); | SELECT COUNT("cable_channel") FROM "television_stations" WHERE "call_sign"='cbft-dt'; | 2-1875230-1 |
What is the lowest Digital PSIP for channels over 29 with callsign CFTU-DT? | CREATE TABLE "television_stations" (
"call_sign" text,
"broadcast_channel" real,
"digital_psip" real,
"cable_channel" real,
"network" text
); | SELECT MIN("digital_psip") FROM "television_stations" WHERE "call_sign"='cftu-dt' AND "broadcast_channel">29; | 2-1875230-1 |
What is the Digital PSIP for channels over 15 with callsign CFTU-DT? | CREATE TABLE "television_stations" (
"call_sign" text,
"broadcast_channel" real,
"digital_psip" real,
"cable_channel" real,
"network" text
); | SELECT "digital_psip" FROM "television_stations" WHERE "broadcast_channel">15 AND "call_sign"='cftu-dt'; | 2-1875230-1 |
Where was the location of the Mong Kok Stadium? | CREATE TABLE "s" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
); | SELECT "location" FROM "s" WHERE "home_ground"='mong kok stadium'; | 2-18408905-13 |
Which club, had a home ground of n/a? | CREATE TABLE "s" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
); | SELECT "club" FROM "s" WHERE "home_ground"='n/a'; | 2-18408905-13 |
What is the location for the first division, Sun Pegasus Club? | CREATE TABLE "s" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
); | SELECT "location" FROM "s" WHERE "league_division"='first division' AND "club"='sun pegasus'; | 2-18408905-13 |
What division is Sai Kung in? | CREATE TABLE "s" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
); | SELECT "league_division" FROM "s" WHERE "club"='sai kung'; | 2-18408905-13 |
What league is Sun Source in? | CREATE TABLE "s" (
"club" text,
"league_division" text,
"home_ground" text,
"location" text,
"position_in_2012_13" text
); | SELECT "league_division" FROM "s" WHERE "club"='sun source'; | 2-18408905-13 |
What was the model that had years 2004-? | CREATE TABLE "engines" (
"model" text,
"years" text,
"type_code" text,
"power_rpm" text,
"torque_rpm" text
); | SELECT "model" FROM "engines" WHERE "years"='2004-'; | 2-1867831-3 |
What was the torque@rpm of the sl 65 amg? | CREATE TABLE "engines" (
"model" text,
"years" text,
"type_code" text,
"power_rpm" text,
"torque_rpm" text
); | SELECT "torque_rpm" FROM "engines" WHERE "model"='sl 65 amg'; | 2-1867831-3 |
What was the model that had years 2004-? | CREATE TABLE "engines" (
"model" text,
"years" text,
"type_code" text,
"power_rpm" text,
"torque_rpm" text
); | SELECT "model" FROM "engines" WHERE "years"='2004-'; | 2-1867831-3 |
What is the IHSAA Class for football for the team joining in 1968? | CREATE TABLE "membership" (
"school" text,
"city" text,
"team_name" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"ihsaa_class_football" text,
"county" text,
"year_joined" real
); | SELECT "ihsaa_class_football" FROM "membership" WHERE "year_joined"=1968; | 2-18789626-1 |
What is the IHSAA class for Tipton? | CREATE TABLE "membership" (
"school" text,
"city" text,
"team_name" text,
"enrollment_08_09" real,
"ihsaa_class" text,
"ihsaa_class_football" text,
"county" text,
"year_joined" real
); | SELECT "ihsaa_class" FROM "membership" WHERE "school"='tipton'; | 2-18789626-1 |
What is the rank for the person with time 11.14? | CREATE TABLE "heat_8" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
); | SELECT AVG("rank") FROM "heat_8" WHERE "time_sec"=11.14; | 2-18912925-10 |
What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB? | CREATE TABLE "heat_8" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
); | SELECT SUM("rank") FROM "heat_8" WHERE "notes"='q, pb' AND "time_sec"=11.15 AND "lane">7; | 2-18912925-10 |
What is the lane for notes Q, SB and time less than 11.22? | CREATE TABLE "heat_8" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
); | SELECT SUM("lane") FROM "heat_8" WHERE "notes"='q, sb' AND "time_sec"<11.22; | 2-18912925-10 |
Which athlete is ranked less than 5 with time over 11.22? | CREATE TABLE "heat_8" (
"rank" real,
"lane" real,
"athlete" text,
"time_sec" real,
"notes" text
); | SELECT "athlete" FROM "heat_8" WHERE "time_sec">11.22 AND "rank"<5; | 2-18912925-10 |
What is the lowest played when draws P.K. Wins / P.K. Losses is 3/0, and points is larger than 18? | CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws_p_k_wins_p_k_losses" text,
"losses" real,
"scored" real,
"conceded" real,
"points" real
); | SELECT MIN("played") FROM "torneo_apertura" WHERE "draws_p_k_wins_p_k_losses"='3/0' AND "points">18; | 2-18703133-1 |
How many lanes does Australia have with a reaction smaller than 0.138? | CREATE TABLE "final" (
"lane" real,
"name" text,
"nationality" text,
"reaction" real,
"time" real
); | SELECT COUNT("lane") FROM "final" WHERE "nationality"='australia' AND "reaction"<0.138; | 2-18578883-4 |
Who had a reaction larger than 0.17400000000000002 and a lane larger than 6? | CREATE TABLE "final" (
"lane" real,
"name" text,
"nationality" text,
"reaction" real,
"time" real
); | SELECT "name" FROM "final" WHERE "reaction">0.17400000000000002 AND "lane">6; | 2-18578883-4 |
The ship MS Vistafjord has what in service for NAL? | CREATE TABLE "passenger_ships" (
"ship" text,
"built" real,
"in_service_for_nal" text,
"type" text,
"tonnage" text
); | SELECT "in_service_for_nal" FROM "passenger_ships" WHERE "ship"='ms vistafjord'; | 2-1852658-1 |
The ship SSBergensfjord built before 1973 has what tonnage? | CREATE TABLE "passenger_ships" (
"ship" text,
"built" real,
"in_service_for_nal" text,
"type" text,
"tonnage" text
); | SELECT "tonnage" FROM "passenger_ships" WHERE "built"<1973 AND "ship"='ssbergensfjord'; | 2-1852658-1 |
Which nationality has a time of 50.92? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT "nationality" FROM "semifinal_2" WHERE "time"=50.92; | 2-18624808-5 |
What is the time with fewer than 5 lanes for the United States? | CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
); | SELECT SUM("time") FROM "semifinal_2" WHERE "lane"<5 AND "nationality"='united states'; | 2-18624808-5 |
Which Att-Cmp has a GP-GS of 7-1? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp" text,
"td_int" text,
"avg_g" real
); | SELECT "att_cmp" FROM "passing" WHERE "gp_gs"='7-1'; | 2-18830588-39 |
Which Att-Cmp has a TD-INT of 7-8? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp" text,
"td_int" text,
"avg_g" real
); | SELECT "att_cmp" FROM "passing" WHERE "td_int"='7-8'; | 2-18830588-39 |
Which TD-INT has an Effic larger than 111.4? | CREATE TABLE "passing" (
"name" text,
"gp_gs" text,
"effic" real,
"att_cmp" text,
"td_int" text,
"avg_g" real
); | SELECT "td_int" FROM "passing" WHERE "effic">111.4; | 2-18830588-39 |
What is the total number of losses with less than 6 wins and less than 0 draws? | CREATE TABLE "2011_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT COUNT("losses") FROM "2011_ladder" WHERE "wins"<6 AND "draws"<0; | 2-18976447-9 |
What is the average number of against with less than 10 losses, more than 0 draws, and more than 7 wins? | CREATE TABLE "2011_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT AVG("against") FROM "2011_ladder" WHERE "losses"<10 AND "draws">0 AND "wins">7; | 2-18976447-9 |
What is the total number of byes with more than 0 losses and 1526 against? | CREATE TABLE "2011_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT COUNT("byes") FROM "2011_ladder" WHERE "losses">0 AND "against"=1526; | 2-18976447-9 |
What is the lowest number of draws with more than 2 byes? | CREATE TABLE "2011_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MIN("draws") FROM "2011_ladder" WHERE "byes">2; | 2-18976447-9 |
What is the lowest against of the wimmera fl warrack eagles, which have less than 16 wins? | CREATE TABLE "2011_ladder" (
"wimmera_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT MIN("against") FROM "2011_ladder" WHERE "wins"<16 AND "wimmera_fl"='warrack eagles'; | 2-18976447-9 |
How many races did the German racer that won less than 10 races ride? | CREATE TABLE "highest_number_of_six_day_victories" (
"name" text,
"nationality" text,
"races_won" real,
"races_ridden" real,
"win_average" real
); | SELECT COUNT("races_ridden") FROM "highest_number_of_six_day_victories" WHERE "nationality"='german' AND "races_won"<10; | 2-1840433-1 |
What is the average win as a percentage of German racer Rudi Altig, who has ridden in over 79 races? | CREATE TABLE "highest_number_of_six_day_victories" (
"name" text,
"nationality" text,
"races_won" real,
"races_ridden" real,
"win_average" real
); | SELECT AVG("win_average") FROM "highest_number_of_six_day_victories" WHERE "nationality"='german' AND "name"='rudi altig' AND "races_ridden">79; | 2-1840433-1 |
what is the highest top-5 when cuts made is more than 39? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("top_5") FROM "summary" WHERE "cuts_made">39; | 2-1855031-2 |
what is the highest events when wins is more than 0 and cuts made is more than 14? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("events") FROM "summary" WHERE "wins">0 AND "cuts_made">14; | 2-1855031-2 |
what is the highest top-5 when wins is more than 1? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MAX("top_5") FROM "summary" WHERE "wins">1; | 2-1855031-2 |
How many times is the tournament the masters tournament and the top-10 is less than 2? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT COUNT("top_5") FROM "summary" WHERE "tournament"='masters tournament' AND "top_10"<2; | 2-1855031-2 |
What ran has noel patterson as the rider? | CREATE TABLE "race_5_senior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "rank" FROM "race_5_senior_manx_grand_prix" WHERE "rider"='noel patterson'; | 2-18649514-8 |
What time has jules croft as the rider? | CREATE TABLE "race_5_senior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "time" FROM "race_5_senior_manx_grand_prix" WHERE "rider"='jules croft'; | 2-18649514-8 |
What team has adam barclay as the rider? | CREATE TABLE "race_5_senior_manx_grand_prix" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "team" FROM "race_5_senior_manx_grand_prix" WHERE "rider"='adam barclay'; | 2-18649514-8 |
What Round has h/a hurst | CREATE TABLE "manchester_and_district_senior_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
); | SELECT "round" FROM "manchester_and_district_senior_cup" WHERE "h_a"='hurst'; | 2-18598581-2 |
what game ended f-a with a round of round 1 replay | CREATE TABLE "manchester_and_district_senior_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
); | SELECT "result_f_a" FROM "manchester_and_district_senior_cup" WHERE "round"='round 1 replay'; | 2-18598581-2 |
what is the h/a round of round 2 | CREATE TABLE "manchester_and_district_senior_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text
); | SELECT "h_a" FROM "manchester_and_district_senior_cup" WHERE "round"='round 2'; | 2-18598581-2 |
What is the lowest laps that has an on lap less than 4, with 35 as a class pos.? | CREATE TABLE "miller_grand_am_cup_200_gs_class_only_re" (
"class" text,
"class_pos" real,
"driver" text,
"team_car" text,
"laps" real,
"best_lap" text,
"on_lap" real
); | SELECT MIN("laps") FROM "miller_grand_am_cup_200_gs_class_only_re" WHERE "on_lap"<4 AND "class_pos"=35; | 2-18642075-1 |
What was the Role/Episode after 2006 with Ellen Burstyn as a recipient and nominee? | CREATE TABLE "emmy_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
); | SELECT "role_episode" FROM "emmy_awards" WHERE "year">2006 AND "recipients_and_nominees"='ellen burstyn'; | 2-18692011-1 |
For which Category was Outstanding Main Title Design a Recipient and nominee? | CREATE TABLE "emmy_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
); | SELECT "category" FROM "emmy_awards" WHERE "recipients_and_nominees"='outstanding main title design'; | 2-18692011-1 |
Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson? | CREATE TABLE "emmy_awards" (
"year" real,
"category" text,
"recipients_and_nominees" text,
"role_episode" text,
"result" text
); | SELECT "category" FROM "emmy_awards" WHERE "year"<2009 AND "role_episode"='libby goldstein and junie lowry-johnson'; | 2-18692011-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.