question
stringlengths 12
244
| context
stringlengths 27
489
| answer
stringlengths 18
557
|
---|---|---|
what is the sum of league goals when the fa cup goals is more than 0? | CREATE TABLE table_name_51 (league_goals INTEGER, fa_cup_goals INTEGER) | SELECT SUM(league_goals) FROM table_name_51 WHERE fa_cup_goals > 0 |
What is the name of the member country that has a Population of 1,341,664? | CREATE TABLE table_name_71 (member_countries VARCHAR, population VARCHAR) | SELECT member_countries FROM table_name_71 WHERE population = "1,341,664" |
List in alphabetic order all different amenities. | CREATE TABLE dorm_amenity (amenity_name VARCHAR) | SELECT amenity_name FROM dorm_amenity ORDER BY amenity_name |
Which Conference Semifinals has a Record of 55–27? | CREATE TABLE table_name_73 (conference_semifinals VARCHAR, record VARCHAR) | SELECT conference_semifinals FROM table_name_73 WHERE record = "55–27" |
What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík? | CREATE TABLE table_name_57 (population INTEGER, municipality VARCHAR, markatal VARCHAR, inhabitants_per_km² VARCHAR) | SELECT SUM(population) FROM table_name_57 WHERE markatal > 48 AND inhabitants_per_km² > 24 AND municipality = "runavík" |
Spain with a total of more than 4 medals is in what rank? | CREATE TABLE table_name_15 (rank VARCHAR, total VARCHAR, nation VARCHAR) | SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "spain" |
When winter pines is the fcsl team how many mlb teams are there? | CREATE TABLE table_18373863_2 (mlb_team VARCHAR, fcsl_team VARCHAR) | SELECT COUNT(mlb_team) FROM table_18373863_2 WHERE fcsl_team = "Winter Pines" |
Find the name of project that continues for the longest time. | CREATE TABLE projects (name VARCHAR, hours VARCHAR) | SELECT name FROM projects ORDER BY hours DESC LIMIT 1 |
What is the special when the challenger is dominique bouchet? | CREATE TABLE table_23982399_12 (special VARCHAR, challenger VARCHAR) | SELECT special FROM table_23982399_12 WHERE challenger = "Dominique Bouchet" |
What is the smallest number of total medals for Georgia with 0 silver and 1 bronze? | CREATE TABLE table_name_87 (total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) | SELECT MIN(total) FROM table_name_87 WHERE silver > 0 AND nation = "georgia" AND bronze < 1 |
Which team has 48 rebounds? | CREATE TABLE table_name_62 (team VARCHAR, rebounds VARCHAR) | SELECT team FROM table_name_62 WHERE rebounds = 48 |
Which captain has Gintare Karpaviciute as an alternate? | CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR) | SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" |
What series episode has stetson hats (part 1) under segment C? | CREATE TABLE table_name_22 (series_ep VARCHAR, segment_c VARCHAR) | SELECT series_ep FROM table_name_22 WHERE segment_c = "stetson hats (part 1)" |
how many teams won at golf when wooster won soccer | CREATE TABLE table_16423070_4 (golf VARCHAR, soccer VARCHAR) | SELECT COUNT(golf) FROM table_16423070_4 WHERE soccer = "Wooster" |
What power plant was commissioned in 2008? | CREATE TABLE table_name_97 (power_plant VARCHAR, year_of_commission VARCHAR) | SELECT power_plant FROM table_name_97 WHERE year_of_commission = 2008 |
What is the average Gold when silver is more than 2, and bronze is more than 1 | CREATE TABLE table_name_59 (gold INTEGER, silver VARCHAR, bronze VARCHAR) | SELECT AVG(gold) FROM table_name_59 WHERE silver > 2 AND bronze > 1 |
Which Date has a Result of l 14–13? | CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR) | SELECT date FROM table_name_88 WHERE result = "l 14–13" |
What is galway county's total? | CREATE TABLE table_name_80 (total INTEGER, county VARCHAR) | SELECT SUM(total) FROM table_name_80 WHERE county = "galway" |
Please show the different statuses of cities and the average population of cities with each status. | CREATE TABLE city (Status VARCHAR, Population INTEGER) | SELECT Status, AVG(Population) FROM city GROUP BY Status |
What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"? | CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR) | SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta" |
WHo is the Asian rider classification that has ruslan ivanov on the Stage of 9? | CREATE TABLE table_name_43 (asian_rider_classification VARCHAR, general_classification VARCHAR, stage VARCHAR) | SELECT asian_rider_classification FROM table_name_43 WHERE general_classification = "ruslan ivanov" AND stage = "9" |
What is the rank # of the swimmer in Lane 5? | CREATE TABLE table_name_21 (rank VARCHAR, lane VARCHAR) | SELECT COUNT(rank) FROM table_name_21 WHERE lane = 5 |
What is the 1st round with a team 2 paris sg (d1)? | CREATE TABLE table_name_91 (team_2 VARCHAR) | SELECT 1 AS st_round FROM table_name_91 WHERE team_2 = "paris sg (d1)" |
What is Class, when Power is 78 Watts? | CREATE TABLE table_name_15 (class VARCHAR, power VARCHAR) | SELECT class FROM table_name_15 WHERE power = "78 watts" |
What was the Away team score for Footscray? | CREATE TABLE table_name_44 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_44 WHERE away_team = "footscray" |
Which team has an Away team of carlton? | CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_58 WHERE away_team = "carlton" |
Which team has the team captain Jon Newsome? | CREATE TABLE table_name_81 (team VARCHAR, captain VARCHAR) | SELECT team FROM table_name_81 WHERE captain = "jon newsome" |
What was the opponent in the final when the score was 6–3, 2–6, 7–5? | CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, score VARCHAR) | SELECT opponent_in_the_final FROM table_name_69 WHERE score = "6–3, 2–6, 7–5" |
What is Administration of Oaths, when Rights of Audience is Yes, and when Reserved Instruments is Yes? | CREATE TABLE table_name_43 (administration_of_oaths VARCHAR, rights_of_audience VARCHAR, reserved_instruments VARCHAR) | SELECT administration_of_oaths FROM table_name_43 WHERE rights_of_audience = "yes" AND reserved_instruments = "yes" |
Name the 1999 with 2011 of 2r | CREATE TABLE table_name_3 (Id VARCHAR) | SELECT 1999 FROM table_name_3 WHERE 2011 = "2r" |
What rank did the time of 7:31.90 receive? | CREATE TABLE table_name_62 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_62 WHERE time = "7:31.90" |
What year was Waynesburg University founded in Pennsylvania? | CREATE TABLE table_name_82 (year_founded VARCHAR, state__province VARCHAR, institution_name VARCHAR) | SELECT year_founded FROM table_name_82 WHERE state__province = "pennsylvania" AND institution_name = "waynesburg university" |
How many times was Jillian Grace the centerfold model? | CREATE TABLE table_1566852_6 (date VARCHAR, centerfold_model VARCHAR) | SELECT COUNT(date) FROM table_1566852_6 WHERE centerfold_model = "Jillian Grace" |
What was the total number for the Bulls when they were at Old Trafford? | CREATE TABLE table_name_27 (bulls VARCHAR, venue VARCHAR) | SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford" |
Name the number of proto austronesian for *natu | CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR) | SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu" |
What is the Visitor of the Montreal Canadiens Home game with a Record of 6–4–4? | CREATE TABLE table_name_78 (visitor VARCHAR, home VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_78 WHERE home = "montreal canadiens" AND record = "6–4–4" |
What is the name of the department that has the largest number of students enrolled? | CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) | SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1 |
What are the titles of the episodes which had 1.10 million U.S. viewers? | CREATE TABLE table_23399481_4 (title VARCHAR, us_viewers__in_millions_ VARCHAR) | SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.10" |
Where was the game that had an attendance of 39,889? | CREATE TABLE table_name_64 (game_site VARCHAR, attendance VARCHAR) | SELECT game_site FROM table_name_64 WHERE attendance = "39,889" |
What is the result of the 2007 AFC asian cup? | CREATE TABLE table_name_19 (result VARCHAR, competition VARCHAR) | SELECT result FROM table_name_19 WHERE competition = "2007 afc asian cup" |
What is the highest number of not usable satellites when there are more than 0 launch failures, less than 30 retired, and the block is I? | CREATE TABLE table_name_30 (not_usable INTEGER, block VARCHAR, launch_failures VARCHAR, retired VARCHAR) | SELECT MAX(not_usable) FROM table_name_30 WHERE launch_failures > 0 AND retired < 30 AND block = "block i" |
how many native american with whites being 1.0% | CREATE TABLE table_1333612_1 (native_american VARCHAR, whites VARCHAR) | SELECT COUNT(native_american) FROM table_1333612_1 WHERE whites = "1.0%" |
Which Overall has a Name of markus koch? | CREATE TABLE table_name_39 (overall INTEGER, name VARCHAR) | SELECT SUM(overall) FROM table_name_39 WHERE name = "markus koch" |
What's the biggest Bronze that has less than 0 Silvers? | CREATE TABLE table_name_73 (bronze INTEGER, silver INTEGER) | SELECT MAX(bronze) FROM table_name_73 WHERE silver < 0 |
Who was the host team at Louisiana Superdome when the final score was 10-20? | CREATE TABLE table_name_21 (host_team VARCHAR, stadium VARCHAR, final_score VARCHAR) | SELECT host_team FROM table_name_21 WHERE stadium = "louisiana superdome" AND final_score = "10-20" |
How many people attended the game when sydney spirit was at home? | CREATE TABLE table_name_58 (crowd VARCHAR, home_team VARCHAR) | SELECT crowd FROM table_name_58 WHERE home_team = "sydney spirit" |
What is the average Year, when Date is "04.01 April 1"? | CREATE TABLE table_name_64 (year INTEGER, date VARCHAR) | SELECT AVG(year) FROM table_name_64 WHERE date = "04.01 april 1" |
What is the Airport with an IATA of TRZ? | CREATE TABLE table_name_51 (airport VARCHAR, iata VARCHAR) | SELECT airport FROM table_name_51 WHERE iata = "trz" |
What is the total number of overall draft picks for player whose position is C and was picked after round 9? | CREATE TABLE table_name_63 (overall VARCHAR, position VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_63 WHERE position = "c" AND round > 9 |
What rank is Miller Barber with more than 11 wins? | CREATE TABLE table_name_35 (rank VARCHAR, wins VARCHAR, player VARCHAR) | SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber" |
What year did they finish 1st, southern? | CREATE TABLE table_12002388_1 (year INTEGER, reg_season VARCHAR) | SELECT MAX(year) FROM table_12002388_1 WHERE reg_season = "1st, Southern" |
What was the record set during the game played at Hubert H. Humphrey Metrodome? | CREATE TABLE table_13258851_2 (record VARCHAR, game_site VARCHAR) | SELECT record FROM table_13258851_2 WHERE game_site = "Hubert H. Humphrey Metrodome" |
In the country where Bush won 4333 votes, what percentage did other receive? | CREATE TABLE table_13625792_1 (other__percentage VARCHAR, bush__number VARCHAR) | SELECT other__percentage FROM table_13625792_1 WHERE bush__number = 4333 |
what is the date when scorers is parkinson? | CREATE TABLE table_name_23 (date VARCHAR, scorers VARCHAR) | SELECT date FROM table_name_23 WHERE scorers = "parkinson" |
When was the show first aired that was viewed by 3.57 million U.S. viewers? | CREATE TABLE table_11694832_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) | SELECT original_air_date FROM table_11694832_1 WHERE us_viewers__millions_ = "3.57" |
What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team? | CREATE TABLE table_20079931_4 (highest_scoring_team VARCHAR, circuit_location VARCHAR, winning_team VARCHAR) | SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = "Ring Knutstorp" AND winning_team = "Polestar Racing" |
What is the smallest grid for Ayrton Senna? | CREATE TABLE table_name_21 (grid INTEGER, driver VARCHAR) | SELECT MIN(grid) FROM table_name_21 WHERE driver = "ayrton senna" |
Name the representating for ingenjör andrées luftfärd | CREATE TABLE table_name_82 (representing VARCHAR, original_title VARCHAR) | SELECT representing FROM table_name_82 WHERE original_title = "ingenjör andrées luftfärd" |
What was the result of the game played in Venue H? | CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_27 WHERE venue = "h" |
What is the place with a 71-72-70=213 score? | CREATE TABLE table_name_28 (place VARCHAR, score VARCHAR) | SELECT place FROM table_name_28 WHERE score = 71 - 72 - 70 = 213 |
What is the listed chord for a Minor seventh of F? | CREATE TABLE table_name_23 (chord VARCHAR, minor_seventh VARCHAR) | SELECT chord FROM table_name_23 WHERE minor_seventh = "f" |
What is the Country of the Player with a To par of –5? | CREATE TABLE table_name_46 (country VARCHAR, to_par VARCHAR) | SELECT country FROM table_name_46 WHERE to_par = "–5" |
Where does the staff member with the first name Elsa live? | CREATE TABLE staff (address_id VARCHAR, first_name VARCHAR); CREATE TABLE address (address VARCHAR, address_id VARCHAR) | SELECT T2.address FROM staff AS T1 JOIN address AS T2 ON T1.address_id = T2.address_id WHERE T1.first_name = 'Elsa' |
who danced 11 and finished at more than a 2.0 | CREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR) | SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.0 |
What stadium hosted the June 7 game and how many visitors were there? | CREATE TABLE table_17103645_9 (location_attendance VARCHAR, date VARCHAR) | SELECT location_attendance FROM table_17103645_9 WHERE date = "June 7" |
find the id, name and age for visitors who visited some museums more than once. | CREATE TABLE visit (visitor_id VARCHAR); CREATE TABLE visitor (id VARCHAR, name VARCHAR, age VARCHAR) | SELECT t1.id, t1.name, t1.age FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t1.id HAVING COUNT(*) > 1 |
What is the lowest average score where the evening gown score was 8.811? | CREATE TABLE table_name_48 (average INTEGER, evening_gown VARCHAR) | SELECT MIN(average) FROM table_name_48 WHERE evening_gown = 8.811 |
What is the average win with a top 5 greater than 2 and a top 10 less than 5? | CREATE TABLE table_name_99 (wins INTEGER, top_5 VARCHAR, top_10 VARCHAR) | SELECT AVG(wins) FROM table_name_99 WHERE top_5 > 2 AND top_10 < 5 |
How many different high rebound results are there for the game number 26? | CREATE TABLE table_23286223_5 (high_rebounds VARCHAR, game VARCHAR) | SELECT COUNT(high_rebounds) FROM table_23286223_5 WHERE game = 26 |
Name the broadcast date for 6.0 viewers | CREATE TABLE table_2102782_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR) | SELECT broadcast_date FROM table_2102782_1 WHERE viewers__in_millions_ = "6.0" |
On what date were 5 built with 4-4-2t wheels? | CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR) | SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t" |
What Soap Opera with the character Teemu Luotola? | CREATE TABLE table_name_81 (soap_opera VARCHAR, character VARCHAR) | SELECT soap_opera FROM table_name_81 WHERE character = "teemu luotola" |
How many venues were there for the match on November 6? | CREATE TABLE table_19576091_1 (venue VARCHAR, date VARCHAR) | SELECT COUNT(venue) FROM table_19576091_1 WHERE date = "November 6" |
What's the Overall average that has brad scioli, and a Pick # larger than 5? | CREATE TABLE table_name_60 (overall INTEGER, name VARCHAR, pick__number VARCHAR) | SELECT AVG(overall) FROM table_name_60 WHERE name = "brad scioli" AND pick__number > 5 |
Name the result for friendly competition on 9 october 2010 | CREATE TABLE table_name_79 (result VARCHAR, competition VARCHAR, date VARCHAR) | SELECT result FROM table_name_79 WHERE competition = "friendly" AND date = "9 october 2010" |
What is the result when the attendance is 54,814? | CREATE TABLE table_name_7 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_7 WHERE attendance = "54,814" |
What is the fewest number of games played? | CREATE TABLE table_16034882_2 (games_played INTEGER) | SELECT MIN(games_played) FROM table_16034882_2 |
1960 larger than 196, and a 1996[2] smaller than 726, and a 1980 larger than 125, and a 1990 larger than 848, what is the highest 1950? | CREATE TABLE table_name_13 (Id VARCHAR) | SELECT MAX(1950) FROM table_name_13 WHERE 1960 > 196 AND 1996[2] < 726 AND 1980 > 125 AND 1990 > 848 |
What is the destination of the route kulitthurai,neyyattinkara? | CREATE TABLE table_29770377_1 (destination VARCHAR, route_via VARCHAR) | SELECT destination FROM table_29770377_1 WHERE route_via = "Kulitthurai,Neyyattinkara" |
How many different combinations of team colors are there in all the schools in Maroa, Illinois? | CREATE TABLE table_29612224_1 (colors VARCHAR, location VARCHAR) | SELECT COUNT(colors) FROM table_29612224_1 WHERE location = "Maroa, Illinois" |
If hardware colours is 8 what would the char cells be? | CREATE TABLE table_1701371_2 (char_cells VARCHAR, hardware_colours VARCHAR) | SELECT char_cells FROM table_1701371_2 WHERE hardware_colours = 8 |
What launcher had spacecrafts that did 37 orbital flights? | CREATE TABLE table_179174_2 (launcher VARCHAR, flights VARCHAR) | SELECT launcher FROM table_179174_2 WHERE flights = "37 Orbital" |
What was the result of the game played in front of 65,473? | CREATE TABLE table_name_19 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_19 WHERE attendance = "65,473" |
Which Location has a Frequency of 102.5 fm? | CREATE TABLE table_name_4 (location VARCHAR, frequency VARCHAR) | SELECT location FROM table_name_4 WHERE frequency = "102.5 fm" |
what's the date where location is illinois | CREATE TABLE table_11622255_1 (date VARCHAR, location VARCHAR) | SELECT date FROM table_11622255_1 WHERE location = "Illinois" |
What year did Senator Ken Armbrister take office? | CREATE TABLE table_name_17 (took_office VARCHAR, senator VARCHAR) | SELECT took_office FROM table_name_17 WHERE senator = "ken armbrister" |
What is the airport with the IATA MEL? | CREATE TABLE table_17419587_1 (airport VARCHAR, iata VARCHAR) | SELECT COUNT(airport) FROM table_17419587_1 WHERE iata = "MEL" |
Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville? | CREATE TABLE table_name_79 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR) | SELECT ihsaa_football_class FROM table_name_79 WHERE ihsaa_class = "aaa" AND location = "nashville" |
What is the lowest Round of joe patterson? | CREATE TABLE table_name_79 (round INTEGER, player VARCHAR) | SELECT MIN(round) FROM table_name_79 WHERE player = "joe patterson" |
What language is telemarket for you? | CREATE TABLE table_name_3 (language VARCHAR, television_service VARCHAR) | SELECT language FROM table_name_3 WHERE television_service = "telemarket for you" |
What opponent had an attendance of 10,089? | CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR) | SELECT opponent FROM table_name_11 WHERE attendance = "10,089" |
What chassis doe Ross Davis use? | CREATE TABLE table_name_51 (chassis VARCHAR, drivers VARCHAR) | SELECT chassis FROM table_name_51 WHERE drivers = "ross davis" |
How many starts had an avg start of less than 37 and won $1,636,827? | CREATE TABLE table_name_66 (starts INTEGER, winnings VARCHAR, avg_start VARCHAR) | SELECT SUM(starts) FROM table_name_66 WHERE winnings = "$1,636,827" AND avg_start < 37 |
Who had the highest rebounds in the game where the record was 27-54? | CREATE TABLE table_23186738_10 (high_rebounds VARCHAR, record VARCHAR) | SELECT high_rebounds FROM table_23186738_10 WHERE record = "27-54" |
How many state delegates did Candidate Mitt Romney have? | CREATE TABLE table_16186152_1 (state_delegate INTEGER, candidate VARCHAR) | SELECT MAX(state_delegate) FROM table_16186152_1 WHERE candidate = "Mitt Romney" |
What is the Record with a Game Site that is joe robbie stadium? | CREATE TABLE table_name_3 (record VARCHAR, game_site VARCHAR) | SELECT record FROM table_name_3 WHERE game_site = "joe robbie stadium" |
What date did episode 4 in the season originally air? | CREATE TABLE table_24425976_7 (original_air_date VARCHAR, season VARCHAR) | SELECT original_air_date FROM table_24425976_7 WHERE season = 4 |
How many laps were in 1955? | CREATE TABLE table_name_89 (laps VARCHAR, year VARCHAR) | SELECT COUNT(laps) FROM table_name_89 WHERE year = "1955" |
how many times is the fa cup apps more than 0, the position mf and the league goals 4? | CREATE TABLE table_name_52 (total_goals VARCHAR, league_goals VARCHAR, fa_cup_apps VARCHAR, position VARCHAR) | SELECT COUNT(total_goals) FROM table_name_52 WHERE fa_cup_apps > 0 AND position = "mf" AND league_goals = 4 |
How many sets were played in 2007 at the tournament that had 4R in 2011 and 2R in 2009? | CREATE TABLE table_name_89 (Id VARCHAR) | SELECT 2007 FROM table_name_89 WHERE 2011 = "4r" AND 2009 = "2r" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.