question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?
CREATE TABLE table_name_84 (round VARCHAR, event VARCHAR)
SELECT round FROM table_name_84 WHERE event = "strikeforce: shamrock vs. diaz"
How much uranium did Russia use in 2006 to 2008?
CREATE TABLE table_15624586_2 (uranium_required_2006_08 VARCHAR, country VARCHAR)
SELECT uranium_required_2006_08 FROM table_15624586_2 WHERE country = "Russia"
What is the famous release date of the artist with the oldest age?
CREATE TABLE artist (Famous_Release_date VARCHAR, Age VARCHAR)
SELECT Famous_Release_date FROM artist ORDER BY Age DESC LIMIT 1
How many episodes were written by Alexander Woo and directed by Scott Winant?
CREATE TABLE table_26493520_1 (title VARCHAR, written_by VARCHAR, directed_by VARCHAR)
SELECT COUNT(title) FROM table_26493520_1 WHERE written_by = "Alexander Woo" AND directed_by = "Scott Winant"
Which is the highest silver that has a gold less than 0?
CREATE TABLE table_name_40 (silver INTEGER, gold INTEGER)
SELECT MAX(silver) FROM table_name_40 WHERE gold < 0
Which Title has a Type of ep and a Year larger than 2003?
CREATE TABLE table_name_83 (title VARCHAR, type VARCHAR, year VARCHAR)
SELECT title FROM table_name_83 WHERE type = "ep" AND year > 2003
Which Constructor has the goodwood circuit?
CREATE TABLE table_name_53 (constructor VARCHAR, circuit VARCHAR)
SELECT constructor FROM table_name_53 WHERE circuit = "goodwood"
What group was the Hollindale Stakes in?
CREATE TABLE table_2062148_3 (group VARCHAR, race VARCHAR)
SELECT group FROM table_2062148_3 WHERE race = "Hollindale Stakes"
What was the Home team's score when the Venue was mcg?
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_95 WHERE venue = "mcg"
Of those with a height of 7-0, who weighs the most?
CREATE TABLE table_name_6 (weight INTEGER, height VARCHAR)
SELECT MAX(weight) FROM table_name_6 WHERE height = "7-0"
What is the average grid with more than 23 laps?
CREATE TABLE table_name_78 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_78 WHERE laps > 23
What was the title with episode 8?
CREATE TABLE table_name_82 (title VARCHAR, episodes VARCHAR)
SELECT title FROM table_name_82 WHERE episodes = "8"
What is every website with specialization of engineering and division of dhaka division?
CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)
SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division"
who are the writer of the series episode number 170?
CREATE TABLE table_22580855_1 (written_by VARCHAR, series_no VARCHAR)
SELECT written_by FROM table_22580855_1 WHERE series_no = 170
what is Gold Medals that has salem blue devils and a Silver Medals less than 1?
CREATE TABLE table_name_18 (gold_medals INTEGER, ensemble VARCHAR, silver_medals VARCHAR)
SELECT MIN(gold_medals) FROM table_name_18 WHERE ensemble = "salem blue devils" AND silver_medals < 1
Which skipper has 78 points?
CREATE TABLE table_name_90 (skipper VARCHAR, points VARCHAR)
SELECT skipper FROM table_name_90 WHERE points = "78"
Name the city of license when founded was may 1995
CREATE TABLE table_name_92 (city_of_license VARCHAR, founded VARCHAR)
SELECT city_of_license FROM table_name_92 WHERE founded = "may 1995"
Which Distance has a Time of men's speed skating?
CREATE TABLE table_name_46 (distance VARCHAR, time VARCHAR)
SELECT distance FROM table_name_46 WHERE time = "men's speed skating"
Which district has John Culpepper (f) as the vacator?
CREATE TABLE table_225093_4 (district VARCHAR, vacator VARCHAR)
SELECT district FROM table_225093_4 WHERE vacator = "John Culpepper (F)"
What was the date of the game played at Victoria Park?
CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_80 WHERE venue = "victoria park"
how many party with district being washington 7
CREATE TABLE table_1341472_49 (party VARCHAR, district VARCHAR)
SELECT COUNT(party) FROM table_1341472_49 WHERE district = "Washington 7"
How many transactions do we have?
CREATE TABLE Financial_transactions (Id VARCHAR)
SELECT COUNT(*) FROM Financial_transactions
What is the NHL team that has Peter Strom?
CREATE TABLE table_1013129_8 (nhl_team VARCHAR, player VARCHAR)
SELECT nhl_team FROM table_1013129_8 WHERE player = "Peter Strom"
Who were the previous champions from the event won on May 1, 2010?
CREATE TABLE table_name_40 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT previous_champion_s_ FROM table_name_40 WHERE date_won = "may 1, 2010"
What are the positions and teams of pilots?
CREATE TABLE pilot (POSITION VARCHAR, Team VARCHAR)
SELECT POSITION, Team FROM pilot
What was the result for the best musical revival category?
CREATE TABLE table_name_98 (result VARCHAR, category VARCHAR)
SELECT result FROM table_name_98 WHERE category = "best musical revival"
what is the total number of player where years for rockets is 2004-06
CREATE TABLE table_11734041_20 (player VARCHAR, years_for_rockets VARCHAR)
SELECT COUNT(player) FROM table_11734041_20 WHERE years_for_rockets = "2004-06"
How many premier episodes were there with the title survivor's law ii?
CREATE TABLE table_11926114_1 (premiere VARCHAR, english_title VARCHAR)
SELECT COUNT(premiere) FROM table_11926114_1 WHERE english_title = "Survivor's Law II"
Which Hanzi has a Regional Population of 4,591,972 in 2010?
CREATE TABLE table_name_92 (hanzi VARCHAR, regional_population_2010_ VARCHAR)
SELECT hanzi FROM table_name_92 WHERE regional_population_2010_ = "4,591,972"
What is the 2005 figure when 2002 is A and 2010 is 3R?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT 2005 FROM table_name_29 WHERE 2002 = "a" AND 2010 = "3r"
How many female people are older than 30 in our record?
CREATE TABLE people (is_male VARCHAR, age VARCHAR)
SELECT COUNT(*) FROM people WHERE is_male = 'F' AND age > 30
What was the constructor in the Belgian Grand Prix round?
CREATE TABLE table_2911781_3 (constructor VARCHAR, grand_prix VARCHAR)
SELECT constructor FROM table_2911781_3 WHERE grand_prix = "Belgian grand_prix"
What was the finish associated with under 11 starts, a honda engine, before 2003?
CREATE TABLE table_name_19 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)
SELECT AVG(finish) FROM table_name_19 WHERE start < 11 AND engine = "honda" AND year < 2003
What is the hometown of the player who is headed to Duke?
CREATE TABLE table_name_83 (hometown VARCHAR, college VARCHAR)
SELECT hometown FROM table_name_83 WHERE college = "duke"
What is the total number of Year, when Bronze is "Jamie Stevenson"?
CREATE TABLE table_name_90 (year VARCHAR, bronze VARCHAR)
SELECT COUNT(year) FROM table_name_90 WHERE bronze = "jamie stevenson"
What is the Tie no listed for the Away team of Barnet?
CREATE TABLE table_name_13 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_13 WHERE away_team = "barnet"
What are the last names of the author of the paper titled "Binders Unbound"?
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR, title VARCHAR)
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t3.title = "Binders Unbound"
What is the average value of Bronze when silver is 0 and the total is less than 1?
CREATE TABLE table_name_18 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT AVG(bronze) FROM table_name_18 WHERE silver = 0 AND total < 1
What is the £1 fraction when the reverse is hare?
CREATE TABLE table_1682865_1 (£1_fraction VARCHAR, reverse VARCHAR)
SELECT £1_fraction FROM table_1682865_1 WHERE reverse = "Hare"
How much January has a Record of 26–12–6, and Points smaller than 58?
CREATE TABLE table_name_37 (january INTEGER, record VARCHAR, points VARCHAR)
SELECT SUM(january) FROM table_name_37 WHERE record = "26–12–6" AND points < 58
What is the average Total that has a Gold of 0, when the rank is less than 16, the nation is Georgia and there is more than 2 for Bronze?
CREATE TABLE table_name_70 (total INTEGER, bronze VARCHAR, nation VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT AVG(total) FROM table_name_70 WHERE gold = 0 AND rank < 16 AND nation = "georgia" AND bronze > 2
Which composer had a CHR chart peak at #2?
CREATE TABLE table_name_93 (composer_s_ VARCHAR, chr_chart_peak VARCHAR)
SELECT composer_s_ FROM table_name_93 WHERE chr_chart_peak = 2
What is the highest number of Seats 2006 held by the communities of Bürger Für Groß-Rohrheim Party/Voter Community, with a %2006 less than 21.3?
CREATE TABLE table_name_5 (seats_2006 INTEGER, parties_and_voter_communities VARCHAR, _percentage_2006 VARCHAR)
SELECT MAX(seats_2006) FROM table_name_5 WHERE parties_and_voter_communities = "bürger für groß-rohrheim" AND _percentage_2006 < 21.3
What runner-up has 4 & 3 as the score, with michael bonallack as the winner?
CREATE TABLE table_name_14 (runner_up VARCHAR, score VARCHAR, winner VARCHAR)
SELECT runner_up FROM table_name_14 WHERE score = "4 & 3" AND winner = "michael bonallack"
How many people were in attendance on January 4, 2008?
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_33 WHERE date = "january 4, 2008"
Which Round has an Overall smaller than 6?
CREATE TABLE table_name_84 (round INTEGER, overall INTEGER)
SELECT MAX(round) FROM table_name_84 WHERE overall < 6
What is the lowest Position, when Points 1 is "39", and when Goals Against is greater than 49?
CREATE TABLE table_name_75 (position INTEGER, points_1 VARCHAR, goals_against VARCHAR)
SELECT MIN(position) FROM table_name_75 WHERE points_1 = "39" AND goals_against > 49
On what date was the game with fewer than 6650 in attendance, that finished 0:1?
CREATE TABLE table_name_30 (date VARCHAR, attendance VARCHAR, score VARCHAR)
SELECT date FROM table_name_30 WHERE attendance < 6650 AND score = "0:1"
what parliament's name is lina loh woon lee?
CREATE TABLE table_1889233_2 (parliament VARCHAR, name VARCHAR)
SELECT parliament FROM table_1889233_2 WHERE name = "Lina Loh Woon Lee"
Who was the home team at the game with a crowd larger than 32,576?
CREATE TABLE table_name_20 (home_team VARCHAR, crowd INTEGER)
SELECT home_team AS score FROM table_name_20 WHERE crowd > 32 OFFSET 576
Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position before round 9?
CREATE TABLE table_name_58 (grand_prix VARCHAR, round VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT grand_prix FROM table_name_58 WHERE winning_driver = "david coulthard" AND pole_position = "michael schumacher" AND round < 9
What is the graduation rate for the school district with headquarters located in Sydney?
CREATE TABLE table_21514460_1 (graduation_rate__2011_12_ VARCHAR, headquarters VARCHAR)
SELECT graduation_rate__2011_12_ FROM table_21514460_1 WHERE headquarters = "Sydney"
What is the name of the country when the television service is italia 1?
CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR)
SELECT country FROM table_name_95 WHERE television_service = "italia 1"
What name is for the period 1945-1949 & 1953-1954 1949-1952?
CREATE TABLE table_name_69 (name VARCHAR, period VARCHAR)
SELECT name FROM table_name_69 WHERE period = "1945-1949 & 1953-1954 1949-1952"
How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?
CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR)
SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = "fokker"
What country that has LP as a format?
CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR)
SELECT country FROM table_name_55 WHERE format = "lp"
Who replaced Michel Preud'homme?
CREATE TABLE table_27374004_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)
SELECT replaced_by FROM table_27374004_3 WHERE outgoing_manager = "Michel Preud'homme"
What is the total rank by average for 2 dances, which have more than 37 total points?
CREATE TABLE table_name_99 (rank_by_average VARCHAR, number_of_dances VARCHAR, total_points VARCHAR)
SELECT COUNT(rank_by_average) FROM table_name_99 WHERE number_of_dances = 2 AND total_points > 37
What is average and maximum salary of all employees.
CREATE TABLE Employee (salary INTEGER)
SELECT AVG(salary), MAX(salary) FROM Employee
What is the Visitor on March 31?
CREATE TABLE table_name_56 (visitor VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_56 WHERE date = "march 31"
What is the current status of the person named Nicholls?
CREATE TABLE table_name_65 (status VARCHAR, name VARCHAR)
SELECT status FROM table_name_65 WHERE name = "nicholls"
how many times was the points 18?
CREATE TABLE table_name_69 (place VARCHAR, points VARCHAR)
SELECT COUNT(place) FROM table_name_69 WHERE points = 18
Find the average credit score of the customers who have some loan.
CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)
SELECT AVG(credit_score) FROM customer WHERE cust_id IN (SELECT cust_id FROM loan)
What dat did episode 195 in the series originally air?
CREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 195
who directed the episode that have 14.59 million viewers
CREATE TABLE table_19417244_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT directed_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.59"
What lane is from Great Britain and a 57.78 time?
CREATE TABLE table_name_95 (lane VARCHAR, nationality VARCHAR, time VARCHAR)
SELECT COUNT(lane) FROM table_name_95 WHERE nationality = "great britain" AND time > 57.78
What is the studio of ra.one?
CREATE TABLE table_name_89 (studio_s_ VARCHAR, movie VARCHAR)
SELECT studio_s_ FROM table_name_89 WHERE movie = "ra.one"
What is 1999, when 1998 is 2R?
CREATE TABLE table_name_18 (Id VARCHAR)
SELECT 1999 FROM table_name_18 WHERE 1998 = "2r"
What is the enrollment of STM which has been in competition since 1990?
CREATE TABLE table_11318462_29 (enrolment VARCHAR, in_competition_since VARCHAR, abbreviation VARCHAR)
SELECT COUNT(enrolment) FROM table_11318462_29 WHERE in_competition_since = 1990 AND abbreviation = "STM"
Show the ids and names of all documents.
CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
SELECT document_id, document_name FROM Documents
Name the transfer fee with a transfer window of summer for schollen
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen"
Find the number of dorms and total capacity for each gender.
CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)
SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender
What is the company from Greece with author Aeschylus?
CREATE TABLE table_name_45 (company VARCHAR, country VARCHAR, author VARCHAR)
SELECT company FROM table_name_45 WHERE country = "greece" AND author = "aeschylus"
Name the average valid poll for seats less than 3
CREATE TABLE table_name_45 (valid_poll INTEGER, seats INTEGER)
SELECT AVG(valid_poll) FROM table_name_45 WHERE seats < 3
What was the margin of victory for Olazabal in the German Masters?
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT margin_of_victory FROM table_name_78 WHERE tournament = "german masters"
Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.
CREATE TABLE payment (customer_id VARCHAR); CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR)
SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1
Which frequency belongs to the cihr-fm call sign?
CREATE TABLE table_name_72 (frequency VARCHAR, call_sign VARCHAR)
SELECT frequency FROM table_name_72 WHERE call_sign = "cihr-fm"
What was the surface type during the match with the score of 6–4, 7–6 (7-5)??
CREATE TABLE table_name_54 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_54 WHERE score = "6–4, 7–6 (7-5)"
What is Bobby Ryan's nationality?
CREATE TABLE table_name_91 (nationality VARCHAR, player VARCHAR)
SELECT nationality FROM table_name_91 WHERE player = "bobby ryan"
What was the money when the place was t8 and the score was 74-72-75-71=292?
CREATE TABLE table_name_21 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_21 WHERE place = "t8" AND score = 74 - 72 - 75 - 71 = 292
Find the players whose names contain letter 'a'.
CREATE TABLE Player (pName VARCHAR)
SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'
What is the document type name for the document with name "How to read a book"?
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_code VARCHAR); CREATE TABLE All_documents (document_type_code VARCHAR, document_name VARCHAR)
SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code = T2.document_type_code WHERE T1.document_name = "How to read a book"
A tournament on which date has a margin of victory of 2 strokes and a par of −16?
CREATE TABLE table_name_8 (date VARCHAR, margin_of_victory VARCHAR, to_par VARCHAR)
SELECT date FROM table_name_8 WHERE margin_of_victory = "2 strokes" AND to_par = "−16"
What is the lowest Wins that has the Team of Olimpia and Draws that's smaller than 4?
CREATE TABLE table_name_21 (wins INTEGER, team VARCHAR, draws VARCHAR)
SELECT MIN(wins) FROM table_name_21 WHERE team = "olimpia" AND draws < 4
What was the score when Edmonton was the home team?
CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR)
SELECT score FROM table_name_10 WHERE home = "edmonton"
What is the overall length with a designation of s-8ko?
CREATE TABLE table_name_38 (length_overall VARCHAR, designation VARCHAR)
SELECT length_overall FROM table_name_38 WHERE designation = "s-8ko"
Find the id of users who are followed by Mary and 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" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan"
What party is Marie-Dominique Simonet part of?
CREATE TABLE table_name_97 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet"
If team two is San Lorenzo, how many were on team one?
CREATE TABLE table_16795394_3 (team__number1 VARCHAR, team__number2 VARCHAR)
SELECT COUNT(team__number1) FROM table_16795394_3 WHERE team__number2 = "San Lorenzo"
List ids for all student who are on scholarship.
CREATE TABLE Sportsinfo (StuID VARCHAR, onscholarship VARCHAR)
SELECT StuID FROM Sportsinfo WHERE onscholarship = 'Y'
What is the average lane racheal nachula has when the heat is less than 2?
CREATE TABLE table_name_80 (lane INTEGER, heat VARCHAR, name VARCHAR)
SELECT AVG(lane) FROM table_name_80 WHERE heat < 2 AND name = "racheal nachula"
What is the name of the DVD where the number of discs is greater than 2.0
CREATE TABLE table_1180228_1 (dvd_name VARCHAR, num_of_discs INTEGER)
SELECT dvd_name FROM table_1180228_1 WHERE num_of_discs > 2.0
What rank did Best Friends receive?
CREATE TABLE table_name_90 (rank VARCHAR, title VARCHAR)
SELECT rank FROM table_name_90 WHERE title = "best friends"
What is the xDSL for the other of 0.6% and FTTx of 35.4%?
CREATE TABLE table_name_1 (xdsl VARCHAR, other VARCHAR, fttx VARCHAR)
SELECT xdsl FROM table_name_1 WHERE other = "0.6%" AND fttx = "35.4%"
What was the Result of the game after Week 9 with an Attendance of 69,714?
CREATE TABLE table_name_70 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_70 WHERE week > 9 AND attendance = "69,714"
What is the strongs words compounded when the english spelling is jonadab?
CREATE TABLE table_1242447_1 (strongs_words_compounded VARCHAR, english_spelling VARCHAR)
SELECT strongs_words_compounded FROM table_1242447_1 WHERE english_spelling = "Jonadab"
What was the average crowd size when Melbourne was the home team?
CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE home_team = "melbourne"
What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 1
What is the avg start that starts at 30?
CREATE TABLE table_1458412_1 (avg_start VARCHAR, starts VARCHAR)
SELECT avg_start FROM table_1458412_1 WHERE starts = 30
Please show different denominations and the corresponding number of schools in descending order.
CREATE TABLE school (Denomination VARCHAR)
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination ORDER BY COUNT(*) DESC