question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Find the first names of students with age above 22.
CREATE TABLE STUDENT (Fname VARCHAR, Age INTEGER)
SELECT Fname FROM STUDENT WHERE Age > 22
what percent of slovenes did the village called čahorče in slovenian have in 1991?
CREATE TABLE table_10797463_1 (percent_of_slovenes_1991 VARCHAR, village__slovenian_ VARCHAR)
SELECT percent_of_slovenes_1991 FROM table_10797463_1 WHERE village__slovenian_ = "Čahorče"
What is total number of wins for England?
CREATE TABLE table_name_59 (total INTEGER, nation VARCHAR)
SELECT SUM(total) FROM table_name_59 WHERE nation = "england"
What district re-elected a Republican?
CREATE TABLE table_name_21 (district VARCHAR, party VARCHAR, results VARCHAR)
SELECT district FROM table_name_21 WHERE party = "republican" AND results = "re-elected"
Which city does student Linda Smith live in?
CREATE TABLE Student (city_code VARCHAR, Fname VARCHAR, Lname VARCHAR)
SELECT city_code FROM Student WHERE Fname = "Linda" AND Lname = "Smith"
What is the listing for the US Open in 1977?
CREATE TABLE table_name_12 (tournament VARCHAR)
SELECT 1977 FROM table_name_12 WHERE tournament = "us open"
Who directed series #4 that was teleplayed by David Simon?
CREATE TABLE table_14346353_1 (directed_by VARCHAR, teleplay_by VARCHAR, series__number VARCHAR)
SELECT COUNT(directed_by) FROM table_14346353_1 WHERE teleplay_by = "David Simon" AND series__number = 4
How many touchdowns did Redden score?
CREATE TABLE table_14342210_12 (touchdowns INTEGER, player VARCHAR)
SELECT MIN(touchdowns) FROM table_14342210_12 WHERE player = "Redden"
What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?
CREATE TABLE table_name_88 (total_population__2010_ INTEGER, _percentage_asian_american VARCHAR, asian_american_population__2010_ VARCHAR)
SELECT MIN(total_population__2010_) FROM table_name_88 WHERE _percentage_asian_american = 5.7 AND asian_american_population__2010_ < 126 OFFSET 965
Name the opponent that has attendance of 76,965
CREATE TABLE table_name_86 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_86 WHERE attendance = "76,965"
what is the maximum first elected with district being alabama 5
CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)
SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5"
Tell me the name that has 17 floors
CREATE TABLE table_name_25 (name VARCHAR, floors VARCHAR)
SELECT name FROM table_name_25 WHERE floors = 17
Who is the operator when willowbrook was the bodybuilder?
CREATE TABLE table_28035004_1 (operator VARCHAR, bodybuilder VARCHAR)
SELECT operator FROM table_28035004_1 WHERE bodybuilder = "Willowbrook"
How many locations had a density (pop/km²) of 91.8 in the 2011 census?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR)
SELECT COUNT(2011 AS _census) FROM table_1425958_1 WHERE density__pop_km²_ = "91.8"
Which Total is the lowest one that has a Rank smaller than 1?
CREATE TABLE table_name_47 (total INTEGER, rank INTEGER)
SELECT MIN(total) FROM table_name_47 WHERE rank < 1
What are the episode numbers where the episode features Jack & Locke?
CREATE TABLE table_11562149_1 (no_in_series VARCHAR, featured_character_s_ VARCHAR)
SELECT no_in_series FROM table_11562149_1 WHERE featured_character_s_ = "Jack & Locke"
Who was the 3rd place team at Pardubice?
CREATE TABLE table_name_41 (venue VARCHAR)
SELECT 3 AS rd_place FROM table_name_41 WHERE venue = "pardubice"
Who had a transfer fee of dkk 6m?
CREATE TABLE table_name_39 (name VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m"
What was the final score for the match played in Venue H and the opponent was Newcastle United?
CREATE TABLE table_name_33 (result VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_33 WHERE venue = "h" AND opponent = "newcastle united"
In 2006, what is the highest number for Live births in the County of Cumbria that has a TFR larger than 1.76?
CREATE TABLE table_name_6 (live_births_2006 INTEGER, county VARCHAR, tfr_2006 VARCHAR)
SELECT MAX(live_births_2006) FROM table_name_6 WHERE county = "cumbria" AND tfr_2006 > 1.76
What fuel system was used in 1960-62?
CREATE TABLE table_name_95 (fuel_system VARCHAR, years VARCHAR)
SELECT fuel_system FROM table_name_95 WHERE years = "1960-62"
Which province has the soccer stadium that holds 4,000 people?
CREATE TABLE table_27369069_1 (province VARCHAR, stadium_capacity VARCHAR)
SELECT province FROM table_27369069_1 WHERE stadium_capacity = "4,000"
Which surface has an Opponent of fernando verdasco?
CREATE TABLE table_name_41 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_41 WHERE opponent = "fernando verdasco"
What is the average Number, when Position is Forward?
CREATE TABLE table_name_13 (number INTEGER, position VARCHAR)
SELECT AVG(number) FROM table_name_13 WHERE position = "forward"
What is the name of the Opponent when the Result was w48-0?
CREATE TABLE table_name_6 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_6 WHERE result = "w48-0"
What Valley Vista has a Dysart of 1668?
CREATE TABLE table_name_39 (valley_vista VARCHAR, dysart VARCHAR)
SELECT valley_vista FROM table_name_39 WHERE dysart = "1668"
What's the highest against score that drew more than 5, and had more than 18 points?
CREATE TABLE table_name_35 (against INTEGER, drawn VARCHAR, points VARCHAR)
SELECT MAX(against) FROM table_name_35 WHERE drawn > 5 AND points > 18
What teams played in the Capital One bowl game on January 1, 2009?
CREATE TABLE table_16046689_29 (conference_matchups VARCHAR, date VARCHAR, bowl_game VARCHAR)
SELECT conference_matchups FROM table_16046689_29 WHERE date = "January 1, 2009" AND bowl_game = "Capital One"
What is the total number of Grids for Chuck Daigh?
CREATE TABLE table_name_29 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_29 WHERE driver = "chuck daigh"
How many totals have a Silver of 40, and a Gold smaller than 39?
CREATE TABLE table_name_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39
What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?
CREATE TABLE table_name_54 (number_1971 VARCHAR)
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748
What was the vote % of Heather and Matt?
CREATE TABLE table_26375386_18 (vote_percentage VARCHAR, couple VARCHAR)
SELECT vote_percentage FROM table_26375386_18 WHERE couple = "Heather and Matt"
Name the party or first elected is 1920
CREATE TABLE table_1342393_16 (party VARCHAR, first_elected VARCHAR)
SELECT party FROM table_1342393_16 WHERE first_elected = 1920
During which games did Tunisia win gold in the men's 5000 m?
CREATE TABLE table_name_24 (games VARCHAR, event VARCHAR, medal VARCHAR)
SELECT games FROM table_name_24 WHERE event = "men's 5000 m" AND medal = "gold"
What is the modern house title of the 1st house?
CREATE TABLE table_name_27 (modern_title_of_house VARCHAR, house VARCHAR)
SELECT modern_title_of_house FROM table_name_27 WHERE house = "1st"
What was the surface when the result was 6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6?
CREATE TABLE table_name_82 (surface VARCHAR, result VARCHAR)
SELECT surface FROM table_name_82 WHERE result = "6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6"
Name the state class for resigned november 3, 1964
CREATE TABLE table_2159506_3 (state__class_ VARCHAR, reason_for_change VARCHAR)
SELECT state__class_ FROM table_2159506_3 WHERE reason_for_change = "Resigned November 3, 1964"
What is Name, when Weight is "kg (lb)", when Club is "Gezira", and when Date of Birth is "1974-02-18"?
CREATE TABLE table_name_83 (name VARCHAR, date_of_birth VARCHAR, weight VARCHAR, club VARCHAR)
SELECT name FROM table_name_83 WHERE weight = "kg (lb)" AND club = "gezira" AND date_of_birth = "1974-02-18"
what's the total number of species in the peruvian amazon with 8411 species in the world 
CREATE TABLE table_11727969_1 (species_in_the_peruvian_amazon VARCHAR, species_in_the_world VARCHAR)
SELECT COUNT(species_in_the_peruvian_amazon) FROM table_11727969_1 WHERE species_in_the_world = 8411
What format is at frequency 99.5 FM?
CREATE TABLE table_name_14 (format VARCHAR, frequency VARCHAR)
SELECT format FROM table_name_14 WHERE frequency = "99.5 fm"
Which state has 67% Republicans and a ratio of 24/12 of Republicans to Democrats?
CREATE TABLE table_name_28 (state_ranked_in_partisan_order VARCHAR, percentage_republicans VARCHAR, republican__democratic VARCHAR)
SELECT state_ranked_in_partisan_order FROM table_name_28 WHERE percentage_republicans = "67%" AND republican__democratic = "24/12"
Who was home on November 26?
CREATE TABLE table_name_73 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_73 WHERE date = "november 26"
What is the position of the winner with 792 points?
CREATE TABLE table_name_39 (position VARCHAR, points VARCHAR)
SELECT position FROM table_name_39 WHERE points = "792"
what is the competition when the result is won and the date is september 13, 1996?
CREATE TABLE table_name_87 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996"
What is the largest number of holding companies?
CREATE TABLE table_1756264_2 (holding_companies INTEGER)
SELECT MAX(holding_companies) FROM table_1756264_2
Faith of rc, and a Opened larger than 1966 which has the highest DCSF number?
CREATE TABLE table_name_22 (dcsf_number INTEGER, faith VARCHAR, opened VARCHAR)
SELECT MAX(dcsf_number) FROM table_name_22 WHERE faith = "rc" AND opened > 1966
Name the master recording for europe
CREATE TABLE table_22457674_1 (master_recording VARCHAR, artist VARCHAR)
SELECT master_recording FROM table_22457674_1 WHERE artist = "Europe"
Which date has an Opponent of angels, and a Loss of sanderson (0–1)?
CREATE TABLE table_name_95 (date VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT date FROM table_name_95 WHERE opponent = "angels" AND loss = "sanderson (0–1)"
What is the lowest attendance for December 14, 1958 after week 12?
CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12
What character did Vicky Versavel play for 13 years?
CREATE TABLE table_name_93 (character VARCHAR, duration VARCHAR, actor VARCHAR)
SELECT character FROM table_name_93 WHERE duration = "13 years" AND actor = "vicky versavel"
Which away team has a venue of Arden Street Oval?
CREATE TABLE table_name_76 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_76 WHERE venue = "arden street oval"
Return the first names and last names of all guests
CREATE TABLE Guests (guest_first_name VARCHAR, guest_last_name VARCHAR)
SELECT guest_first_name, guest_last_name FROM Guests
Which Nationality has a Heat smaller than 2, and a Rank of 15?
CREATE TABLE table_name_16 (nationality VARCHAR, heat VARCHAR, rank VARCHAR)
SELECT nationality FROM table_name_16 WHERE heat < 2 AND rank = 15
Who directed the episode that was written by Bill Lawrence?
CREATE TABLE table_25547943_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT directed_by FROM table_25547943_1 WHERE written_by = "Bill Lawrence"
What was the record the day David Weathers (15) had a save?
CREATE TABLE table_name_10 (record VARCHAR, save VARCHAR)
SELECT record FROM table_name_10 WHERE save = "david weathers (15)"
What is the final score of the 1st round game of club Union Luxembourg?
CREATE TABLE table_name_17 (score VARCHAR, round VARCHAR, club VARCHAR)
SELECT score FROM table_name_17 WHERE round = "1st round" AND club = "union luxembourg"
What category was danson tang nominated?
CREATE TABLE table_name_72 (category VARCHAR, nomination VARCHAR)
SELECT category FROM table_name_72 WHERE nomination = "danson tang"
What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?
CREATE TABLE table_name_69 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0
Find the number of employees whose title is IT Staff from each city?
CREATE TABLE employees (city VARCHAR, title VARCHAR)
SELECT COUNT(*), city FROM employees WHERE title = 'IT Staff' GROUP BY city
If the equation is 1 × 9² + 4 × 9 + 0, what is the 2nd throw?
CREATE TABLE table_17265535_7 (equation VARCHAR)
SELECT 2 AS nd_throw FROM table_17265535_7 WHERE equation = "1 × 9² + 4 × 9 + 0"
When was the first asset acquired?
CREATE TABLE Assets (asset_acquired_date VARCHAR)
SELECT asset_acquired_date FROM Assets ORDER BY asset_acquired_date LIMIT 1
What is the number of electorates (2009) for Constituency number 182?
CREATE TABLE table_name_13 (number_of_electorates__2009_ VARCHAR, constituency_number VARCHAR)
SELECT number_of_electorates__2009_ FROM table_name_13 WHERE constituency_number = "182"
Name the surface for score of 7–6(4), 6–1
CREATE TABLE table_name_71 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_71 WHERE score = "7–6(4), 6–1"
Which 1st prize ($) has a Winner of scott simpson (7)?
CREATE TABLE table_name_21 (winner VARCHAR)
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_21 WHERE winner = "scott simpson (7)"
What team has 137 points?
CREATE TABLE table_25318033_1 (team VARCHAR, points VARCHAR)
SELECT team FROM table_25318033_1 WHERE points = "137"
Which match was the final score 7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)?
CREATE TABLE table_26202812_7 (no VARCHAR, score_in_the_final VARCHAR)
SELECT no FROM table_26202812_7 WHERE score_in_the_final = "7–6 (7–0) , 6–7 (5–7) , 4–6, 6–2, 6–7 (5–7)"
What is the theme where the original artist is AC/DC?
CREATE TABLE table_25374338_1 (theme VARCHAR, original_artist VARCHAR)
SELECT theme FROM table_25374338_1 WHERE original_artist = "AC/DC"
What is the ranking when Archie Compston is the player and the money is $73?
CREATE TABLE table_name_6 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_6 WHERE money___$__ = "73" AND player = "archie compston"
Show the names of high schoolers who have likes, and numbers of likes for each.
CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR)
SELECT T2.name, COUNT(*) FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id
Which Video has an Aspect of 16:9?
CREATE TABLE table_name_14 (video VARCHAR, aspect VARCHAR)
SELECT video FROM table_name_14 WHERE aspect = "16:9"
Which date had 67,472 in attendance?
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_73 WHERE attendance = "67,472"
HOw many films did martin repka category:articles with hcards direct?
CREATE TABLE table_22032599_1 (film_title_used_in_nomination VARCHAR, director VARCHAR)
SELECT COUNT(film_title_used_in_nomination) FROM table_22032599_1 WHERE director = "Martin Repka Category:Articles with hCards"
Find the name of rooms whose base price is between 120 and 150.
CREATE TABLE rooms (roomname VARCHAR, baseprice INTEGER)
SELECT roomname FROM rooms WHERE baseprice BETWEEN 120 AND 150
What School/Club did Dominique Wilkins play for?
CREATE TABLE table_name_27 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_27 WHERE player = "dominique wilkins"
in the drum module td-5 what are the tom-tom pads
CREATE TABLE table_2889300_6 (tom_tom_pads VARCHAR, drum_module VARCHAR)
SELECT tom_tom_pads FROM table_2889300_6 WHERE drum_module = "TD-5"
What is the to par for Fred Couples when the score is 68-66=134?
CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_74 WHERE score = 68 - 66 = 134 AND player = "fred couples"
What was the score on October 16, 1983?
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_37 WHERE date = "october 16, 1983"
What player was picked 176?
CREATE TABLE table_name_51 (player VARCHAR, pick VARCHAR)
SELECT player FROM table_name_51 WHERE pick = 176
What was the aircraft flown when the axis unit was luftwaffe (**) and the enemy aircraft was ju.88?
CREATE TABLE table_name_40 (aircraft_flown VARCHAR, axis_unit VARCHAR, enemy_aircraft VARCHAR)
SELECT aircraft_flown FROM table_name_40 WHERE axis_unit = "luftwaffe (**)" AND enemy_aircraft = "ju.88"
What country is Gary Player from in T9 place?
CREATE TABLE table_name_38 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT country FROM table_name_38 WHERE place = "t9" AND player = "gary player"
What is the Time with a Home that is high park demons?
CREATE TABLE table_name_31 (time VARCHAR, home VARCHAR)
SELECT time FROM table_name_31 WHERE home = "high park demons"
what is the venue when the score is 20½–11½?
CREATE TABLE table_name_64 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_64 WHERE score = "20½–11½"
What is the total number of episodes where hugh laurie was the 3rd performer?
CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR)
SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = "hugh laurie"
What is the current status of a location with a census ranking of 1,769 of 5,008 and population greater than 930?
CREATE TABLE table_name_21 (status VARCHAR, population VARCHAR, census_ranking VARCHAR)
SELECT status FROM table_name_21 WHERE population > 930 AND census_ranking = "1,769 of 5,008"
What is the boiler pressure for the Hesperus model?
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR)
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"
How many winning drivers in the kraco twin 125 (r2) race were there?
CREATE TABLE table_10706879_3 (winning_driver VARCHAR, name VARCHAR)
SELECT COUNT(winning_driver) FROM table_10706879_3 WHERE name = "Kraco Twin 125 (R2)"
Who won the points classifications in the stage where Matteo Priamo was the winner?
CREATE TABLE table_14710984_2 (points_classification VARCHAR, winner VARCHAR)
SELECT COUNT(points_classification) FROM table_14710984_2 WHERE winner = "Matteo Priamo"
Who's the principal of Edgewood High School?/
CREATE TABLE table_1984697_53 (principal VARCHAR, school VARCHAR)
SELECT principal FROM table_1984697_53 WHERE school = "Edgewood High school"
What is the fire control for the sporter target
CREATE TABLE table_12834315_2 (fire_control VARCHAR, name VARCHAR)
SELECT fire_control FROM table_12834315_2 WHERE name = "Sporter Target"
What is the highest goals entry with drawn larger than 6 and goals against 85?
CREATE TABLE table_name_84 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)
SELECT MAX(goals_for) FROM table_name_84 WHERE goals_against = 85 AND drawn > 6
What shows for 209 when the 2000 is –, and a Total of 3, and a 2004 of 9th?
CREATE TABLE table_name_4 (total VARCHAR)
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th"
For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft?
CREATE TABLE table_name_41 (nba_draft VARCHAR, height VARCHAR, college VARCHAR)
SELECT nba_draft FROM table_name_41 WHERE height = "6-9" AND college = "kentucky"
What's the HDR output of Photovista Panorama?
CREATE TABLE table_name_35 (hdr_output___exr_ VARCHAR, _hdr VARCHAR, _logluv_ VARCHAR, _etc_ VARCHAR, name VARCHAR)
SELECT hdr_output___exr_, _hdr, _logluv_, _etc_ FROM table_name_35 WHERE name = "photovista panorama"
Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
CREATE TABLE table_name_21 (director_s_ VARCHAR, prize VARCHAR, film VARCHAR)
SELECT director_s_ FROM table_name_21 WHERE prize = "¥300,000" AND film = "hanzubon no ojisan"
What is the rating of the episode with a rating/share of 0.9/4?
CREATE TABLE table_17525955_2 (rating VARCHAR)
SELECT rating FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 0.9 / 4
Who came in 3rd place in 1990?
CREATE TABLE table_name_20 (year VARCHAR)
SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990"
How many values of up/down have a total value of exactly 301470?
CREATE TABLE table_2472711_32 (up_down VARCHAR, total VARCHAR)
SELECT COUNT(up_down) FROM table_2472711_32 WHERE total = 301470
Name the date with works number less than 1673 and number less than 3
CREATE TABLE table_name_42 (date VARCHAR, works_number VARCHAR, number VARCHAR)
SELECT date FROM table_name_42 WHERE works_number < 1673 AND number < 3
What Frequency has the Identifier of CBFX-FM-6?
CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR)
SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-6"
How many partners were there when the score was 7–6 (7–4) , 6–3?
CREATE TABLE table_2186447_1 (partner VARCHAR, score VARCHAR)
SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7–6 (7–4) , 6–3"