question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Who was the away team during the game when the home team was the new zealand breakers? | CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
); | SELECT "away_team" FROM "round_19" WHERE "home_team"='new zealand breakers'; | 2-16653153-26 |
What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home team? | CREATE TABLE "round_19" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
); | SELECT "score" FROM "round_19" WHERE "away_team"='gold coast blaze' AND "home_team"='adelaide 36ers'; | 2-16653153-26 |
What is the average market value in billions of the company with less than 1,705.35 billions in assets, sales of 175.05 billions, and is ranked less than 19? | CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT AVG("market_value_billion") FROM "2007_list" WHERE "assets_billion"<'1,705.35' AND "sales_billion"=175.05 AND "rank"<19; | 2-1682026-7 |
What is the total rank of the company with less than 248.44 billion in assets, an industry of oil and gas, headquarters in France, and a market value greater than 152.62 billions? | CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT COUNT("rank") FROM "2007_list" WHERE "assets_billion"<248.44 AND "industry"='oil and gas' AND "headquarters"='france' AND "market_value_billion">152.62; | 2-1682026-7 |
What company has more than 195.34 billion in sales, ranked greater than 7, more than 11.29 billion in profits, and a market value greater than 198.14 billion? | CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT "company" FROM "2007_list" WHERE "sales_billion">195.34 AND "rank">7 AND "profits_billion">11.29 AND "market_value_billion">198.14; | 2-1682026-7 |
What is the average rank of the company with more than 146.56 billion in sales and profits of 11.68 billions? | CREATE TABLE "2007_list" (
"rank" real,
"company" text,
"headquarters" text,
"industry" text,
"sales_billion" real,
"profits_billion" real,
"assets_billion" real,
"market_value_billion" real
); | SELECT AVG("rank") FROM "2007_list" WHERE "sales_billion">146.56 AND "profits_billion"=11.68; | 2-1682026-7 |
What was the position of the player from the college of Nevada with a round over 5? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "round">5 AND "college"='nevada'; | 2-17100961-80 |
Which college had a pick in a round under 7, with a pick number 13 and overall was under 186? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "college" FROM "washington_redskins_draft_history" WHERE "round"<7 AND "overall"<186 AND "pick"=13; | 2-17100961-80 |
How many Parishes in Merrimack which has 4 Cemeteries? | CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
); | SELECT MIN("parishes") FROM "list_of_pastoral_regions" WHERE "pastoral_region"='merrimack' AND "cemeteries"<4; | 2-1692165-1 |
What Pastoral Region has 3 Cemeteries? | CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
); | SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "cemeteries"=3; | 2-1692165-1 |
How many High schools in the Region with 8 Cemeteries? | CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
); | SELECT SUM("high_schools") FROM "list_of_pastoral_regions" WHERE "cemeteries"=8; | 2-1692165-1 |
What Pastoral Region has Episcopal Vicar Robert Francis Hennessey? | CREATE TABLE "list_of_pastoral_regions" (
"pastoral_region" text,
"episcopal_vicar" text,
"parishes" real,
"high_schools" real,
"elementary_schools" text,
"cemeteries" real
); | SELECT "pastoral_region" FROM "list_of_pastoral_regions" WHERE "episcopal_vicar"='robert francis hennessey'; | 2-1692165-1 |
What is the name of the person with more than 299 games during the 1995–07 period? | CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
); | SELECT "name" FROM "most_appearances" WHERE "games">299 AND "period"='1995–07'; | 2-1755537-2 |
What is the number of games for Shlomi Avrahami? | CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
); | SELECT COUNT("games") FROM "most_appearances" WHERE "name"='shlomi avrahami'; | 2-1755537-2 |
What is the rank for the period of 1973–89, with less than 423 games. | CREATE TABLE "most_appearances" (
"rank" real,
"name" text,
"period" text,
"games" real,
"goals" text
); | SELECT SUM("rank") FROM "most_appearances" WHERE "period"='1973–89' AND "games"<423; | 2-1755537-2 |
What is the team 1 when Ulisses is team 2? | CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "team_1" FROM "first_round" WHERE "team_2"='ulisses'; | 2-17372848-1 |
What is 2009, when Year is "Highest Mean Annual Temperature"? | CREATE TABLE "temperature_records" (
"year" text,
"2011" text,
"2010" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text
); | SELECT "2009" FROM "temperature_records" WHERE "year"='highest mean annual temperature'; | 2-17326499-5 |
How many gold values have totals over 30, bronzes over 35, and are in Swimming? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("gold") FROM "by_sport" WHERE "total">30 AND "sport"='swimming' AND "bronze">35; | 2-16455340-2 |
What is the highest bronze value with silvers over 2, golds under 16, and in Cycling? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("bronze") FROM "by_sport" WHERE "silver">2 AND "sport"='cycling' AND "gold"<16; | 2-16455340-2 |
What is the total associated with Bronzes over 35? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT "total" FROM "by_sport" WHERE "bronze">35; | 2-16455340-2 |
What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "by_sport" WHERE "gold">0 AND "total"=36 AND "silver">11; | 2-16455340-2 |
What is the average number of golds in athletics associated with over 42 silvers? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("gold") FROM "by_sport" WHERE "sport"='athletics' AND "silver">42; | 2-16455340-2 |
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo? | CREATE TABLE "by_sport" (
"sport" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "by_sport" WHERE "bronze"<20 AND "total"=1 AND "sport"='water polo' AND "gold"<0; | 2-16455340-2 |
What was the lowest pick number for Marc Pilon? | CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT MIN("pick_num") FROM "round_one" WHERE "player"='marc pilon'; | 2-16441561-1 |
What player was from the British Columbia college? | CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "player" FROM "round_one" WHERE "college"='british columbia'; | 2-16441561-1 |
What was the highest pick number for the Hamilton tiger-cats? | CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT MAX("pick_num") FROM "round_one" WHERE "cfl_team"='hamilton tiger-cats'; | 2-16441561-1 |
What was the pick number for the WR position? | CREATE TABLE "round_one" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
); | SELECT "pick_num" FROM "round_one" WHERE "position"='wr'; | 2-16441561-1 |
Can you tell me the Goal that has the Result of 2-0? | CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "goal" FROM "international_goals" WHERE "result"='2-0'; | 2-16763340-1 |
What is Place, when Prize is "$381.030"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "place" FROM "top_10_prizes" WHERE "prize"='$381.030'; | 2-17282079-10 |
What is Rank, when Event is "LAPT3 Punta Del Este"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt3 punta del este'; | 2-17282079-10 |
What is Name, when Prize is "$279.330"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "name" FROM "top_10_prizes" WHERE "prize"='$279.330'; | 2-17282079-10 |
What is Prize, when Rank is "2nd"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "prize" FROM "top_10_prizes" WHERE "rank"='2nd'; | 2-17282079-10 |
What is Rank, when Event is "LAPT4 São Paulo"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "rank" FROM "top_10_prizes" WHERE "event"='lapt4 são paulo'; | 2-17282079-10 |
What is Prize, when Name is "Valdemar Kwaysser"? | CREATE TABLE "top_10_prizes" (
"rank" text,
"event" text,
"place" text,
"name" text,
"prize" text
); | SELECT "prize" FROM "top_10_prizes" WHERE "name"='valdemar kwaysser'; | 2-17282079-10 |
What is the bus power for the Controlnet Fieldbus? | CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
); | SELECT "bus_power" FROM "features" WHERE "fieldbus"='controlnet'; | 2-1621212-1 |
What is the millisecond cycle for the Fieldbus? | CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
); | SELECT "sub_millisecond_cycle" FROM "features" WHERE "fieldbus"='fieldbus'; | 2-1621212-1 |
What is the synchronisation for the controlnet fieldbus? | CREATE TABLE "features" (
"fieldbus" text,
"bus_power" text,
"cabling_redundancy" text,
"synchronisation" text,
"sub_millisecond_cycle" text
); | SELECT "synchronisation" FROM "features" WHERE "fieldbus"='controlnet'; | 2-1621212-1 |
Which Position has a College of colorado? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='colorado'; | 2-17100961-32 |
Which College has an Overall larger than 211, a Position of db, and a Name of carl charon? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">211 AND "position"='db' AND "name"='carl charon'; | 2-17100961-32 |
Which Overall has a College of michigan state, a Position of fb, and a Round larger than 8? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "college"='michigan state' AND "position"='fb' AND "round">8; | 2-17100961-32 |
Which Round has a College of arizona? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "college"='arizona'; | 2-17100961-32 |
Which Overall has a Round of 7? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=7; | 2-17100961-32 |
Which Round has a Pick larger than 1? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "pick">1; | 2-17100961-32 |
In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won? | CREATE TABLE "round_robin" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
); | SELECT MIN("ends_won") FROM "round_robin" WHERE "stolen_ends"=10 AND "locale"='italy' AND "blank_ends"<14; | 2-1644876-2 |
When ends won were below 57 but stolen ends are more than 14, what's the highest blank ends found? | CREATE TABLE "round_robin" (
"locale" text,
"skip" text,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" text
); | SELECT MAX("blank_ends") FROM "round_robin" WHERE "stolen_ends">14 AND "ends_won"<57; | 2-1644876-2 |
What is the highest value for N, Golosov, when Constellation is G, and when Largest Component, Fractional Share is greater than 0.15? | CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
); | SELECT MAX("n_golosov") FROM "values" WHERE "constellation"='g' AND "largest_component_fractional_share">0.15; | 2-16200313-1 |
What is the sum of the values for N, Laakso-Taagepera, when Largest Component, Fractional Share is 0.35000000000000003, and when Constellation is E? | CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
); | SELECT SUM("n_laakso_taagepera") FROM "values" WHERE "largest_component_fractional_share"=0.35000000000000003 AND "constellation"='e'; | 2-16200313-1 |
What is the sum of the values for Largest Component, Fractional Share, when Constellation is E, and when N, Golosov is greater than 2.9? | CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
); | SELECT SUM("largest_component_fractional_share") FROM "values" WHERE "constellation"='e' AND "n_golosov">2.9; | 2-16200313-1 |
What is the average Largest Component, Fractional Share, when N, Laakso-Taagepera is 1.98, and when N, Golosov is greater than 1.82? | CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
); | SELECT AVG("largest_component_fractional_share") FROM "values" WHERE "n_laakso_taagepera"=1.98 AND "n_golosov">1.82; | 2-16200313-1 |
What is the lowest value for N, Golosov, when N, Laakso-Taagepera is greater than 10.64? | CREATE TABLE "values" (
"constellation" text,
"largest_component_fractional_share" real,
"other_components_fractional_shares" text,
"n_laakso_taagepera" real,
"n_golosov" real
); | SELECT MIN("n_golosov") FROM "values" WHERE "n_laakso_taagepera">10.64; | 2-16200313-1 |
What was the attendance record for Leicester City? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "attendance" FROM "third_round_proper" WHERE "home_team"='leicester city'; | 2-16351829-3 |
What was the attendance for Arsenal? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "attendance" FROM "third_round_proper" WHERE "home_team"='arsenal'; | 2-16351829-3 |
Who was the home team against the Bolton Wanderers? | CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='bolton wanderers'; | 2-16351829-3 |
Who was the opponent of the match in South Dakota, United States which has 2 rounds? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"location" text
); | SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"=2 AND "location"='south dakota, united states'; | 2-17445678-2 |
What is the total ATMs with off-site ATMs greater than 3672, and less than 1685 as the number of branches? | CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
); | SELECT COUNT("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms">3672 AND "number_of_branches"<1685; | 2-1630037-2 |
What is the total number of branches when the on-site ATMS is 1548, and the off-site ATMs is bigger than 3672? | CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
); | SELECT SUM("number_of_branches") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "on_site_at_ms"=1548 AND "off_site_at_ms">3672; | 2-1630037-2 |
What is the minimum total ATMs with new private sector banks as the bank type, and the on-site ATMs are greater than 1883? | CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
); | SELECT MIN("total_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='new private sector banks' AND "on_site_at_ms">1883; | 2-1630037-2 |
What is the mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772? | CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
); | SELECT AVG("on_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "off_site_at_ms"=1567 AND "total_at_ms"<4772; | 2-1630037-2 |
With foreign banks as the bank type, and on-site ATMS less than 218, what is the average off-site ATMs? | CREATE TABLE "branches_and_at_ms_of_scheduled_commerci" (
"bank_type" text,
"number_of_branches" real,
"on_site_at_ms" real,
"off_site_at_ms" real,
"total_at_ms" real
); | SELECT AVG("off_site_at_ms") FROM "branches_and_at_ms_of_scheduled_commerci" WHERE "bank_type"='foreign banks' AND "on_site_at_ms"<218; | 2-1630037-2 |
What is Effect, when Weapon is "35mm/Small arms fire"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "effect" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm/small arms fire'; | 2-17259399-1 |
What is Date, when Effect is "Shot Down", and when Place is "South of Stanley Airport"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "date" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "effect"='shot down' AND "place"='south of stanley airport'; | 2-17259399-1 |
What is Place, when Weapon is "35mm fire", and when Date is "27 May 1982"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "place" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm fire' AND "date"='27 may 1982'; | 2-17259399-1 |
What is Pilot, when Place is "Goose Green", and when Date is "27 May 1982"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "pilot" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "place"='goose green' AND "date"='27 may 1982'; | 2-17259399-1 |
What is Place, when Weapon is "35mm/Small arms fire"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "place" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm/small arms fire'; | 2-17259399-1 |
What is Pilot, when Weapon is "35mm fire", and when Date is "4 May 1982"? | CREATE TABLE "enemy_aircraft_shot_down_or_disabled_by_" (
"pilot" text,
"date" text,
"place" text,
"weapon" text,
"effect" text
); | SELECT "pilot" FROM "enemy_aircraft_shot_down_or_disabled_by_" WHERE "weapon"='35mm fire' AND "date"='4 may 1982'; | 2-17259399-1 |
Where is the player from that has a Jersey Number(s) greater than 0 in the year 2003? | CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
); | SELECT "from" FROM "o" WHERE "jersey_number_s">0 AND "years"='2003'; | 2-16772687-15 |
Who is the player with a Jersey Number(s) greater than 30? | CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
); | SELECT "player" FROM "o" WHERE "jersey_number_s">30; | 2-16772687-15 |
What is the Years of the player with Jersey Number(s) of 44? | CREATE TABLE "o" (
"player" text,
"nationality" text,
"jersey_number_s" real,
"position" text,
"years" text,
"from" text
); | SELECT "years" FROM "o" WHERE "jersey_number_s"=44; | 2-16772687-15 |
What was the population in North Jeolla? | CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
); | SELECT "population_2010" FROM "south_korea_rok" WHERE "province"='north jeolla'; | 2-16489766-7 |
What's Korean for 南楊州 Hanja? | CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
); | SELECT "korean" FROM "south_korea_rok" WHERE "hanja"='南楊州'; | 2-16489766-7 |
What's the Korean word for Pohang? | CREATE TABLE "south_korea_rok" (
"city" text,
"korean" text,
"hanja" text,
"province" text,
"population_2010" real
); | SELECT "korean" FROM "south_korea_rok" WHERE "city"='pohang'; | 2-16489766-7 |
What's the team nickname of the private/catholic school whose enrollment is larger than 3,490? | CREATE TABLE "former_teams" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
); | SELECT "team_nickname" FROM "former_teams" WHERE "affiliation"='private/catholic' AND "enrollment">'3,490'; | 2-16381914-1 |
What's the total enrollment of public schools located in Buffalo, New York that were founded after 1846? | CREATE TABLE "former_teams" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
); | SELECT SUM("enrollment") FROM "former_teams" WHERE "location"='buffalo, new york' AND "affiliation"='public' AND "founded">1846; | 2-16381914-1 |
What year did Bangkok University and Chunnam Dragons have a score of 0-0? | CREATE TABLE "results" (
"season" real,
"team_1" text,
"score" text,
"team_2" text,
"venue" text
); | SELECT SUM("season") FROM "results" WHERE "team_1"='bangkok university' AND "score"='0-0' AND "team_2"='chunnam dragons'; | 2-16593799-2 |
What is the transfer window for Christian Nerlinger? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "transfer_window" FROM "out" WHERE "name"='christian nerlinger'; | 2-1626337-2 |
What is the name for the end of contract because they're moving to Falkirk? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "name" FROM "out" WHERE "type"='end of contract' AND "moving_to"='falkirk'; | 2-1626337-2 |
What type of transfer window is winter in Ita? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "type" FROM "out" WHERE "transfer_window"='winter' AND "nat"='ita'; | 2-1626337-2 |
What is the type of loan and the transfer fee loan? | CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
); | SELECT "nat" FROM "out" WHERE "type"='loan' AND "transfer_fee"='loan'; | 2-1626337-2 |
On what date did a streak start on November 14? | CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
); | SELECT "streak" FROM "season_schedule" WHERE "date"='november 14'; | 2-17064870-4 |
What was the score of game 36? | CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "game"=36; | 2-17371427-4 |
Where was the third bridge over panama canal? | CREATE TABLE "cable_stayed_bridges_under_construction_" (
"name" text,
"location" text,
"country" text,
"longest_span" text,
"pylons" real
); | SELECT "location" FROM "cable_stayed_bridges_under_construction_" WHERE "name"='third bridge over panama canal'; | 2-1650348-2 |
Name the Comp which has a Name of smith? | CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
); | SELECT "comp" FROM "passing" WHERE "name"='smith'; | 2-16451700-21 |
Name the sum of Comp which has a Yds/game smaller than 209.5,brytus Name, and a Rating smaller than 100? | CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
); | SELECT SUM("comp") FROM "passing" WHERE "yds_game"<209.5 AND "name"='brytus' AND "rating"<100; | 2-16451700-21 |
Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77? | CREATE TABLE "passing" (
"name" text,
"rating" real,
"comp" real,
"long" real,
"yds_game" real
); | SELECT MAX("comp") FROM "passing" WHERE "yds_game">0 AND "name"='bostick' AND "rating"<91.77; | 2-16451700-21 |
Can you tell me the sum of Score that has the Place of t5, and the Country of united states, and the Player of jeff maggert? | CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
); | SELECT SUM("score") FROM "first_round" WHERE "place"='t5' AND "country"='united states' AND "player"='jeff maggert'; | 2-17162214-2 |
Which event had a decision method? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='decision'; | 2-16335823-2 |
Where was the method of tko? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='tko'; | 2-16335823-2 |
What is the time of kenya, which is ranked 2? | CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
); | SELECT "time" FROM "top_10_men" WHERE "nation"='kenya' AND "rank"='2'; | 2-17370134-2 |
What race is on 26 June 2011? | CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
); | SELECT "race" FROM "top_10_men" WHERE "date"='26 june 2011'; | 2-17370134-2 |
What is the time of the peachtree road race in kenya? | CREATE TABLE "top_10_men" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"date" text,
"race" text
); | SELECT "time" FROM "top_10_men" WHERE "nation"='kenya' AND "race"='peachtree road race'; | 2-17370134-2 |
What is the score of team chicago? | 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 "score" FROM "game_log" WHERE "team"='chicago'; | 2-17355628-9 |
What is the record of team utah? | 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 "record" FROM "game_log" WHERE "team"='utah'; | 2-17355628-9 |
What is the location and attendance of game 63? | 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 "location_attendance" FROM "game_log" WHERE "game"=63; | 2-17355628-9 |
What is the nationality of the person who played small forward? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "nationality" FROM "m" WHERE "position"='small forward'; | 2-16494599-13 |
What position did Rich Manning play? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "position" FROM "m" WHERE "player"='rich manning'; | 2-16494599-13 |
What position did the player who was with the grizzlies from 2007-2009 play? | CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
); | SELECT "position" FROM "m" WHERE "years_for_grizzlies"='2007-2009'; | 2-16494599-13 |
Who is the player in the 2008 draft with a pick greater than 5? | CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
); | SELECT "player" FROM "selections" WHERE "draft"=2008 AND "pick">5; | 2-16815697-2 |
What is the total pick number of the player from a round greater than 1, a draft before 2002, and with the college/high school/club of western kentucky? | CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
); | SELECT COUNT("pick") FROM "selections" WHERE "round">1 AND "draft"<2002 AND "college_high_school_club"='western kentucky'; | 2-16815697-2 |
What is the lowest draft number with a 48 pick? | CREATE TABLE "selections" (
"draft" real,
"round" real,
"pick" real,
"player" text,
"college_high_school_club" text
); | SELECT MIN("draft") FROM "selections" WHERE "pick"=48; | 2-16815697-2 |
Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m? | CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"name" text,
"position" text,
"college" text,
"aafc_team" text
); | SELECT "name" FROM "washington_redskins_draft_history" WHERE "aafc_team"='los angeles dons' AND "position"='fb' AND "college"='oklahoma a&m'; | 2-17100961-20 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.