question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the max pop of 2008 for selfoss?
CREATE TABLE table_2252745_1 (population_2008_07_01 INTEGER, administrative_centre VARCHAR)
SELECT MAX(population_2008_07_01) FROM table_2252745_1 WHERE administrative_centre = "Selfoss"
What is the value for the item "Class" when the value of the item "Wheels" is 137?
CREATE TABLE table_name_97 (class VARCHAR, wheels VARCHAR)
SELECT class FROM table_name_97 WHERE wheels = 137
What score has a game greater than 29, with 24-6 as the record?
CREATE TABLE table_name_6 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT score FROM table_name_6 WHERE game > 29 AND record = "24-6"
When Tom Purtzer of the United States played what is the maximum score?
CREATE TABLE table_name_94 (score INTEGER, country VARCHAR, player VARCHAR)
SELECT MAX(score) FROM table_name_94 WHERE country = "united states" AND player = "tom purtzer"
Name the date for princes park
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_87 WHERE venue = "princes park"
What is the attendance for the date of 11/11/01?
CREATE TABLE table_name_19 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_19 WHERE date = "11/11/01"
how many acc football titles have been won by the institution nicknamed tar heels?
CREATE TABLE table_28744929_1 (acc_football_titles VARCHAR, nickname VARCHAR)
SELECT acc_football_titles FROM table_28744929_1 WHERE nickname = "Tar Heels"
What opponent has tomko (1-1) as a loss?
CREATE TABLE table_name_24 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_24 WHERE loss = "tomko (1-1)"
how many times is the seasons 2 and the coach guy lowman?
CREATE TABLE table_name_92 (winning__percentage VARCHAR, seasons VARCHAR, coach VARCHAR)
SELECT COUNT(winning__percentage) FROM table_name_92 WHERE seasons = 2 AND coach = "guy lowman"
What championship was in 1985?
CREATE TABLE table_name_30 (championship VARCHAR, year VARCHAR)
SELECT championship FROM table_name_30 WHERE year = 1985
Which country won in 1986?
CREATE TABLE table_name_59 (country VARCHAR, year_s__won VARCHAR)
SELECT country FROM table_name_59 WHERE year_s__won = "1986"
WHAT IS THE TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON?
CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR)
SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon"
What is the result from 2003 from the US Open?
CREATE TABLE table_name_80 (tournament VARCHAR)
SELECT 2003 FROM table_name_80 WHERE tournament = "us open"
What is the number of votes for the Party of Labour?
CREATE TABLE table_name_86 (votes INTEGER, party VARCHAR)
SELECT MIN(votes) FROM table_name_86 WHERE party = "labour"
What are the distinct address type codes for all customer addresses?
CREATE TABLE customer_addresses (address_type_code VARCHAR)
SELECT DISTINCT address_type_code FROM customer_addresses
What university is houston dynamo affiliated with?
CREATE TABLE table_25518547_4 (affiliation VARCHAR, mls_team VARCHAR)
SELECT affiliation FROM table_25518547_4 WHERE mls_team = "Houston Dynamo"
What is the ministries number when duration is 4 years, 4 days (1,465 days)?
CREATE TABLE table_21422977_2 (ministries VARCHAR, duration VARCHAR)
SELECT ministries FROM table_21422977_2 WHERE duration = "4 years, 4 days (1,465 days)"
Which Tournament was played in NH in 2011?
CREATE TABLE table_name_38 (tournament VARCHAR)
SELECT tournament FROM table_name_38 WHERE 2011 = "nh"
who the reader of title department x?
CREATE TABLE table_20174050_23 (reader VARCHAR, title VARCHAR)
SELECT reader FROM table_20174050_23 WHERE title = "Department X"
What city joined the Independents conference after 1963?
CREATE TABLE table_name_26 (city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR)
SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = "independents"
What college did Richard Ticzon attend?
CREATE TABLE table_name_82 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_82 WHERE player = "richard ticzon"
what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?
CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT result FROM table_name_54 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012"
What is the lowest First Title, when All-Time is greater than 1, when Country is "United States (USA)", and when Amateur Era is greater than 17?
CREATE TABLE table_name_13 (first_title INTEGER, amateur_era VARCHAR, all_time VARCHAR, country VARCHAR)
SELECT MIN(first_title) FROM table_name_13 WHERE all_time > 1 AND country = "united states (usa)" AND amateur_era > 17
What is the total number of Round with a Method of submission (ankle lock), a Location of tokyo, japan, and a Record of 13-5-2?
CREATE TABLE table_name_84 (round INTEGER, record VARCHAR, method VARCHAR, location VARCHAR)
SELECT SUM(round) FROM table_name_84 WHERE method = "submission (ankle lock)" AND location = "tokyo, japan" AND record = "13-5-2"
What was the value in 2011 when value in 2009 was 82,003?
CREATE TABLE table_name_45 (Id VARCHAR)
SELECT 2011 FROM table_name_45 WHERE 2009 = "82,003"
What season saw 6 cup apps and 5 cup goals?
CREATE TABLE table_name_87 (season VARCHAR, cup_apps VARCHAR, cup_goals VARCHAR)
SELECT season FROM table_name_87 WHERE cup_apps = 6 AND cup_goals = 5
Find the id and weight of all pets whose age is older than 1.
CREATE TABLE pets (petid VARCHAR, weight VARCHAR, pet_age INTEGER)
SELECT petid, weight FROM pets WHERE pet_age > 1
What year has 14 moves and an opening of C54 Italian Game?
CREATE TABLE table_name_66 (year VARCHAR, moves VARCHAR, opening VARCHAR)
SELECT year FROM table_name_66 WHERE moves = 14 AND opening = "c54 italian game"
Show all video games and their types in the order of their names.
CREATE TABLE Video_games (gname VARCHAR, gtype VARCHAR)
SELECT gname, gtype FROM Video_games ORDER BY gname
What is the population that has an area of 715.58?
CREATE TABLE table_171250_2 (population VARCHAR, area_km_2 VARCHAR)
SELECT population FROM table_171250_2 WHERE area_km_2 = "715.58"
How many judges were there for the eliminated couple?
CREATE TABLE table_26375386_23 (judges VARCHAR, result VARCHAR)
SELECT judges FROM table_26375386_23 WHERE result = "Eliminated"
What is Score, when To Par is "+1", and when Player is "Mike Souchak"?
CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT score FROM table_name_7 WHERE to_par = "+1" AND player = "mike souchak"
How many people named Nick Lucas are on the show?
CREATE TABLE table_12441518_1 (portrayed_by VARCHAR, character VARCHAR)
SELECT COUNT(portrayed_by) FROM table_12441518_1 WHERE character = "Nick Lucas"
What's the median family income with a household income of $25,583?
CREATE TABLE table_name_72 (median_family_income VARCHAR, median_household_income VARCHAR)
SELECT median_family_income FROM table_name_72 WHERE median_household_income = "$25,583"
what is the average points when played is 9, name is ev pegnitz and position is larger than 1?
CREATE TABLE table_name_36 (points INTEGER, position VARCHAR, played VARCHAR, name VARCHAR)
SELECT AVG(points) FROM table_name_36 WHERE played = 9 AND name = "ev pegnitz" AND position > 1
On which date was Essendon the home team?
CREATE TABLE table_name_13 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_13 WHERE home_team = "essendon"
When nathaniel g. taylor (u) is the successor what is the vacator?
CREATE TABLE table_2147588_4 (vacator VARCHAR, successor VARCHAR)
SELECT vacator FROM table_2147588_4 WHERE successor = "Nathaniel G. Taylor (U)"
How many were drawn when 13 were lost?
CREATE TABLE table_17625749_3 (drawn VARCHAR, lost VARCHAR)
SELECT drawn FROM table_17625749_3 WHERE lost = "13"
What is the low goal for orders more than 939 during Seasons of 1996 – 2001?
CREATE TABLE table_name_17 (goals INTEGER, seasons VARCHAR, order VARCHAR)
SELECT MIN(goals) FROM table_name_17 WHERE seasons = "1996 – 2001" AND order > 939
find the name of people whose height is lower than the average.
CREATE TABLE people (name VARCHAR, height INTEGER)
SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people)
Which Saturday has a Thursday of 木曜日 mokuyōbi
CREATE TABLE table_name_8 (saturday VARCHAR, thursday VARCHAR)
SELECT saturday FROM table_name_8 WHERE thursday = "木曜日 mokuyōbi"
What are the quarterfinalists when the runner up is andrew pattison?
CREATE TABLE table_29302816_8 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT quarterfinalists FROM table_29302816_8 WHERE runner_up = "Andrew Pattison"
Who is the owner with a Hot Adult Contemporary format?
CREATE TABLE table_name_29 (owner VARCHAR, format VARCHAR)
SELECT owner FROM table_name_29 WHERE format = "hot adult contemporary"
What percentage of voters chose McCain in the county where 1.1% of voters voted third party?
CREATE TABLE table_20278716_2 (mccain__percentage VARCHAR, others__percentage VARCHAR)
SELECT mccain__percentage FROM table_20278716_2 WHERE others__percentage = "1.1%"
What is the mpg-UK urban (cold) for a fuel type of diesel, extraurban MPG in the UK over 68.9, engine capacity of 1422, and L/100km urban (cold) over 5.1?
CREATE TABLE table_name_8 (mpg_uk_urban__cold_ VARCHAR, l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_extra_urban VARCHAR)
SELECT mpg_uk_urban__cold_ FROM table_name_8 WHERE fuel_type = "diesel" AND mpg_uk_extra_urban > 68.9 AND engine_capacity = 1422 AND l_100km_urban__cold_ > 5.1
Name the most extra points for right halfback
CREATE TABLE table_14342480_5 (extra_points INTEGER, position VARCHAR)
SELECT MAX(extra_points) FROM table_14342480_5 WHERE position = "Right halfback"
What grid has 24 points?
CREATE TABLE table_name_88 (grid VARCHAR, points VARCHAR)
SELECT grid FROM table_name_88 WHERE points = "24"
when deland is the fcsl team and 2008 is the year played who is the mlb team?
CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR)
SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand"
What was the outcome on 2 December 2012?
CREATE TABLE table_name_26 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_26 WHERE date = "2 december 2012"
When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?
CREATE TABLE table_14319023_2 (mixed_doubles VARCHAR, girls_doubles VARCHAR)
SELECT mixed_doubles FROM table_14319023_2 WHERE girls_doubles = "Anneke Feinya Agustin Wenny Setiawati"
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 table_name_77 (title VARCHAR, release_date VARCHAR, director VARCHAR, production_num VARCHAR, series VARCHAR)
SELECT title FROM table_name_77 WHERE production_num > 6209 AND series = "mm" AND director = "friz freleng" AND release_date = "1934-11-03"
Which 20 Questions has a Cover model of rena mero , torrie wilson (two alternative covers)?
CREATE TABLE table_name_60 (cover_model VARCHAR)
SELECT 20 AS _questions FROM table_name_60 WHERE cover_model = "rena mero , torrie wilson (two alternative covers)"
Which 1988 has a 1985 of 2r?
CREATE TABLE table_name_54 (Id VARCHAR)
SELECT 1988 FROM table_name_54 WHERE 1985 = "2r"
What European Cup is in Israeli Premier League?
CREATE TABLE table_name_24 (european_cup VARCHAR, national_league VARCHAR)
SELECT european_cup FROM table_name_24 WHERE national_league = "israeli premier league"
How many player with total points of 75
CREATE TABLE table_14342367_15 (player VARCHAR, total_points VARCHAR)
SELECT COUNT(player) FROM table_14342367_15 WHERE total_points = 75
What is the rank by average for the team who averaged 22.8?
CREATE TABLE table_25391981_3 (rank_by_average INTEGER, average VARCHAR)
SELECT MIN(rank_by_average) FROM table_25391981_3 WHERE average = "22.8"
What is Venue, when Date is "14/12/1996"?
CREATE TABLE table_name_44 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_44 WHERE date = "14/12/1996"
who won basketball when ashland won track & field and cross country
CREATE TABLE table_16423070_4 (basketball VARCHAR, cross_country VARCHAR, track_ VARCHAR, _field VARCHAR)
SELECT basketball FROM table_16423070_4 WHERE track_ & _field = "Ashland" AND cross_country = "Ashland"
If Notre Dame had a pick larger than 5, what's the overall pick?
CREATE TABLE table_name_26 (overall INTEGER, college VARCHAR, pick VARCHAR)
SELECT MAX(overall) FROM table_name_26 WHERE college = "notre dame" AND pick > 5
What team was c1 class, had over 331 laps after 1990?
CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR)
SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990
Which University's soccer stadium in named Moncton Stadium?
CREATE TABLE table_27369069_1 (university VARCHAR, soccer_stadium VARCHAR)
SELECT university FROM table_27369069_1 WHERE soccer_stadium = "Moncton Stadium"
What is the music label with the catalogue number enocd 10?
CREATE TABLE table_name_36 (music_label VARCHAR, catalogue_number VARCHAR)
SELECT music_label FROM table_name_36 WHERE catalogue_number = "enocd 10"
What was the Result in Year 1973?
CREATE TABLE table_name_97 (result VARCHAR, year VARCHAR)
SELECT result FROM table_name_97 WHERE year = 1973
Name the average Played with a Points of 0*?
CREATE TABLE table_name_72 (played INTEGER, points VARCHAR)
SELECT AVG(played) FROM table_name_72 WHERE points = "0*"
How many positions have figueirense as the team, with a played greater than 38?
CREATE TABLE table_name_39 (position VARCHAR, team VARCHAR, played VARCHAR)
SELECT COUNT(position) FROM table_name_39 WHERE team = "figueirense" AND played > 38
How many teachers does the student named MADLOCK RAY have?
CREATE TABLE teachers (classroom VARCHAR); CREATE TABLE list (classroom VARCHAR, firstname VARCHAR, lastname VARCHAR)
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.firstname = "MADLOCK" AND T1.lastname = "RAY"
How many have are model 2.4 awd?
CREATE TABLE table_1147705_1 (engine_type VARCHAR, model VARCHAR)
SELECT COUNT(engine_type) FROM table_1147705_1 WHERE model = "2.4 AWD"
What is the first appearance of the character played by Obdul Reid?
CREATE TABLE table_26240046_1 (first_appearance VARCHAR, played_by VARCHAR)
SELECT first_appearance FROM table_26240046_1 WHERE played_by = "Obdul Reid"
When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?
CREATE TABLE table_name_12 (term_start VARCHAR, term_end VARCHAR, date_of_birth VARCHAR)
SELECT term_start FROM table_name_12 WHERE term_end = "1919" AND date_of_birth = "january 8, 1859"
Show all date and share count of transactions.
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, share_count VARCHAR)
SELECT date_of_transaction, share_count FROM TRANSACTIONS
result is lost re-election republican gain, what is the district?
CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR)
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain"
What is the lowest order with a Minister that is joe hockey?
CREATE TABLE table_name_66 (order INTEGER, minister VARCHAR)
SELECT MIN(order) FROM table_name_66 WHERE minister = "joe hockey"
Who had the highest points of the game on May 27?
CREATE TABLE table_name_26 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_26 WHERE date = "may 27"
What player attended Graceland College?
CREATE TABLE table_name_94 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_94 WHERE college = "graceland"
What was the game when high points was david lee (30)
CREATE TABLE table_23248869_8 (game INTEGER, high_points VARCHAR)
SELECT MIN(game) FROM table_23248869_8 WHERE high_points = "David Lee (30)"
What country id Bob Rosburg from?
CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_95 WHERE player = "bob rosburg"
What player was born in 1978 and smaller than 1.92?
CREATE TABLE table_name_31 (current_club VARCHAR, height VARCHAR, year_born VARCHAR)
SELECT current_club FROM table_name_31 WHERE height < 1.92 AND year_born > 1978
What is the smallest amount of points for parmalat forti ford entrant later than 1995?
CREATE TABLE table_name_86 (points INTEGER, entrant VARCHAR, year VARCHAR)
SELECT MIN(points) FROM table_name_86 WHERE entrant = "parmalat forti ford" AND year > 1995
How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?
CREATE TABLE table_name_28 (years_played INTEGER, singles_win_loss VARCHAR, first_year_played VARCHAR)
SELECT SUM(years_played) FROM table_name_28 WHERE singles_win_loss = "4-9" AND first_year_played < 1999
What is the number of people in attendance when venue shows A, and Di Matteo, M. Hughes were the scorers?
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, scorers VARCHAR)
SELECT SUM(attendance) FROM table_name_99 WHERE venue = "a" AND scorers = "di matteo, m. hughes"
How many date of successor seated is new jersey 2nd in the district?
CREATE TABLE table_225205_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT COUNT(date_successor_seated) FROM table_225205_4 WHERE district = "New Jersey 2nd"
Which Total has a Name of alex mcleish category:articles with hcards, and a League smaller than 494?
CREATE TABLE table_name_25 (total INTEGER, name VARCHAR, league VARCHAR)
SELECT AVG(total) FROM table_name_25 WHERE name = "alex mcleish category:articles with hcards" AND league < 494
What film was directed by Sandro Aguilar?
CREATE TABLE table_name_80 (film VARCHAR, director_s_ VARCHAR)
SELECT film FROM table_name_80 WHERE director_s_ = "sandro aguilar"
Which player has less than 201 games, is ranked 2, and played between 2007-2012?
CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR)
SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012"
What day was geelong the home team?
CREATE TABLE table_name_81 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_81 WHERE home_team = "geelong"
In which title was Ann Rutherford the leading lady for Joseph Kane?
CREATE TABLE table_name_73 (title VARCHAR, leading_lady VARCHAR, director VARCHAR)
SELECT title FROM table_name_73 WHERE leading_lady = "ann rutherford" AND director = "joseph kane"
What was the attendance when Essendon played as the home team?
CREATE TABLE table_name_42 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon"
Who was North Melbourne's home opponent?
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_33 WHERE away_team = "north melbourne"
How many times does an occurance happen in June when it happens on NOvember 3, 1975?
CREATE TABLE table_25235489_2 (june_10_11 VARCHAR, november_3 VARCHAR)
SELECT COUNT(june_10_11) FROM table_25235489_2 WHERE november_3 = "november_3, 1975"
Who is the successor when the reason for change is died November 11, 1845?
CREATE TABLE table_225205_4 (successor VARCHAR, reason_for_change VARCHAR)
SELECT successor FROM table_225205_4 WHERE reason_for_change = "Died November 11, 1845"
WHAT IS THE TO PAR FOR ERNIE ELS?
CREATE TABLE table_name_44 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_44 WHERE player = "ernie els"
Name the Record of Visitor of toronto st. pats with a Score of 5–4 and a Home of ottawa senators? Question 5
CREATE TABLE table_name_48 (record VARCHAR, home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT record FROM table_name_48 WHERE visitor = "toronto st. pats" AND score = "5–4" AND home = "ottawa senators"
Name the record for june 7
CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR)
SELECT record FROM table_17104539_9 WHERE date = "June 7"
Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?
CREATE TABLE table_name_56 (elevator VARCHAR, order_and_title VARCHAR)
SELECT elevator FROM table_name_56 WHERE order_and_title = "cardinal-deacon of s. nicola in carcere tulliano"
WHAT WAS THE SCORE IN THE FINAL AGAINST RABIE CHAKI?
CREATE TABLE table_name_92 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_92 WHERE opponent_in_the_final = "rabie chaki"
When Spencer is the county what is total of the population (2010) (rank)?
CREATE TABLE table_14253123_1 (population__2010___rank_ VARCHAR, county_name VARCHAR)
SELECT COUNT(population__2010___rank_) FROM table_14253123_1 WHERE county_name = "Spencer"
Which Plautdietsch has Dutch of maken?
CREATE TABLE table_name_61 (plautdietsch VARCHAR, dutch VARCHAR)
SELECT plautdietsch FROM table_name_61 WHERE dutch = "maken"
What is the affiliation for the Cuddalore District?
CREATE TABLE table_name_18 (affiliation VARCHAR, district VARCHAR)
SELECT affiliation FROM table_name_18 WHERE district = "cuddalore district"
what is the highest number of goals did the player with 27 asists score
CREATE TABLE table_19722233_5 (field_goals INTEGER, assists VARCHAR)
SELECT MAX(field_goals) FROM table_19722233_5 WHERE assists = 27
What did the team score while away in moorabbin oval?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_30 WHERE venue = "moorabbin oval"