question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Who were the performance liaisons for the dramaturge Chrisena Ricci?
CREATE TABLE table_22410780_1 (performance_liaison VARCHAR, dramaturge VARCHAR)
SELECT performance_liaison FROM table_22410780_1 WHERE dramaturge = "Chrisena Ricci"
What is the largest total when the rank is 6 and there's less than 1 gold?
CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1
I want to see the away team the has a home team of richmond
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_74 WHERE home_team = "richmond"
How many laps were there when the constructor was Renault, and when the Driver was Fernando Alonso?
CREATE TABLE table_name_7 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_7 WHERE constructor = "renault" AND driver = "fernando alonso"
What is the score of the game against away team exeter city on 10 jan 1990?
CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_70 WHERE date = "10 jan 1990" AND away_team = "exeter city"
What's the result of a goal larger than 4?
CREATE TABLE table_name_59 (result VARCHAR, goal INTEGER)
SELECT result FROM table_name_59 WHERE goal > 4
what is the score that has tie number 27
CREATE TABLE table_name_60 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_60 WHERE tie_no = "27"
What was the result of the election in the Texas 3 district?
CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1342149_43 WHERE district = "Texas 3"
What is the tournament surface at Aptos?
CREATE TABLE table_name_88 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_88 WHERE tournament = "aptos"
When the % of boundary by water is 63% what is the overall number of zip code prefix(es)?
CREATE TABLE table_14253123_1 (zip_code_prefix_es_ VARCHAR, _percentage_of_boundary_by_water VARCHAR)
SELECT COUNT(zip_code_prefix_es_) FROM table_14253123_1 WHERE _percentage_of_boundary_by_water = "63%"
What is the Attendance of the game in Week 12?
CREATE TABLE table_name_99 (attendance INTEGER, week VARCHAR)
SELECT MAX(attendance) FROM table_name_99 WHERE week = 12
What percentage of other candidates did the county which voted 52.1% for Kerry vote for?
CREATE TABLE table_name_69 (others_number INTEGER, kerry_percentage VARCHAR)
SELECT MAX(others_number) FROM table_name_69 WHERE kerry_percentage = "52.1%"
Who wrote the episode directed by Jos Humphrey that had an original Canadian air date that was unknown and a United States original air date of August 27, 2011?
CREATE TABLE table_29087004_2 (written_by VARCHAR, united_states_original_airdate VARCHAR, directed_by VARCHAR, canada_original_airdate VARCHAR)
SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011"
what's the shuttle with primary payload(s) being united states microgravity laboratory-1
CREATE TABLE table_14118521_1 (shuttle VARCHAR, primary_payload_s_ VARCHAR)
SELECT shuttle FROM table_14118521_1 WHERE primary_payload_s_ = "United States Microgravity Laboratory-1"
What amount of the university students and adults ehre the the senior high school is 26mm?
CREATE TABLE table_13555999_1 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, senior_high_school__15_18_yrs_ VARCHAR)
SELECT university_students_and_adults__18yrs + _ FROM table_13555999_1 WHERE senior_high_school__15_18_yrs_ = "26mm"
In what year was the average speed 92.68?
CREATE TABLE table_2268216_1 (year VARCHAR, average_speed__mph_ VARCHAR)
SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = "92.68"
What is the average Attendance for the game on November 1, 1981?
CREATE TABLE table_name_5 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_5 WHERE date = "november 1, 1981"
How many drawn having more than 9 points?
CREATE TABLE table_name_86 (drawn INTEGER, points INTEGER)
SELECT SUM(drawn) FROM table_name_86 WHERE points > 9
What is the record of game 42, which had a clemmensen decision?
CREATE TABLE table_name_76 (record VARCHAR, decision VARCHAR, game VARCHAR)
SELECT record FROM table_name_76 WHERE decision = "clemmensen" AND game = 42
Which Date has a Catalog of vcrt 106?
CREATE TABLE table_name_6 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_6 WHERE catalog = "vcrt 106"
Which Terry McAuliffe is it that has a Dates Administered on June 6–7?
CREATE TABLE table_name_8 (terry_mcauliffe VARCHAR, dates_administered VARCHAR)
SELECT terry_mcauliffe FROM table_name_8 WHERE dates_administered = "june 6–7"
Which episodes did Katie Palmer write?
CREATE TABLE table_27823058_1 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_27823058_1 WHERE written_by = "Katie Palmer"
Who did Dan Follet play for before the draft?
CREATE TABLE table_1965650_7 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT college_junior_club_team FROM table_1965650_7 WHERE player = "Dan Follet"
What is the current version of windows 8 with an RTM build of 9200?
CREATE TABLE table_name_14 (current_version VARCHAR, rtm_build VARCHAR, name VARCHAR)
SELECT current_version FROM table_name_14 WHERE rtm_build = "9200" AND name = "windows 8"
Which Venue has Notes of 58.48 m?
CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR)
SELECT venue FROM table_name_70 WHERE notes = "58.48 m"
What is the title of the episode that aired on december 12, 1953?
CREATE TABLE table_15824796_3 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_15824796_3 WHERE original_air_date = "December 12, 1953"
How many draws have 1 win, 1 loss, and a Goal Differential of +1?
CREATE TABLE table_name_85 (draws INTEGER, goal_differential VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT SUM(draws) FROM table_name_85 WHERE wins = 1 AND losses = 1 AND goal_differential = "+1"
Who had the highest assists in game 4?
CREATE TABLE table_11964154_2 (high_assists VARCHAR, game VARCHAR)
SELECT high_assists FROM table_11964154_2 WHERE game = 4
How many city/municipalties have an area (km2) of 506.64?
CREATE TABLE table_261222_1 (city___municipality VARCHAR, area__km_2__ VARCHAR)
SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = "506.64"
What is the Quantity of Type 2-4-2t?
CREATE TABLE table_name_76 (quantity INTEGER, type VARCHAR)
SELECT SUM(quantity) FROM table_name_76 WHERE type = "2-4-2t"
How many fatalities were there in the crash described as crashed at take-off due to engine failure?
CREATE TABLE table_229917_2 (fatalities VARCHAR, brief_description VARCHAR)
SELECT fatalities FROM table_229917_2 WHERE brief_description = "Crashed at take-off due to engine failure"
Name the number of episodes for s hacksaw
CREATE TABLE table_15187735_8 (episode VARCHAR, segment_b VARCHAR)
SELECT COUNT(episode) FROM table_15187735_8 WHERE segment_b = "s Hacksaw"
Which Base has a Name of .44 wcf?
CREATE TABLE table_name_2 (base VARCHAR, name VARCHAR)
SELECT base FROM table_name_2 WHERE name = ".44 wcf"
Name the number opponent for loss result
CREATE TABLE table_20928661_1 (opponent VARCHAR, result VARCHAR)
SELECT COUNT(opponent) FROM table_20928661_1 WHERE result = "Loss"
When did acharya shree koshalendraprasadji maharaj become acharya?
CREATE TABLE table_name_12 (became_acharya_on VARCHAR, name_of_acharya VARCHAR)
SELECT became_acharya_on FROM table_name_12 WHERE name_of_acharya = "acharya shree koshalendraprasadji maharaj"
When did the season premiere that saw 8.4 million viewers first air?
CREATE TABLE table_299121_2 (season VARCHAR, viewers__in_millions_ VARCHAR)
SELECT season AS premiere FROM table_299121_2 WHERE viewers__in_millions_ = "8.4"
What season has a Level of 2nd, 29 points?
CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)
SELECT season FROM table_name_84 WHERE level = "2nd" AND points = 29
What was the score when the away team was norwich city?
CREATE TABLE table_24887326_8 (score_1 VARCHAR, away_team VARCHAR)
SELECT score_1 FROM table_24887326_8 WHERE away_team = "Norwich City"
Which label is in Australia?
CREATE TABLE table_name_37 (label VARCHAR, region VARCHAR)
SELECT label FROM table_name_37 WHERE region = "australia"
When hasn an Attendance larger than 66,926?
CREATE TABLE table_name_72 (date VARCHAR, attendance INTEGER)
SELECT date FROM table_name_72 WHERE attendance > 66 OFFSET 926
Which team has a value less than 377 million in Germany with a rank of 17?
CREATE TABLE table_name_5 (team VARCHAR, rank VARCHAR, value__$m_ VARCHAR, country VARCHAR)
SELECT team FROM table_name_5 WHERE value__$m_ < 377 AND country = "germany" AND rank = 17
What is Mark, when Lane is greater than 2, and when Country is Bahamas?
CREATE TABLE table_name_44 (mark VARCHAR, lane VARCHAR, country VARCHAR)
SELECT mark FROM table_name_44 WHERE lane > 2 AND country = "bahamas"
Name the number of awardees for best cinematography
CREATE TABLE table_24446718_7 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT COUNT(awardee_s_) FROM table_24446718_7 WHERE name_of_award = "Best Cinematography"
What is the highest pick number?
CREATE TABLE table_14650373_1 (pick__number INTEGER)
SELECT MAX(pick__number) FROM table_14650373_1
When 137 is the number in series what is the production code?
CREATE TABLE table_2468961_7 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_2468961_7 WHERE no_in_series = 137
What is Bronze, when Notes is "6.7km, 22controls"?
CREATE TABLE table_name_2 (bronze VARCHAR, notes VARCHAR)
SELECT bronze FROM table_name_2 WHERE notes = "6.7km, 22controls"
How many games tied for the air force with over 57 years participating?
CREATE TABLE table_name_69 (tied VARCHAR, mountain_west VARCHAR, years VARCHAR)
SELECT COUNT(tied) FROM table_name_69 WHERE mountain_west = "air force" AND years > 57
What is the average number of Gold when the total is 11 with more than 2 silver?
CREATE TABLE table_name_3 (gold INTEGER, total VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_3 WHERE total = 11 AND silver > 2
What day had a time of 29.816?
CREATE TABLE table_name_45 (date VARCHAR, time VARCHAR)
SELECT date FROM table_name_45 WHERE time = "29.816"
What's the average rating when the Romanji title was Mendol?
CREATE TABLE table_name_26 (average_ratings VARCHAR, romaji_title VARCHAR)
SELECT average_ratings FROM table_name_26 WHERE romaji_title = "mendol"
What is the name of a building in Courbevoie built before 1973?
CREATE TABLE table_name_96 (name VARCHAR, year_built VARCHAR, city VARCHAR)
SELECT name FROM table_name_96 WHERE year_built < 1973 AND city = "courbevoie"
What district has an assembly segment named mahidpur?
CREATE TABLE table_name_20 (district VARCHAR, name VARCHAR)
SELECT district FROM table_name_20 WHERE name = "mahidpur"
what's the swimsuit where average is 8.670
CREATE TABLE table_12094609_1 (swimsuit VARCHAR, average VARCHAR)
SELECT swimsuit FROM table_12094609_1 WHERE average = "8.670"
Which Goals conceded has Points of 6 and Draws larger than 0?
CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, draws VARCHAR)
SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 0
Which Class Pos have Laps smaller than 304, and a Year after 2001?
CREATE TABLE table_name_79 (class VARCHAR, laps VARCHAR, year VARCHAR)
SELECT class AS pos FROM table_name_79 WHERE laps < 304 AND year > 2001
What is the name of the team with round less than 2, and the nationality is the United States?
CREATE TABLE table_name_25 (college_junior_club_team__league_ VARCHAR, round VARCHAR, nationality VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_25 WHERE round < 2 AND nationality = "united states"
Which Week has an Air Date of august 2, 2008?
CREATE TABLE table_name_62 (week VARCHAR, air_date VARCHAR)
SELECT week FROM table_name_62 WHERE air_date = "august 2, 2008"
Which away team is based at glenferrie oval?
CREATE TABLE table_name_54 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_54 WHERE venue = "glenferrie oval"
Which Season was the Division Two Fownhope Reserves champions?
CREATE TABLE table_name_92 (season VARCHAR, division_two VARCHAR)
SELECT season FROM table_name_92 WHERE division_two = "fownhope reserves"
Which kingdom has Suin as its capital?
CREATE TABLE table_name_65 (name_of_kingdom VARCHAR, capital VARCHAR)
SELECT name_of_kingdom FROM table_name_65 WHERE capital = "suin"
what is the rank for the city of cologne, floors is 34 and height (ft) is more than 452.8?
CREATE TABLE table_name_90 (rank VARCHAR, height__ft_ VARCHAR, city VARCHAR, floors VARCHAR)
SELECT COUNT(rank) FROM table_name_90 WHERE city = "cologne" AND floors = 34 AND height__ft_ > 452.8
Who has the low lap total in a maserati with grid 2?
CREATE TABLE table_name_47 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_47 WHERE constructor = "maserati" AND grid = 2
For the player with yards less than 138, and Comp more than 0, what was the highest Att.?
CREATE TABLE table_name_9 (att INTEGER, yards VARCHAR, comp VARCHAR)
SELECT MAX(att) FROM table_name_9 WHERE yards < 138 AND comp > 0
What was the original title of 3.19?
CREATE TABLE table_20124413_3 (original_title VARCHAR, production_code VARCHAR)
SELECT original_title FROM table_20124413_3 WHERE production_code = "3.19"
What is the total number of Attempts, when Touchdowns is 6?
CREATE TABLE table_name_61 (attempts VARCHAR, touchdowns VARCHAR)
SELECT COUNT(attempts) FROM table_name_61 WHERE touchdowns = 6
what is the least enrollment when founded after 1809 and the institution is university of michigan?
CREATE TABLE table_name_60 (enrollment INTEGER, founded VARCHAR, institution VARCHAR)
SELECT MIN(enrollment) FROM table_name_60 WHERE founded > 1809 AND institution = "university of michigan"
List all OS's with a webkit version of 525.29.1.
CREATE TABLE table_24257833_4 (operating_system VARCHAR, webkit_version VARCHAR)
SELECT operating_system FROM table_24257833_4 WHERE webkit_version = "525.29.1"
What was the average league with Kris Doolan and a total less than 5?
CREATE TABLE table_name_22 (league INTEGER, player VARCHAR, total VARCHAR)
SELECT AVG(league) FROM table_name_22 WHERE player = "kris doolan" AND total < 5
Which Tournament has a Semi finalists of monica seles sandrine testud?
CREATE TABLE table_name_76 (tournament VARCHAR, semi_finalists VARCHAR)
SELECT tournament FROM table_name_76 WHERE semi_finalists = "monica seles sandrine testud"
Find the name and capacity of the dorm with least number of amenities.
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR); CREATE TABLE dorm (dorm_name VARCHAR, student_capacity VARCHAR, dormid VARCHAR)
SELECT T1.dorm_name, T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid GROUP BY T2.dormid ORDER BY COUNT(*) LIMIT 1
In what City was Bulgaria the Opponent with Results¹ of 1:0?
CREATE TABLE table_name_6 (city VARCHAR, results¹ VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_6 WHERE results¹ = "1:0" AND opponent = "bulgaria"
What is the Power (kW) for the station with the frequency of 98.7mhz?
CREATE TABLE table_name_26 (power__kw_ VARCHAR, frequency VARCHAR)
SELECT power__kw_ FROM table_name_26 WHERE frequency = "98.7mhz"
What year was the Competition of World Junior Championships with a 20th (qf) position?
CREATE TABLE table_name_18 (year INTEGER, competition VARCHAR, position VARCHAR)
SELECT AVG(year) FROM table_name_18 WHERE competition = "world junior championships" AND position = "20th (qf)"
Which model has a CPU speed of 133mhz?
CREATE TABLE table_name_52 (model VARCHAR, cpu_speed VARCHAR)
SELECT model FROM table_name_52 WHERE cpu_speed = "133mhz"
Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?
CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20
Who was the first person elected from Democratic GAIN?
CREATE TABLE table_name_73 (first_elected VARCHAR, result VARCHAR)
SELECT first_elected FROM table_name_73 WHERE result = "democratic gain"
Name the most season for old hoss radbourn
CREATE TABLE table_242813_2 (season INTEGER, pitcher VARCHAR)
SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn"
What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
CREATE TABLE All_documents (document_id VARCHAR, document_name VARCHAR); CREATE TABLE Document_locations (date_in_location_from VARCHAR, date_in_locaton_to VARCHAR, document_id VARCHAR)
SELECT T1.date_in_location_from, T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id = T2.document_id WHERE T2.document_name = "Robin CV"
What is the site of the game with a Record of 6-2?
CREATE TABLE table_name_35 (game_site VARCHAR, record VARCHAR)
SELECT game_site FROM table_name_35 WHERE record = "6-2"
What is the Week number with a Result of W 30-28?
CREATE TABLE table_name_85 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_85 WHERE result = "w 30-28"
Name the tournament for dominican republic
CREATE TABLE table_25938117_1 (tournament VARCHAR, location VARCHAR)
SELECT tournament FROM table_25938117_1 WHERE location = "Dominican Republic"
Name the start for finish being 21st
CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR)
SELECT start FROM table_name_39 WHERE finish = "21st"
Show the top 3 apartment type codes sorted by the average number of rooms in descending order.
CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER)
SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 3
What is the ground of the game where the home team was Adelaide?
CREATE TABLE table_name_88 (ground VARCHAR, home_team VARCHAR)
SELECT ground FROM table_name_88 WHERE home_team = "adelaide"
What channel tv (dt) plays the KPIX station?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, station VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE station = "KPIX"
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14?
CREATE TABLE table_name_75 (silver INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT MIN(silver) FROM table_name_75 WHERE bronze = 0 AND rank = 14 AND gold > 0
How many times is the rank higher than 3 and bronze more than 1?
CREATE TABLE table_name_82 (gold VARCHAR, rank VARCHAR, bronze VARCHAR)
SELECT COUNT(gold) FROM table_name_82 WHERE rank > 3 AND bronze > 1
Where week is greater than 7 and attendance is 66,251 what is the result?
CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_31 WHERE week > 7 AND attendance = "66,251"
How many original bills amendments cosponsored lower than 64,with the bill support withdrawn lower than 0?
CREATE TABLE table_name_50 (original_amendments_cosponsored INTEGER, all_bills_sponsored VARCHAR, bill_support_withdrawn VARCHAR)
SELECT MIN(original_amendments_cosponsored) FROM table_name_50 WHERE all_bills_sponsored < 64 AND bill_support_withdrawn < 0
Who is the player with a 76-67-71=214 score?
CREATE TABLE table_name_59 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214
Which state has a royal house of Ying?
CREATE TABLE table_name_66 (state VARCHAR, royal_house VARCHAR)
SELECT state FROM table_name_66 WHERE royal_house = "ying"
List the document type code for the document with the id 2.
CREATE TABLE Documents (document_type_code VARCHAR, document_id VARCHAR)
SELECT document_type_code FROM Documents WHERE document_id = 2
Name the opponents for game 5
CREATE TABLE table_21091145_1 (opponents VARCHAR, game VARCHAR)
SELECT opponents FROM table_21091145_1 WHERE game = 5
What was the Bowl game in San Francisco, CA after 1968?
CREATE TABLE table_name_42 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)
SELECT bowl_game FROM table_name_42 WHERE season > 1968 AND location = "san francisco, ca"
What is the 1.93 for Svetlana Shkolina?
CREATE TABLE table_name_69 (name VARCHAR)
SELECT 193 FROM table_name_69 WHERE name = "svetlana shkolina"
Name the category for 50 totals
CREATE TABLE table_26611679_3 (category VARCHAR, totals VARCHAR)
SELECT category FROM table_26611679_3 WHERE totals = "50"
What are all the name(namesakes) for the entire chart?
CREATE TABLE table_29860752_11 (name__namesake_ VARCHAR)
SELECT name__namesake_ FROM table_29860752_11
What is the Athens Base play with Dance Theatre Roes Company?
CREATE TABLE table_name_59 (play VARCHAR, base VARCHAR, company VARCHAR)
SELECT play FROM table_name_59 WHERE base = "athens" AND company = "dance theatre roes"
Who played bass in 1994 for the Atlantic label?
CREATE TABLE table_name_2 (bass VARCHAR, label VARCHAR, year VARCHAR)
SELECT bass FROM table_name_2 WHERE label = "atlantic" AND year = 1994
What's the to par when the score was 68-73=141?
CREATE TABLE table_name_46 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_46 WHERE score = 68 - 73 = 141