question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes?
CREATE TABLE table_name_33 (margin VARCHAR, dist__f_ VARCHAR, race VARCHAR)
SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = "king george vi & queen elizabeth stakes"
What shows for 2011 when 2012 is q1, and a 2010 is 4r?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT 2011 FROM table_name_49 WHERE 2012 = "q1" AND 2010 = "4r"
Find the id of users who are followed by Mary or Susan.
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" OR T1.name = "Susan"
Show student ids who don't have any sports.
CREATE TABLE Sportsinfo (StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR)
SELECT StuID FROM Student EXCEPT SELECT StuID FROM Sportsinfo
What is the Song choice when there is an Order # of 4?
CREATE TABLE table_name_26 (song_choice VARCHAR, order__number VARCHAR)
SELECT song_choice FROM table_name_26 WHERE order__number = "4"
What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?
CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)
SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11
Name the least flaps
CREATE TABLE table_16908657_1 (flaps INTEGER)
SELECT MIN(flaps) FROM table_16908657_1
Which publisher is responsible for spec ops: stealth patrol?
CREATE TABLE table_name_19 (publisher VARCHAR, name VARCHAR)
SELECT publisher FROM table_name_19 WHERE name = "spec ops: stealth patrol"
What kind of institute is in Indiana?
CREATE TABLE table_27961684_1 (affiliation VARCHAR, state VARCHAR)
SELECT affiliation FROM table_27961684_1 WHERE state = "Indiana"
How many artists are above age 46 and joined after 1990?
CREATE TABLE artist (age VARCHAR, year_join VARCHAR)
SELECT COUNT(*) FROM artist WHERE age > 46 AND year_join > 1990
What position does the 5-8 player from Grottoes, VA play?
CREATE TABLE table_name_10 (position VARCHAR, height VARCHAR, home_town VARCHAR)
SELECT position FROM table_name_10 WHERE height = "5-8" AND home_town = "grottoes, va"
What was the attendance on 21 August 2004?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_43 WHERE date = "21 august 2004"
What was the team record when the team was Cleveland?
CREATE TABLE table_17288861_5 (record VARCHAR, team VARCHAR)
SELECT record FROM table_17288861_5 WHERE team = "Cleveland"
What was the outcome of the game that had a score of 3–6, 6–3, 6–0?
CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–0"
Which nominations was the film 27 Stolen Kisses nominated for?
CREATE TABLE table_10236830_6 (nomination VARCHAR, film_name VARCHAR)
SELECT nomination FROM table_10236830_6 WHERE film_name = "27 Stolen Kisses"
What are the civil parishes of the townlands with an area of 119 acres?
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, area__acres__ VARCHAR)
SELECT civil_parish FROM table_30120547_1 WHERE area__acres__ = 119
What is the lowest number of participants in 2012 when there were 72 in 2010 and less than 56 in 2013?
CREATE TABLE table_name_17 (Id VARCHAR)
SELECT MIN(2012) FROM table_name_17 WHERE 2010 = 72 AND 2013 < 56
What is the Record of the 2012 Hamilton Games from Bahamas?
CREATE TABLE table_name_72 (record VARCHAR, nationality VARCHAR, games VARCHAR)
SELECT record FROM table_name_72 WHERE nationality = "bahamas" AND games = "2012 hamilton"
What is the name of the episode in which Jenn is eliminated?
CREATE TABLE table_1272844_2 (episode_title VARCHAR, eliminated VARCHAR)
SELECT episode_title FROM table_1272844_2 WHERE eliminated = "Jenn"
After 1979, where was the European Indoor Championships held?
CREATE TABLE table_name_27 (venue VARCHAR, competition VARCHAR, year VARCHAR)
SELECT venue FROM table_name_27 WHERE competition = "european indoor championships" AND year > 1979
On what day was the tournament in Alabama?
CREATE TABLE table_15346009_1 (date VARCHAR, location VARCHAR)
SELECT date FROM table_15346009_1 WHERE location = "Alabama"
Name the current womens lacrosse conference for bison
CREATE TABLE table_27378582_1 (current_womens_lacrosse_conference VARCHAR, nickname VARCHAR)
SELECT current_womens_lacrosse_conference FROM table_27378582_1 WHERE nickname = "Bison"
What is the p1 diameter (mm) when .300 lapua magnum is the chambering?
CREATE TABLE table_26967904_2 (p1_diameter__mm_ VARCHAR, chambering VARCHAR)
SELECT p1_diameter__mm_ FROM table_26967904_2 WHERE chambering = ".300 Lapua Magnum"
Find the physicians who are trained in a procedure that costs more than 5000.
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER)
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000
What is the total number of Assists, when Name is "Pablo Prigioni", and when Games is greater than 21?
CREATE TABLE table_name_94 (assists VARCHAR, name VARCHAR, games VARCHAR)
SELECT COUNT(assists) FROM table_name_94 WHERE name = "pablo prigioni" AND games > 21
What opponent was playing against the Golden Bears when they scored 3 points?
CREATE TABLE table_21035326_1 (opponent VARCHAR, golden_bears_points VARCHAR)
SELECT opponent FROM table_21035326_1 WHERE golden_bears_points = 3
Please show the names of aircrafts associated with airport with name "London Gatwick".
CREATE TABLE airport (Airport_ID VARCHAR, Airport_Name VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
SELECT T1.Aircraft FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T3.Airport_Name = "London Gatwick"
What is the lowest amount of field goals on the chart?
CREATE TABLE table_14342480_7 (field_goals INTEGER)
SELECT MIN(field_goals) FROM table_14342480_7
Name the qual for 1957
CREATE TABLE table_name_1 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_1 WHERE year = "1957"
How many clubs remained when there were 4 winners from the previous round?
CREATE TABLE table_29566686_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
SELECT clubs_remaining FROM table_29566686_1 WHERE winners_from_previous_round = 4
What is the total number of rounds when Drew Fickett was the opponent and the time is 5:00?
CREATE TABLE table_name_10 (round VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_10 WHERE time = "5:00" AND opponent = "drew fickett"
What is the Losing bonus of the club that has 80 tries against ?
CREATE TABLE table_name_64 (losing_bonus VARCHAR, tries_against VARCHAR)
SELECT losing_bonus FROM table_name_64 WHERE tries_against = "80"
What was the score of the game against the Braves with a record of 41–27?
CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–27"
What position did Luca Sbisa play for the Philadelphia Flyers?
CREATE TABLE table_name_53 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_53 WHERE player = "luca sbisa"
What was the option from Italy with general television content, and the Cielo television service?
CREATE TABLE table_name_84 (package_option VARCHAR, television_service VARCHAR, country VARCHAR, content VARCHAR)
SELECT package_option FROM table_name_84 WHERE country = "italy" AND content = "general television" AND television_service = "cielo"
Name the gold with total larger than 33
CREATE TABLE table_name_46 (gold VARCHAR, total INTEGER)
SELECT gold FROM table_name_46 WHERE total > 33
What was the record on September 22, 1974?
CREATE TABLE table_14954150_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_14954150_1 WHERE date = "September 22, 1974"
Who won with the fastest lap of daijiro hiura on March 29?
CREATE TABLE table_name_97 (race_winner VARCHAR, fastest_lap VARCHAR, date VARCHAR)
SELECT race_winner FROM table_name_97 WHERE fastest_lap = "daijiro hiura" AND date = "march 29"
What was the score when geelong was the away team?
CREATE TABLE table_name_45 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_45 WHERE home_team = "geelong"
which week had an attendance of 53,677?
CREATE TABLE table_name_43 (week VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_43 WHERE attendance = "53,677"
In what Week was the Record 4–7–1?
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1"
What is the highest listed year for the partner of Marcel Granollers and a hard surface?
CREATE TABLE table_name_28 (year INTEGER, partner VARCHAR, surface VARCHAR)
SELECT MAX(year) FROM table_name_28 WHERE partner = "marcel granollers" AND surface = "hard"
Which home team played Hawthorn as the away team?
CREATE TABLE table_name_44 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_44 WHERE away_team = "hawthorn"
What rank had more than 165 laps and a finish of 5?
CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"
What is the lowest group to earn 886.6 points?
CREATE TABLE table_1059743_2 (group_stage INTEGER, points VARCHAR)
SELECT MIN(group_stage) FROM table_1059743_2 WHERE points = "886.6"
What is the name of the team song written by ken walther?
CREATE TABLE table_28243323_1 (basis_for_team_song VARCHAR, writer_composer VARCHAR)
SELECT basis_for_team_song FROM table_28243323_1 WHERE writer_composer = "Ken Walther"
What was the class for Appleton, Wisconsin?
CREATE TABLE table_name_96 (class VARCHAR, city_of_license VARCHAR)
SELECT class FROM table_name_96 WHERE city_of_license = "appleton, wisconsin"
What was the record on November 7?
CREATE TABLE table_17288869_5 (record VARCHAR, date VARCHAR)
SELECT COUNT(record) FROM table_17288869_5 WHERE date = "November 7"
What is the lowest Year, when Surface is Hard, and when Opponent is Dinara Safina?
CREATE TABLE table_name_3 (year INTEGER, surface VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_name_3 WHERE surface = "hard" AND opponent = "dinara safina"
What was week 5's result?
CREATE TABLE table_name_81 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_81 WHERE week = 5
List the names of studios that have at least two films.
CREATE TABLE film (Studio VARCHAR)
SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2
Who was the incumbent in the district that first elected someone in 1807?
CREATE TABLE table_2668378_18 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_2668378_18 WHERE first_elected = "1807"
Which Ranking has a Season of 2009?
CREATE TABLE table_name_14 (ranking VARCHAR, season VARCHAR)
SELECT ranking FROM table_name_14 WHERE season = "2009"
Which points against has 17 as the lost?
CREATE TABLE table_name_61 (points_against VARCHAR, lost VARCHAR)
SELECT points_against FROM table_name_61 WHERE lost = "17"
What is the date of the match with a result of 4-0?
CREATE TABLE table_name_44 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_44 WHERE result = "4-0"
What are the number of episodes when the genre is modern drama and the highest average ratings points are 28?
CREATE TABLE table_name_34 (number_of_episodes INTEGER, genre VARCHAR, highest_average_point_ratings VARCHAR)
SELECT AVG(number_of_episodes) FROM table_name_34 WHERE genre = "modern drama" AND highest_average_point_ratings = 28
What rank has an average of 6.33?
CREATE TABLE table_name_23 (rank INTEGER, average VARCHAR)
SELECT AVG(rank) FROM table_name_23 WHERE average = 6.33
What nationality was the round 6 draft pick?
CREATE TABLE table_name_44 (nationality VARCHAR, round VARCHAR)
SELECT nationality FROM table_name_44 WHERE round = 6
Who was the home team when the VFL played Kardinia Park?
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE venue = "kardinia park"
When did Ismail Qemali Bej's term start?
CREATE TABLE table_name_61 (term_start VARCHAR, name VARCHAR)
SELECT term_start FROM table_name_61 WHERE name = "ismail qemali bej"
how many incumbent with first elected being 1924
CREATE TABLE table_1342393_17 (incumbent VARCHAR, first_elected VARCHAR)
SELECT COUNT(incumbent) FROM table_1342393_17 WHERE first_elected = 1924
What seasons does Kevin Jonas appear?
CREATE TABLE table_12441518_1 (main_cast_seasons VARCHAR, portrayed_by VARCHAR)
SELECT main_cast_seasons FROM table_12441518_1 WHERE portrayed_by = "Kevin Jonas"
Name the number of new adherents per year for confucianism
CREATE TABLE table_28137918_5 (new_adherents_per_year VARCHAR, religion VARCHAR)
SELECT COUNT(new_adherents_per_year) FROM table_28137918_5 WHERE religion = "Confucianism"
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?
CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR)
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)"
What is the outcome of the match when the partner is Nicole Arendt?
CREATE TABLE table_name_94 (outcome VARCHAR, partner VARCHAR)
SELECT outcome FROM table_name_94 WHERE partner = "nicole arendt"
How many fourth places were there in 2003?
CREATE TABLE table_1149495_1 (fourth_place VARCHAR, year VARCHAR)
SELECT COUNT(fourth_place) FROM table_1149495_1 WHERE year = "2003"
Name the total number of segment b for s banjo
CREATE TABLE table_15187735_10 (segment_b VARCHAR, segment_d VARCHAR)
SELECT COUNT(segment_b) FROM table_15187735_10 WHERE segment_d = "s Banjo"
List all car plates in the capital of Wilno since the year of 1937.
CREATE TABLE table_11654169_1 (car_plates__since_1937_ VARCHAR, capital VARCHAR)
SELECT car_plates__since_1937_ FROM table_11654169_1 WHERE capital = "Wilno"
What is the average number of people killed with a Perpetrator of wirjo, 42?
CREATE TABLE table_name_54 (killed INTEGER, perpetrator VARCHAR)
SELECT AVG(killed) FROM table_name_54 WHERE perpetrator = "wirjo, 42"
What is Date (Closing), when Opening Film is "Deconstruction of Korean Housewife"?
CREATE TABLE table_name_95 (date__closing_ VARCHAR, opening_film VARCHAR)
SELECT date__closing_ FROM table_name_95 WHERE opening_film = "deconstruction of korean housewife"
What is T2 Place Player Steve Flesch's Score?
CREATE TABLE table_name_97 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT MAX(score) FROM table_name_97 WHERE place = "t2" AND player = "steve flesch"
If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?
CREATE TABLE table_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c VARCHAR, condition_parameter VARCHAR)
SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 1 hyperbolic radian"
What was the aggregate total for the match against Koper?
CREATE TABLE table_name_49 (agg VARCHAR, opponent VARCHAR)
SELECT agg FROM table_name_49 WHERE opponent = "koper"
Who was the senior US senator in the state whose governor was D. Patrick?
CREATE TABLE table_21531764_2 (senior_us_senator VARCHAR, governor VARCHAR)
SELECT senior_us_senator FROM table_21531764_2 WHERE governor = "D. Patrick"
What Type has the Artist of Hiroyuki Takami?
CREATE TABLE table_name_42 (type VARCHAR, artist VARCHAR)
SELECT type FROM table_name_42 WHERE artist = "hiroyuki takami"
Which 3-person dive has 0 as a remote camera?
CREATE TABLE table_name_29 (remote_camera VARCHAR)
SELECT 3 AS _person_dive FROM table_name_29 WHERE remote_camera = "0"
Lost of 18 had what sum of win %?
CREATE TABLE table_name_52 (win__percentage INTEGER, lost VARCHAR)
SELECT SUM(win__percentage) FROM table_name_52 WHERE lost = 18
What category was The Suite Life on Deck nominated for later than 2010?
CREATE TABLE table_name_62 (category VARCHAR, recipient VARCHAR, year VARCHAR)
SELECT category FROM table_name_62 WHERE recipient = "the suite life on deck" AND year > 2010
What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?
CREATE TABLE table_name_18 (total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR)
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_18 WHERE code__iata_icao_ = "bkk/vtbs" AND rank > 19
Show headquarters with at least two companies in the banking industry.
CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)
SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2
What is the score from the 21-27 Record?
CREATE TABLE table_name_96 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_96 WHERE record = "21-27"
What school has a county of 69 ripley?
CREATE TABLE table_name_74 (school VARCHAR, county VARCHAR)
SELECT school FROM table_name_74 WHERE county = "69 ripley"
Which player has a score of 68-69-73=210
CREATE TABLE table_name_8 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_8 WHERE score = 68 - 69 - 73 = 210
How many games were played at Cleveland Stadium?
CREATE TABLE table_16729063_2 (date VARCHAR, game_site VARCHAR)
SELECT COUNT(date) FROM table_16729063_2 WHERE game_site = "Cleveland Stadium"
What are all the places where the number of perfect 40s is 0 and the average is 27.25?
CREATE TABLE table_15988037_24 (place VARCHAR, perfect_40s VARCHAR, average VARCHAR)
SELECT place FROM table_15988037_24 WHERE perfect_40s = 0 AND average = "27.25"
What was the last year árni þór hallgrímsson drífa harðardóttir won mixed doubles
CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR)
SELECT MAX(year) FROM table_14903999_1 WHERE mixed_doubles = "Árni Þór Hallgrímsson Drífa Harðardóttir"
What was the score in the game played on December 2, 1984?
CREATE TABLE table_14863869_1 (record VARCHAR, date VARCHAR)
SELECT record FROM table_14863869_1 WHERE date = "December 2, 1984"
Who was the aggressive rider when the winner was luis león sánchez?
CREATE TABLE table_25580292_13 (aggressive_rider VARCHAR, winner VARCHAR)
SELECT aggressive_rider FROM table_25580292_13 WHERE winner = "Luis León Sánchez"
What surface was played on with a score of 6–4, 6–3 and on 4 May 1992?
CREATE TABLE table_name_36 (surface VARCHAR, score VARCHAR, date VARCHAR)
SELECT surface FROM table_name_36 WHERE score = "6–4, 6–3" AND date = "4 may 1992"
When موسم زيتون is the arabic title when is the year (ceremony)?
CREATE TABLE table_26555737_1 (year__ceremony_ VARCHAR, arabic_title VARCHAR)
SELECT year__ceremony_ FROM table_26555737_1 WHERE arabic_title = "موسم زيتون"
What is To par, when Margin of Victory is "2 Strokes", and when Tournament is "Women's British Open"?
CREATE TABLE table_name_98 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT to_par FROM table_name_98 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open"
Which Seasons have Entries larger than 52, and Poles of 33?
CREATE TABLE table_name_28 (seasons VARCHAR, entries VARCHAR, poles VARCHAR)
SELECT seasons FROM table_name_28 WHERE entries > 52 AND poles = 33
What is the score for 2004?
CREATE TABLE table_name_69 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_69 WHERE year = 2004
How many courses are there in total?
CREATE TABLE COURSES (Id VARCHAR)
SELECT COUNT(*) FROM COURSES
What is the total enrollment number of all colleges?
CREATE TABLE College (enr INTEGER)
SELECT SUM(enr) FROM College
What Venue on October 27, 2005 had a Score of 5-0?
CREATE TABLE table_name_65 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT venue FROM table_name_65 WHERE score = "5-0" AND date = "october 27, 2005"
What week was the record 0-5?
CREATE TABLE table_name_96 (week VARCHAR, record VARCHAR)
SELECT week FROM table_name_96 WHERE record = "0-5"
What was the maximum attendance when Chicago is the visiting team?
CREATE TABLE table_name_91 (attendance INTEGER, visitor VARCHAR)
SELECT MAX(attendance) FROM table_name_91 WHERE visitor = "chicago"
List the number of invoices from Chicago, IL.
CREATE TABLE invoices (billing_city VARCHAR, billing_state VARCHAR)
SELECT COUNT(*) FROM invoices WHERE billing_city = "Chicago" AND billing_state = "IL"
Name the period for south korea with peak position of #24
CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#24"