question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What place is the player with a score of 69-68=137?
CREATE TABLE table_name_84 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_84 WHERE score = 69 - 68 = 137
What's the result for director elia schneider's punto y raya?
CREATE TABLE table_name_25 (result VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT result FROM table_name_25 WHERE director = "elia schneider" AND film_title_used_in_nomination = "punto y raya"
When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR)
SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons"
Tell me the highest Grid for Maurice Trintignant and laps less than 87
CREATE TABLE table_name_14 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_14 WHERE driver = "maurice trintignant" AND laps < 87
Give me a list of names and years of races that had any driver whose forename is Lewis?
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (name VARCHAR, year VARCHAR, raceid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)
SELECT T2.name, T2.year FROM results AS T1 JOIN races AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T1.driverid = T3.driverid WHERE T3.forename = "Lewis"
What is the PEPE Michinoku value for a Ryuji Hijikata value of sabin (12:33)?
CREATE TABLE table_name_28 (pepe_michinoku VARCHAR, ryuji_hijikata VARCHAR)
SELECT pepe_michinoku FROM table_name_28 WHERE ryuji_hijikata = "sabin (12:33)"
What airport is in Toronto?
CREATE TABLE table_name_87 (airport VARCHAR, city VARCHAR)
SELECT airport FROM table_name_87 WHERE city = "toronto"
What is the total number of legs lost of the player with a high checkout less than 76 and less than 3 played?
CREATE TABLE table_name_1 (legs_lost VARCHAR, high_checkout VARCHAR, played VARCHAR)
SELECT COUNT(legs_lost) FROM table_name_1 WHERE high_checkout < 76 AND played < 3
What is the Metric value of Russian че́тверть?
CREATE TABLE table_name_19 (metric_value VARCHAR, russian VARCHAR)
SELECT metric_value FROM table_name_19 WHERE russian = "че́тверть"
Which nation is where rider phillip dutton from?
CREATE TABLE table_18666752_3 (nation VARCHAR, rider VARCHAR)
SELECT nation FROM table_18666752_3 WHERE rider = "Phillip Dutton"
Which GP-GS had a long of 17 and a season of total?
CREATE TABLE table_name_13 (gp_gs VARCHAR, long VARCHAR, season VARCHAR)
SELECT gp_gs FROM table_name_13 WHERE long = "17" AND season = "total"
What was the bronze medal count of the team that finished with 47 total medals?
CREATE TABLE table_name_86 (bronze INTEGER, total VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE total = 47
Who is the captain of Cardiff City?
CREATE TABLE table_26593762_2 (team VARCHAR)
SELECT team AS captain FROM table_26593762_2 WHERE team = "Cardiff City"
How many reserves were established on 19740329 29.03.1974?
CREATE TABLE table_26013618_1 (nsg_nr VARCHAR, date_established VARCHAR)
SELECT COUNT(nsg_nr) FROM table_26013618_1 WHERE date_established = "19740329 29.03.1974"
Which Reference has a Release date of 1996/10/10?
CREATE TABLE table_name_92 (reference VARCHAR, release_date VARCHAR)
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10"
Name the oberliga sudwest for spvgg unterhaching for 1988-89
CREATE TABLE table_14242137_4 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR, season VARCHAR)
SELECT oberliga_südwest FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Unterhaching" AND season = "1988-89"
Which home team plays at Punt Road Oval?
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_40 WHERE venue = "punt road oval"
Name the example when the realization is [ɐ]
CREATE TABLE table_name_36 (example VARCHAR, realization VARCHAR)
SELECT example FROM table_name_36 WHERE realization = "[ɐ]"
Name the score for 10 april 2007 and opponent of selima sfar
CREATE TABLE table_name_43 (score VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_43 WHERE date = "10 april 2007" AND opponent = "selima sfar"
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)
SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11
What's the total of rank 8 when Silver medals are 0 and gold is more than 1?
CREATE TABLE table_name_2 (total VARCHAR, gold VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT COUNT(total) FROM table_name_2 WHERE silver = 0 AND rank = 8 AND gold > 1
Show the residences that have at least two players.
CREATE TABLE player (Residence VARCHAR)
SELECT Residence FROM player GROUP BY Residence HAVING COUNT(*) >= 2
What is the average number of laps when Gerhard Berger is the driver?
CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger"
What is total amount of points for the 2007 season?
CREATE TABLE table_name_69 (points INTEGER, season VARCHAR)
SELECT SUM(points) FROM table_name_69 WHERE season = 2007
What's the average Grid with Laps of 88?
CREATE TABLE table_name_66 (grid INTEGER, laps VARCHAR)
SELECT AVG(grid) FROM table_name_66 WHERE laps = 88
What is the average day in December of the game with a 8-2-3 record?
CREATE TABLE table_name_25 (december INTEGER, record VARCHAR)
SELECT AVG(december) FROM table_name_25 WHERE record = "8-2-3"
What is the Away Competition on the 6th?
CREATE TABLE table_name_81 (competition VARCHAR, venue VARCHAR, date VARCHAR)
SELECT competition FROM table_name_81 WHERE venue = "away" AND date = "6th"
What is Part 4, when Part 2 is "batt"?
CREATE TABLE table_name_51 (part_4 VARCHAR, part_2 VARCHAR)
SELECT part_4 FROM table_name_51 WHERE part_2 = "batt"
What is the total number of points for ray agius
CREATE TABLE table_name_15 (points INTEGER, lyricist VARCHAR)
SELECT SUM(points) FROM table_name_15 WHERE lyricist = "ray agius"
What is the full number of New Council when the previous council was 54 and the staying councilor number is bigger than 36?
CREATE TABLE table_name_82 (new_council VARCHAR, previous_council VARCHAR, staying_councillors VARCHAR)
SELECT COUNT(new_council) FROM table_name_82 WHERE previous_council = 54 AND staying_councillors > 36
When we played Houston who had the most points?
CREATE TABLE table_22879323_6 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_22879323_6 WHERE team = "Houston"
What is every team with location attendance of Philips Arena 12,140?
CREATE TABLE table_27734577_7 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_27734577_7 WHERE location_attendance = "Philips Arena 12,140"
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)
SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair"
What was the away team score at kardinia park?
CREATE TABLE table_name_40 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia park"
What is the average year of the film from France/Hong Kong?
CREATE TABLE table_name_74 (year INTEGER, country VARCHAR)
SELECT AVG(year) FROM table_name_74 WHERE country = "france/hong kong"
What was the Opponent in Week 9?
CREATE TABLE table_name_15 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_15 WHERE week = 9
What is the production cost when the producer is raintree pictures?
CREATE TABLE table_name_63 (production_cost VARCHAR, producer VARCHAR)
SELECT production_cost FROM table_name_63 WHERE producer = "raintree pictures"
What is the average of the Series #s that were directed by Matthew Penn?
CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR)
SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn"
Which Platelet count has a Condition of bernard-soulier syndrome?
CREATE TABLE table_name_34 (platelet_count VARCHAR, condition VARCHAR)
SELECT platelet_count FROM table_name_34 WHERE condition = "bernard-soulier syndrome"
What is the highest number of viewers for a rating greater than 9.4?
CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
which Score has a Competition of match reports?
CREATE TABLE table_name_81 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_81 WHERE competition = "match reports"
What is the overall record of Indian River?
CREATE TABLE table_name_17 (overall_record VARCHAR, school VARCHAR)
SELECT overall_record FROM table_name_17 WHERE school = "indian river"
What is Jolene Anderson's Rank?
CREATE TABLE table_name_52 (rank VARCHAR, actor_actress VARCHAR)
SELECT rank FROM table_name_52 WHERE actor_actress = "jolene anderson"
Which Result has a Captain 2 of louis burger?
CREATE TABLE table_name_81 (result VARCHAR, captain_2 VARCHAR)
SELECT result FROM table_name_81 WHERE captain_2 = "louis burger"
What was the total number of places in which the draw was less than 4 and the amount lost was less than 6?
CREATE TABLE table_name_73 (place VARCHAR, draw VARCHAR, lost VARCHAR)
SELECT COUNT(place) FROM table_name_73 WHERE draw < 4 AND lost < 6
How many touchdowns does Boggs have?
CREATE TABLE table_25517718_3 (touchdowns INTEGER, player VARCHAR)
SELECT MIN(touchdowns) FROM table_25517718_3 WHERE player = "Boggs"
What was the passing result for the measure with 61307 no votes?
CREATE TABLE table_256286_19 (passed VARCHAR, no_votes VARCHAR)
SELECT passed FROM table_256286_19 WHERE no_votes = 61307
Which lane did George Bovell swim in?
CREATE TABLE table_name_20 (lane INTEGER, name VARCHAR)
SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell"
Which writer is named mongolbittacus?
CREATE TABLE table_name_62 (authors VARCHAR, name VARCHAR)
SELECT authors FROM table_name_62 WHERE name = "mongolbittacus"
what is the title when the imprint is dengeki bunko and the artist is kiyotaka haimura?
CREATE TABLE table_name_96 (title VARCHAR, imprint VARCHAR, artist VARCHAR)
SELECT title FROM table_name_96 WHERE imprint = "dengeki bunko" AND artist = "kiyotaka haimura"
What is the production code for the episode that aired on October 15, 2004?
CREATE TABLE table_28859177_3 (production_code VARCHAR, original_air_date VARCHAR)
SELECT production_code FROM table_28859177_3 WHERE original_air_date = "October 15, 2004"
What is the August 15, 2012 population when the population density of 2012 is 307?
CREATE TABLE table_12496904_1 (_2012 VARCHAR, population_august_15 INTEGER, population_density_2012__km_2__ VARCHAR)
SELECT MAX(population_august_15), _2012 FROM table_12496904_1 WHERE population_density_2012__km_2__ = 307
Name the most pa for ontario
CREATE TABLE table_15333005_1 (pa INTEGER, locale VARCHAR, Ontario VARCHAR)
SELECT MAX(pa) FROM table_15333005_1 WHERE locale = Ontario
What class has cbon-fm-23 as the identifier?
CREATE TABLE table_name_28 (class VARCHAR, identifier VARCHAR)
SELECT class FROM table_name_28 WHERE identifier = "cbon-fm-23"
On CBC, who was the colour commentator in 1987?
CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR)
SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987
Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?
CREATE TABLE table_name_35 (bodyweight INTEGER, snatch INTEGER)
SELECT MIN(bodyweight) FROM table_name_35 WHERE snatch > 117.5
What was the earliest year that had less than 1 point?
CREATE TABLE table_name_85 (year INTEGER, points INTEGER)
SELECT MIN(year) FROM table_name_85 WHERE points < 1
How many addresses are in the district of California?
CREATE TABLE address (district VARCHAR)
SELECT COUNT(*) FROM address WHERE district = 'California'
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?
CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR)
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8
What is Weight, when Club is "Ahly", and when Name is "Ragy Abdel Hady"?
CREATE TABLE table_name_35 (weight VARCHAR, club VARCHAR, name VARCHAR)
SELECT weight FROM table_name_35 WHERE club = "ahly" AND name = "ragy abdel hady"
Name the date for w 31-28
CREATE TABLE table_name_60 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_60 WHERE result = "w 31-28"
English title of malèna had what original title?
CREATE TABLE table_name_9 (original_title VARCHAR, english_title VARCHAR)
SELECT original_title FROM table_name_9 WHERE english_title = "malèna"
what is the team with the best of 1:43.134?
CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR)
SELECT team FROM table_name_75 WHERE best = "1:43.134"
What was the surface that was played on during the week of March 16?
CREATE TABLE table_name_71 (surface VARCHAR, week VARCHAR)
SELECT surface FROM table_name_71 WHERE week = "march 16"
Where were stolen ends recorded as 15?
CREATE TABLE table_25381437_2 (locale VARCHAR, stolen_ends VARCHAR)
SELECT locale FROM table_25381437_2 WHERE stolen_ends = 15
What is the highest position Talk on Corners, which had an issue date greater than 1, had?
CREATE TABLE table_name_29 (highest_position VARCHAR, album_title VARCHAR, issue_date VARCHAR)
SELECT COUNT(highest_position) FROM table_name_29 WHERE album_title = "talk on corners" AND issue_date > 1
What was the date of the game after week 5 with 62,262 fans attending?
CREATE TABLE table_name_82 (date VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_82 WHERE week > 5 AND attendance = "62,262"
How many deaths were there when the total casualties were 6?
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"
What week # featured first solo as the theme?
CREATE TABLE table_21501564_1 (week__number VARCHAR, theme VARCHAR)
SELECT week__number FROM table_21501564_1 WHERE theme = "First Solo"
What is Identifier, when City of License is Hornepayne?
CREATE TABLE table_name_55 (identifier VARCHAR, city_of_license VARCHAR)
SELECT identifier FROM table_name_55 WHERE city_of_license = "hornepayne"
what is the area where barangay is guadalupe viejo?
CREATE TABLE table_210279_2 (area__km_2__ VARCHAR, barangay VARCHAR)
SELECT area__km_2__ FROM table_210279_2 WHERE barangay = "Guadalupe Viejo"
What is the average position of Eesti Põlevkivi Jõhvi when they had less than 13 points and worse than a -12 goal differential?
CREATE TABLE table_name_54 (position INTEGER, points VARCHAR, goals_ VARCHAR, __ VARCHAR)
SELECT AVG(position) FROM table_name_54 WHERE points < 13 AND goals_ + __ > -12
What is every rider on Tuesday August 25 at 20' 32.11 110.241mph?
CREATE TABLE table_23465864_5 (rider VARCHAR, tues_25_aug VARCHAR)
SELECT rider FROM table_23465864_5 WHERE tues_25_aug = "20' 32.11 110.241mph"
What is the final score when July 16 is the date?
CREATE TABLE table_23612439_2 (final_score VARCHAR, date VARCHAR)
SELECT final_score FROM table_23612439_2 WHERE date = "July 16"
What is teh born-died dates of the king with a throne name 315 and left office in 1021?
CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR)
SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315"
What is the highest rank for a 6:52.70 time and notes of sa/b?
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:52.70"
What was the average of points with ranks smaller than 7 but with total point games of 113?
CREATE TABLE table_name_24 (total_points INTEGER, games VARCHAR, rank VARCHAR)
SELECT AVG(total_points) FROM table_name_24 WHERE games = 113 AND rank < 7
What was the highest score of t5 place finisher brandt jobe?
CREATE TABLE table_name_51 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT MAX(score) FROM table_name_51 WHERE place = "t5" AND player = "brandt jobe"
What is the Away with a Ground that is humber college lakeshore?
CREATE TABLE table_name_88 (away VARCHAR, ground VARCHAR)
SELECT away FROM table_name_88 WHERE ground = "humber college lakeshore"
During the Tournament of 1st Division El Salvador, what was the Finish for the Team of Platense Municipal Zacatecoluca?
CREATE TABLE table_name_25 (finish VARCHAR, team VARCHAR, tournament VARCHAR)
SELECT finish FROM table_name_25 WHERE team = "platense municipal zacatecoluca" AND tournament = "1st division el salvador"
What was the number of the player that was 6-6?
CREATE TABLE table_22719663_3 (number VARCHAR, height VARCHAR)
SELECT number FROM table_22719663_3 WHERE height = "6-6"
What is the number of graduates in "San Francisco State University" in year 2004?
CREATE TABLE discipline_enrollments (graduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)
SELECT SUM(t1.graduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Francisco State University"
What are the titles for the November 9 Super Bantamweight division?
CREATE TABLE table_25840200_1 (titles VARCHAR, date VARCHAR, division VARCHAR)
SELECT titles FROM table_25840200_1 WHERE date = "November 9" AND division = "Super Bantamweight"
What are the remarks for the entry ranked greater than 2 with a skyteam (2012) alliance?
CREATE TABLE table_name_23 (remarks VARCHAR, rank VARCHAR, alliance VARCHAR)
SELECT remarks FROM table_name_23 WHERE rank > 2 AND alliance = "skyteam (2012)"
In what district was the incumbent Cordell hull?
CREATE TABLE table_1342370_41 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1342370_41 WHERE incumbent = "Cordell Hull"
Which opponent led to a 56-59 record?
CREATE TABLE table_name_53 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_53 WHERE record = "56-59"
Show the names of employees with role name Editor.
CREATE TABLE ROLES (role_code VARCHAR, role_name VARCHAR); CREATE TABLE Employees (employee_name VARCHAR, role_code VARCHAR)
SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code = T2.role_code WHERE T2.role_name = "Editor"
Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner?
CREATE TABLE table_name_75 (team VARCHAR, driver VARCHAR, car__number VARCHAR, pos VARCHAR, make VARCHAR)
SELECT team FROM table_name_75 WHERE pos > 3 AND make = "toyota" AND car__number < 59 AND driver = "mike skinner"
Which losing team had a score of 24-12?
CREATE TABLE table_11236195_2 (losingteam VARCHAR, score VARCHAR)
SELECT losingteam FROM table_11236195_2 WHERE score = "24-12"
Show the name of ships whose nationality is either United States or United Kingdom.
CREATE TABLE ship (Name VARCHAR, Nationality VARCHAR)
SELECT Name FROM ship WHERE Nationality = "United States" OR Nationality = "United Kingdom"
What is the chassis when the rank is 3rd?
CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR)
SELECT chassis FROM table_name_25 WHERE rank = "3rd"
Which Wins is the lowest one that has Events larger than 30?
CREATE TABLE table_name_70 (wins INTEGER, events INTEGER)
SELECT MIN(wins) FROM table_name_70 WHERE events > 30
Who were the sideline reporter(s) in 2011?
CREATE TABLE table_name_72 (sideline_reporter_s_ VARCHAR, year VARCHAR)
SELECT sideline_reporter_s_ FROM table_name_72 WHERE year = 2011
What is the mean number of laps where time/retired was +1:05.564?
CREATE TABLE table_name_67 (laps INTEGER, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_67 WHERE time_retired = "+1:05.564"
What is the Portuguese word for the English word 'grandfather'?
CREATE TABLE table_26614365_5 (portuguese VARCHAR, english VARCHAR)
SELECT portuguese FROM table_26614365_5 WHERE english = "Grandfather"
What is Event, when Position is 4th?
CREATE TABLE table_name_94 (event VARCHAR, position VARCHAR)
SELECT event FROM table_name_94 WHERE position = "4th"
Find out the first name and last name of staff lived in city Damianfort.
CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort"
Number of 13 that has what highest weight?
CREATE TABLE table_name_44 (weight INTEGER, number VARCHAR)
SELECT MAX(weight) FROM table_name_44 WHERE number = 13
in the year 1998/99 what was the league
CREATE TABLE table_1908049_1 (league VARCHAR, year VARCHAR)
SELECT league FROM table_1908049_1 WHERE year = "1998/99"
Show all train names and times in stations in London in descending order by train time.
CREATE TABLE train_station (station_id VARCHAR, train_id VARCHAR); CREATE TABLE station (station_id VARCHAR, location VARCHAR); CREATE TABLE train (name VARCHAR, time VARCHAR, train_id VARCHAR)
SELECT T3.name, T3.time FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id JOIN train AS T3 ON T3.train_id = T1.train_id WHERE T2.location = 'London' ORDER BY T3.time DESC