answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MIN(population_per_km²__2009_) FROM table_name_21 WHERE province = "solomon islands" AND area__km²_ < 28 OFFSET 400 | What is the lowest Population per km² (2009) that has a Solomon Islands province, with an Area (km²) smaller than 28,400? | CREATE TABLE table_name_21 (population_per_km²__2009_ INTEGER, province VARCHAR, area__km²_ VARCHAR) |
SELECT school_club_team FROM table_name_25 WHERE player = "tim kempton" | What school/club team has tim kempton as the player? | CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR) |
SELECT MAX(week) FROM table_name_60 WHERE game_site = "miami orange bowl" AND attendance > 49 OFFSET 754 | Game site of miami orange bowl, and a Attendance larger than 49,754 happened on what highest week? | CREATE TABLE table_name_60 (week INTEGER, game_site VARCHAR, attendance VARCHAR) |
SELECT competition FROM table_name_60 WHERE result = "france 46-16 scotland" | Which Competition has a Result of france 46-16 scotland? | CREATE TABLE table_name_60 (competition VARCHAR, result VARCHAR) |
SELECT year FROM table_name_81 WHERE position = "1/22 promoted" AND leading_scorer = "james dean (27)" | what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)? | CREATE TABLE table_name_81 (year VARCHAR, position VARCHAR, leading_scorer VARCHAR) |
SELECT ranking FROM table_name_21 WHERE ep__number < 24 AND rating = "25.7" | What was the ranking for the episode number before 24 that had a rating of 25.7? | CREATE TABLE table_name_21 (ranking VARCHAR, ep__number VARCHAR, rating VARCHAR) |
SELECT MIN(w) FROM table_29542269_2 | What is the lowest overall amount of w's? | CREATE TABLE table_29542269_2 (w INTEGER) |
SELECT year__ceremony_ FROM table_name_82 WHERE original_title = "naga bonar" | what year did naga bonar take place | CREATE TABLE table_name_82 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT MIN(games) FROM table_name_81 WHERE year > 2013 | After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season? | CREATE TABLE table_name_81 (games INTEGER, year INTEGER) |
SELECT civilians FROM table_21636599_2 WHERE security_forces = "36" | What are the civilian total when the security force total is 36? | CREATE TABLE table_21636599_2 (civilians VARCHAR, security_forces VARCHAR) |
SELECT sampling_memory_upgrade_able FROM table_name_66 WHERE sampling_rate = "16-bit 44.1khz" | Which Sampling Memory/Upgrade-able has a rate of 16-bit 44.1khz? | CREATE TABLE table_name_66 (sampling_memory_upgrade_able VARCHAR, sampling_rate VARCHAR) |
SELECT location_attendance FROM table_name_69 WHERE record = "19-17" | What was the location and attendance when the record was 19-17? | CREATE TABLE table_name_69 (location_attendance VARCHAR, record VARCHAR) |
SELECT home FROM table_name_7 WHERE record = "4-3" | What home team has a record of 4-3? | CREATE TABLE table_name_7 (home VARCHAR, record VARCHAR) |
SELECT club FROM table_name_14 WHERE league_division = "first division" | Which club is in the First division? | CREATE TABLE table_name_14 (club VARCHAR, league_division VARCHAR) |
SELECT college FROM table_name_27 WHERE pick > 7 | Which colleges have a pick above 7? | CREATE TABLE table_name_27 (college VARCHAR, pick INTEGER) |
SELECT MAX(attendance) FROM table_name_68 WHERE loss = "k. gross (1-1)" | How many attended the game that was a Loss of k. gross (1-1)? | CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR) |
SELECT athlete FROM table_26454128_4 WHERE height = "1.87" AND country = "Sweden" | Which athlete has a height of 1.87 and is from Sweden? | CREATE TABLE table_26454128_4 (athlete VARCHAR, height VARCHAR, country VARCHAR) |
SELECT project_name FROM table_name_38 WHERE peak = "40" AND country = "usa" | What was the name of the project that peaked at 40 and was in the USA? | CREATE TABLE table_name_38 (project_name VARCHAR, peak VARCHAR, country VARCHAR) |
SELECT score FROM table_name_11 WHERE player = "curtis strange" | What is Curtis Strange's Score? | CREATE TABLE table_name_11 (score VARCHAR, player VARCHAR) |
SELECT MAX(no) FROM table_15621965_8 WHERE player = "Al Harrington" | What jersey number did Al Harrington wear | CREATE TABLE table_15621965_8 (no INTEGER, player VARCHAR) |
SELECT MAX(position) FROM table_name_78 WHERE points < 21 AND played > 14 | What is the greatest position when the points are less than 21, and the played greater than 14? | CREATE TABLE table_name_78 (position INTEGER, points VARCHAR, played VARCHAR) |
SELECT COUNT(*) FROM market WHERE Number_cities < 300 | How many markets have number of cities smaller than 300? | CREATE TABLE market (Number_cities INTEGER) |
SELECT overall FROM table_27069503_2 WHERE conf_record = "4-1-1" | What was the overall record for the Pandas when their conference record was 4-1-1? | CREATE TABLE table_27069503_2 (overall VARCHAR, conf_record VARCHAR) |
SELECT ravg FROM table_name_87 WHERE year = "2003" | What was the Ravg for 2003? | CREATE TABLE table_name_87 (ravg VARCHAR, year VARCHAR) |
SELECT worship_leader FROM table_name_17 WHERE time = "7:05" | Who was the Worship Leader for the song that was 7:05 long? | CREATE TABLE table_name_17 (worship_leader VARCHAR, time VARCHAR) |
SELECT MAX(no_in_series) FROM table_28561455_1 WHERE written_by = "Meredith Averill" | What was the latest episode number that Meredith Averill wrote? | CREATE TABLE table_28561455_1 (no_in_series INTEGER, written_by VARCHAR) |
SELECT last_5_meetings FROM table_name_85 WHERE current_streak = "l 1" | What was the result of the last 5 meetings for a team with an L 1 streak? | CREATE TABLE table_name_85 (last_5_meetings VARCHAR, current_streak VARCHAR) |
SELECT date FROM table_name_86 WHERE psoe = "36.1%" | Which date has a PSOE of 36.1%? | CREATE TABLE table_name_86 (date VARCHAR, psoe VARCHAR) |
SELECT roomName FROM Rooms ORDER BY basePrice | List the name of all rooms sorted by their prices. | CREATE TABLE Rooms (roomName VARCHAR, basePrice VARCHAR) |
SELECT wins FROM table_name_97 WHERE top_25 < 4 AND top_5 > 0 | What is Wins, when Top-25 is less than 4, and when Top-5 is greater than 0? | CREATE TABLE table_name_97 (wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) |
SELECT date FROM table_name_26 WHERE partner = "pere riba" | What date was the match where Daniel Gimeno-Traver's partner was pere riba? | CREATE TABLE table_name_26 (date VARCHAR, partner VARCHAR) |
SELECT MIN(internal_transfers) FROM table_17650725_1 | Name the least internal transfers | CREATE TABLE table_17650725_1 (internal_transfers INTEGER) |
SELECT country FROM table_name_48 WHERE television_service = "reteconomy" | What is the Country with Reteconomy as the Television service? | CREATE TABLE table_name_48 (country VARCHAR, television_service VARCHAR) |
SELECT AVG(events) FROM table_name_84 WHERE top_25 < 0 | What is the event average for a top-25 smaller than 0? | CREATE TABLE table_name_84 (events INTEGER, top_25 INTEGER) |
SELECT date FROM table_name_13 WHERE opponent = "at saskatchewan roughriders" | What is Date, when Opponent is At Saskatchewan Roughriders? | CREATE TABLE table_name_13 (date VARCHAR, opponent VARCHAR) |
SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas" | How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles? | CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR) |
SELECT snatch FROM table_16779068_5 WHERE body_weight = "737" | Name the snatch when body weight is 73.7 | CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR) |
SELECT MAX(week) FROM table_name_44 WHERE result = "l 24-0" | What is the Week of the game with a Result of L 24-0? | CREATE TABLE table_name_44 (week INTEGER, result VARCHAR) |
SELECT year_premiered FROM table_24224647_2 WHERE main_presenter = "Behzat Uighur" | What is every year premiered when Behzat Uighur is main presenter? | CREATE TABLE table_24224647_2 (year_premiered VARCHAR, main_presenter VARCHAR) |
SELECT listed FROM table_name_22 WHERE municipality = "florida" | What is the site for Florida? | CREATE TABLE table_name_22 (listed VARCHAR, municipality VARCHAR) |
SELECT AVG(bush_number) FROM table_name_70 WHERE others_number > 57 AND bush_percentage = "49.2%" | What is the average value of Bush# when the value for Others# is greater than 57, and the value for Bush% is 49.2%? | CREATE TABLE table_name_70 (bush_number INTEGER, others_number VARCHAR, bush_percentage VARCHAR) |
SELECT name FROM table_name_65 WHERE year_completion_expected > 2016 | What are the names for projects that will be completed after 2016? | CREATE TABLE table_name_65 (name VARCHAR, year_completion_expected INTEGER) |
SELECT date FROM table_name_27 WHERE away_team = "richmond" | Which date did richmond play as away? | CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR) |
SELECT directed_by FROM table_28466323_2 WHERE us_viewers__million_ = "2.01" | Who directed the episode watched by 2.01 million US viewers? | CREATE TABLE table_28466323_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR) |
SELECT AVG(age) FROM Dogs | What is the average age of all the dogs? | CREATE TABLE Dogs (age INTEGER) |
SELECT score FROM table_name_70 WHERE competition = "uefa euro 2012 qualifying" | Which Score has a Competition of uefa euro 2012 qualifying? | CREATE TABLE table_name_70 (score VARCHAR, competition VARCHAR) |
SELECT venue FROM table_name_61 WHERE away_team = "geelong" | What is the venue of the game where Geelong was the away team? | CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR) |
SELECT attendance FROM table_name_37 WHERE loss = "yates (3-2)" | What's the attendance of the game where there was a Loss of Yates (3-2)? | CREATE TABLE table_name_37 (attendance VARCHAR, loss VARCHAR) |
SELECT january FROM table_name_15 WHERE september = "nikki schieler" | Who is the January playmate with a September playmate Nikki Schieler? | CREATE TABLE table_name_15 (january VARCHAR, september VARCHAR) |
SELECT location__all_in_nagano__ FROM table_name_7 WHERE name = "sakakita bs" | What location has the name of Sakakita BS? | CREATE TABLE table_name_7 (location__all_in_nagano__ VARCHAR, name VARCHAR) |
SELECT SUM(played) FROM table_name_2 WHERE club = "barcelona b" AND wins < 11 | What is the number played for the Barcelona B club, with wins under 11? | CREATE TABLE table_name_2 (played INTEGER, club VARCHAR, wins VARCHAR) |
SELECT season FROM table_name_97 WHERE _number_of_episodes = 10 AND date_released = "1 april 2010" | What is Season, when # Of Episodes is "10", and when Date Released is "1 April 2010"? | CREATE TABLE table_name_97 (season VARCHAR, _number_of_episodes VARCHAR, date_released VARCHAR) |
SELECT MIN(production_code) FROM table_23097214_1 WHERE series__number = 153 | What is the production code for Episode 153 in the series? | CREATE TABLE table_23097214_1 (production_code INTEGER, series__number VARCHAR) |
SELECT MIN(apps) FROM table_name_22 WHERE level > 1 | What is the lowest Apps with more than 1 level? | CREATE TABLE table_name_22 (apps INTEGER, level INTEGER) |
SELECT MIN(dynamo) FROM table_name_12 WHERE spartak > 9 AND competition = "totals" AND draw > 24 | what is the least dynamo when spartak is more than 9, competition is totals and draw is more than 24? | CREATE TABLE table_name_12 (dynamo INTEGER, draw VARCHAR, spartak VARCHAR, competition VARCHAR) |
SELECT COUNT(win_percentage) FROM table_name_89 WHERE postseason = "did not qualify" AND rank > 8 | What number of win% has a postseason of did not qualify and rank larger than 8? | CREATE TABLE table_name_89 (win_percentage VARCHAR, postseason VARCHAR, rank VARCHAR) |
SELECT model_number FROM table_name_57 WHERE frequency = "2000mhz" AND voltage = "0.75-1.2" | Which Model number has a Frequency of 2000mhz and a Voltage of 0.75-1.2? | CREATE TABLE table_name_57 (model_number VARCHAR, frequency VARCHAR, voltage VARCHAR) |
SELECT tournament FROM table_name_94 WHERE opponent = "andreas haider-maurer" | Which tournament was andreas haider-maurer the opponent in? | CREATE TABLE table_name_94 (tournament VARCHAR, opponent VARCHAR) |
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1885" | What is 2nd Party, when Election is "1885"? | CREATE TABLE table_name_11 (election VARCHAR) |
SELECT series FROM table_name_1 WHERE release_date = "1946-01-05" | What is the Series of the Filmography with Release date of 1946-01-05? | CREATE TABLE table_name_1 (series VARCHAR, release_date VARCHAR) |
SELECT venue FROM table_name_20 WHERE result = "draw" | In what venue was the result a draw? | CREATE TABLE table_name_20 (venue VARCHAR, result VARCHAR) |
SELECT SUM(total) FROM table_name_33 WHERE year_s__won = "1994, 1997" | Total for 1994, 1997 years won? | CREATE TABLE table_name_33 (total INTEGER, year_s__won VARCHAR) |
SELECT SUM(losses) FROM table_name_60 WHERE wins < 2 AND rank = 10 AND appearances > 3 | Tell me the sum of losses for wins less than 2 and rank of 10 with appearances larger than 3 | CREATE TABLE table_name_60 (losses INTEGER, appearances VARCHAR, wins VARCHAR, rank VARCHAR) |
SELECT runner_s__up FROM table_name_67 WHERE margin_of_victory = "5 strokes" AND date = "nov 13, 1988" | For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up? | CREATE TABLE table_name_67 (runner_s__up VARCHAR, margin_of_victory VARCHAR, date VARCHAR) |
SELECT producer_s_ FROM table_name_7 WHERE track = 7 | Who produced track 7? | CREATE TABLE table_name_7 (producer_s_ VARCHAR, track VARCHAR) |
SELECT MIN(gold) FROM table_name_81 WHERE rank = "12" | What is the lowest gold medals of a rank 12 team? | CREATE TABLE table_name_81 (gold INTEGER, rank VARCHAR) |
SELECT pick__number FROM table_2508633_8 WHERE player = "Gary Kubiak" | What is the pick number if the player is Gary Kubiak? | CREATE TABLE table_2508633_8 (pick__number VARCHAR, player VARCHAR) |
SELECT race FROM table_name_96 WHERE nation = "kenya" AND time = "30:27" | What is the name of the race in Kenya with a time of 30:27? | CREATE TABLE table_name_96 (race VARCHAR, nation VARCHAR, time VARCHAR) |
SELECT latitude FROM table_16768245_5 WHERE name = "Philae Sulcus" | Philae Sulcus has a latitude of what? | CREATE TABLE table_16768245_5 (latitude VARCHAR, name VARCHAR) |
SELECT COUNT(points) FROM table_name_61 WHERE division = "conference" AND league_pos = "9th" AND lost < 13 | What is the total number of points for the conference division, a league position of 9th, and a lost result less than 13? | CREATE TABLE table_name_61 (points VARCHAR, lost VARCHAR, division VARCHAR, league_pos VARCHAR) |
SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams" | What 1997 has grand slams for the 1999? | CREATE TABLE table_name_23 (Id VARCHAR) |
SELECT played FROM table_name_74 WHERE points_against = "271" | For which play was the points 271? | CREATE TABLE table_name_74 (played VARCHAR, points_against VARCHAR) |
SELECT t2.catalog_level_name FROM catalog_contents AS t1 JOIN catalog_structure AS t2 ON t1.catalog_level_number = t2.catalog_level_number ORDER BY t1.price_in_dollars LIMIT 1 | What is the level name of the cheapest catalog (in USD)? | CREATE TABLE catalog_structure (catalog_level_name VARCHAR, catalog_level_number VARCHAR); CREATE TABLE catalog_contents (catalog_level_number VARCHAR, price_in_dollars VARCHAR) |
SELECT opponent FROM table_name_53 WHERE loss = "trout (7-4)" | Which opponent has a loss of trout (7-4)? | CREATE TABLE table_name_53 (opponent VARCHAR, loss VARCHAR) |
SELECT owner FROM table_name_18 WHERE name___format = "105.3 kool fm - hot adult contemporary" | Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary? | CREATE TABLE table_name_18 (owner VARCHAR, name___format VARCHAR) |
SELECT train_name FROM table_12095519_1 WHERE train_no = "15647/48" | What's the name of train number 15647/48? | CREATE TABLE table_12095519_1 (train_name VARCHAR, train_no VARCHAR) |
SELECT MAX(no) FROM table_21977704_1 WHERE entrant = "Automóvil Club Argentino" AND driver = "Benedicto Campos" | Name the most number for automóvil club argentino for benedicto campos | CREATE TABLE table_21977704_1 (no INTEGER, entrant VARCHAR, driver VARCHAR) |
SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df" | What is the Total Apps when League Cup Apps is 0 (1), and position is df? | CREATE TABLE table_name_55 (total_apps VARCHAR, league_cup_apps VARCHAR, position VARCHAR) |
SELECT county FROM table_name_90 WHERE ihsaa_class = "aa" AND location = "ferdinand" | What is the county with an AA IHSAA class in ferdinand? | CREATE TABLE table_name_90 (county VARCHAR, ihsaa_class VARCHAR, location VARCHAR) |
SELECT destination FROM table_29770377_1 WHERE route_via = "Kulitthurai,Neyyattinkara" | What is the destination of the route kulitthurai,neyyattinkara? | CREATE TABLE table_29770377_1 (destination VARCHAR, route_via VARCHAR) |
SELECT high_points FROM table_name_48 WHERE location_attendance = "philips arena 14,413" | Who had the high points when they played in Philips Arena 14,413? | CREATE TABLE table_name_48 (high_points VARCHAR, location_attendance VARCHAR) |
SELECT title FROM film WHERE LENGTH > 100 OR rating = 'PG' EXCEPT SELECT title FROM film WHERE replacement_cost > 200 | Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles. | CREATE TABLE film (title VARCHAR, replacement_cost INTEGER, LENGTH VARCHAR, rating VARCHAR) |
SELECT winner FROM table_name_58 WHERE finalist = "fc grün-weiß wolfen" | Who was the winner of fc grün-weiß wolfen? | CREATE TABLE table_name_58 (winner VARCHAR, finalist VARCHAR) |
SELECT country FROM table_name_41 WHERE score = 69 | Which country has 69 score? | CREATE TABLE table_name_41 (country VARCHAR, score VARCHAR) |
SELECT location FROM table_name_34 WHERE method = "tko" | Where was the method of tko? | CREATE TABLE table_name_34 (location VARCHAR, method VARCHAR) |
SELECT original_air_date FROM table_26565936_2 WHERE us_viewers__millions_ = "13.92" | What was the original air date for the episode with 13.92 million us viewers? | CREATE TABLE table_26565936_2 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT AVG(crowd) FROM table_name_39 WHERE away_team = "south melbourne" | What is the size of the crowd for the game where the away team South Melbourne played? | CREATE TABLE table_name_39 (crowd INTEGER, away_team VARCHAR) |
SELECT date FROM table_name_25 WHERE game = 22 | What was the date of the game number 22? | CREATE TABLE table_name_25 (date VARCHAR, game VARCHAR) |
SELECT team FROM table_2503102_2 WHERE listed_owner_s_ = "Chip Ganassi" | What team owns the car owned by chip ganassi? | CREATE TABLE table_2503102_2 (team VARCHAR, listed_owner_s_ VARCHAR) |
SELECT SUM(november) FROM table_name_40 WHERE game > 23 | What is the sum of November, when Game is greater than 23? | CREATE TABLE table_name_40 (november INTEGER, game INTEGER) |
SELECT position FROM table_name_35 WHERE mls_team = "colorado rapids" AND pick__number > 15 | What position does the Colorado Rapids pick after 15 play? | CREATE TABLE table_name_35 (position VARCHAR, mls_team VARCHAR, pick__number VARCHAR) |
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Fujitsu fi-6130 A4 Series Scanner" | What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner? | CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) |
SELECT name__year_commissioned_ FROM table_name_74 WHERE from_to = "karratha to port hedland" | What is the name of the line from Karratha to Port Hedland? | CREATE TABLE table_name_74 (name__year_commissioned_ VARCHAR, from_to VARCHAR) |
SELECT result FROM table_name_5 WHERE competition = "1982 president's cup" | What is the result when the competition is 1982 president's cup? | CREATE TABLE table_name_5 (result VARCHAR, competition VARCHAR) |
SELECT android_version FROM table WHERE code_name = "Lotus" | What is the Android version is the code name is Lotus? | CREATE TABLE table (android_version VARCHAR, code_name VARCHAR) |
SELECT commissioned FROM table_name_14 WHERE fate = "converted to laker, 1961; still in service" | When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned? | CREATE TABLE table_name_14 (commissioned VARCHAR, fate VARCHAR) |
SELECT date FROM table_name_14 WHERE fastest_lap = "jody scheckter" AND race = "french grand prix" | Tell me the date for jody scheckter being the fastest lap at the french grand prix | CREATE TABLE table_name_14 (date VARCHAR, fastest_lap VARCHAR, race VARCHAR) |
SELECT MIN(total) FROM table_name_82 WHERE bronze > 1 AND silver > 2 | What is the least total that had more Bronzes than 1 and more silvers than 2? | CREATE TABLE table_name_82 (total INTEGER, bronze VARCHAR, silver VARCHAR) |
SELECT MAX(games_played) FROM table_23346303_4 WHERE player = "Janae Stokes" | How many games did janae stokes play? | CREATE TABLE table_23346303_4 (games_played INTEGER, player VARCHAR) |
SELECT 1 AS st_leg FROM table_name_62 WHERE team__number2 = "bp. honvéd" | What is the 1st leg of bp. honvéd team #2? | CREATE TABLE table_name_62 (team__number2 VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.