answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT surface FROM table_name_54 WHERE opponent_in_the_final = "evie dominikovic"
The final match played against Evie Dominikovic was played on what surface?
CREATE TABLE table_name_54 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT COUNT(*), constructorid FROM constructorStandings GROUP BY constructorid
What are the numbers of races for each constructor id?
CREATE TABLE constructorStandings (constructorid VARCHAR)
SELECT score FROM table_name_61 WHERE result = "3-2"
What is the score of the match with a 3-2 result?
CREATE TABLE table_name_61 (score VARCHAR, result VARCHAR)
SELECT COUNT(crowd) FROM table_name_60 WHERE home_team = "footscray"
What is the total of the crowd when the home team is footscray?
CREATE TABLE table_name_60 (crowd VARCHAR, home_team VARCHAR)
SELECT burglary FROM table_26060884_2 WHERE forcible_rape = 1233
How many burglary crimes were committed if the forcible rapes were 1233?
CREATE TABLE table_26060884_2 (burglary VARCHAR, forcible_rape VARCHAR)
SELECT name FROM table_name_23 WHERE react < 0.149 AND lane < 6
Who has a react smaller than 0.149 and a lane smaller than 6?
CREATE TABLE table_name_23 (name VARCHAR, react VARCHAR, lane VARCHAR)
SELECT year__ceremony_ FROM table_name_30 WHERE result = "nominee" AND actor_actress = "holly hunter"
What year was holly hunter a nominee?
CREATE TABLE table_name_30 (year__ceremony_ VARCHAR, result VARCHAR, actor_actress VARCHAR)
SELECT MAX(points) FROM table_name_53 WHERE assists = 46
What are the most Points with an Assist of 46?
CREATE TABLE table_name_53 (points INTEGER, assists VARCHAR)
SELECT COUNT(population__2005_) FROM table_1480455_1 WHERE population_density___km_2__ = "35.9"
What is the total number of population in the year 2005 where the population density 35.9 (/km 2)?
CREATE TABLE table_1480455_1 (population__2005_ VARCHAR, population_density___km_2__ VARCHAR)
SELECT area_province FROM table_name_64 WHERE district = "córdoba"
Name the area for District of córdoba
CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR)
SELECT district FROM table_1342359_5 WHERE incumbent = "Richard J. Welch"
what's the district with incumbent being richard j. welch
CREATE TABLE table_1342359_5 (district VARCHAR, incumbent VARCHAR)
SELECT date FROM table_name_83 WHERE venue = "princes park"
What was the date of the game at Princes Park?
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_7 WHERE venue = "kardinia park"
What was the away teams score when they played at kardinia park?
CREATE TABLE table_name_7 (away_team VARCHAR, venue VARCHAR)
SELECT urban_sub_area FROM table_name_58 WHERE population = "16,140"
Which urban sub-area has a population of 16,140?
CREATE TABLE table_name_58 (urban_sub_area VARCHAR, population VARCHAR)
SELECT COUNT(opponent) FROM table_18894744_6 WHERE record = "17-6"
How many opponents was a game with a record 17-6 played against?
CREATE TABLE table_18894744_6 (opponent VARCHAR, record VARCHAR)
SELECT venue FROM table_name_80 WHERE away_team = "fitzroy"
What is the venue when fitzroy was the away team?
CREATE TABLE table_name_80 (venue VARCHAR, away_team VARCHAR)
SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE YEAR = 1998
What are first and last names of players participating in all star game in 1998?
CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR)
SELECT competition FROM table_name_87 WHERE result = "won" AND date = "september 13, 1996"
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 MIN(lost) FROM table_name_79 WHERE name = "esc holzkirchen" AND played < 14
Which Lost is the lowest one that has a Name of esc holzkirchen, and Played smaller than 14?
CREATE TABLE table_name_79 (lost INTEGER, name VARCHAR, played VARCHAR)
SELECT MIN(seats) FROM table_name_86 WHERE election = 1992
What is the lowest number of seats of the 1992 election?
CREATE TABLE table_name_86 (seats INTEGER, election VARCHAR)
SELECT position FROM table_name_35 WHERE pick = 50
Which position had a pick of 50?
CREATE TABLE table_name_35 (position VARCHAR, pick VARCHAR)
SELECT COUNT(2007) FROM table_name_47 WHERE million_czk = "operating revenues"
What 2007 number when the million CZK shows operating revenues?
CREATE TABLE table_name_47 (million_czk VARCHAR)
SELECT T1.Name FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name HAVING COUNT(*) > 1
Show the names of countries that have more than one roller coaster.
CREATE TABLE roller_coaster (Country_ID VARCHAR); CREATE TABLE country (Name VARCHAR, Country_ID VARCHAR)
SELECT winner FROM table_20026849_1 WHERE destination = "Africa"
Who won the season with Africa as its destination?
CREATE TABLE table_20026849_1 (winner VARCHAR, destination VARCHAR)
SELECT original_us_air_date FROM table_17901155_4 WHERE viewers__millions_ = "4.4"
Which US air date had 4.4 million viewers?
CREATE TABLE table_17901155_4 (original_us_air_date VARCHAR, viewers__millions_ VARCHAR)
SELECT directed_by FROM table_19068566_1 WHERE production_code = "3T7461"
When 3t7461 is the production code who is the director?
CREATE TABLE table_19068566_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT european_competitions FROM table_name_48 WHERE tier = 2 AND pos = 3
What European competitions have a tier of 2 and a position of 3?
CREATE TABLE table_name_48 (european_competitions VARCHAR, tier VARCHAR, pos VARCHAR)
SELECT AVG(week) FROM table_name_49 WHERE result = "l 23–3"
What's the average Week with the Result l 23–3?
CREATE TABLE table_name_49 (week INTEGER, result VARCHAR)
SELECT surface FROM table_2215159_2 WHERE championship = "French championships"
What is the surface of the French Championships?
CREATE TABLE table_2215159_2 (surface VARCHAR, championship VARCHAR)
SELECT pos FROM table_name_53 WHERE height = "m (ft 6in)"
What is the position of the player with a height of m (ft 6in)?
CREATE TABLE table_name_53 (pos VARCHAR, height VARCHAR)
SELECT name, country FROM people WHERE age < (SELECT AVG(age) FROM people)
Show the name and country for all people whose age is smaller than the average.
CREATE TABLE people (name VARCHAR, country VARCHAR, age INTEGER)
SELECT engine FROM table_11167610_1 WHERE turbo = "Yes (Mitsubishi TD04-15g )"
" what's the engine with turbo being yes (mitsubishi td04-15g ) "
CREATE TABLE table_11167610_1 (engine VARCHAR, turbo VARCHAR)
SELECT MAX(opp_points) FROM table_22903773_2 WHERE record = "16-5"
How many points did the opponents score on the game where Sooners' record was 16-5?
CREATE TABLE table_22903773_2 (opp_points INTEGER, record VARCHAR)
SELECT original_teams FROM table_name_29 WHERE the_biggest_loser = "danni allen"
What were the original teams for the season that was won by Danni Allen?
CREATE TABLE table_name_29 (original_teams VARCHAR, the_biggest_loser VARCHAR)
SELECT record FROM table_14940519_1 WHERE result = "L 17–50"
Name the record for result of l 17–50
CREATE TABLE table_14940519_1 (record VARCHAR, result VARCHAR)
SELECT AVG(events) FROM table_name_55 WHERE player = "al geiberger" AND wins < 1
What is the average events that Al Geiberger played with wins smaller than 1?
CREATE TABLE table_name_55 (events INTEGER, player VARCHAR, wins VARCHAR)
SELECT 2010 FROM table_name_43 WHERE 2011 = "q2" AND 2012 = "1r" AND 2009 = "1r"
What is the 2010 result of a tournament that is 1R in 2009, Q2 in 2011 and 1R in 2012?
CREATE TABLE table_name_43 (Id VARCHAR)
SELECT week_12 FROM table_name_1 WHERE week_1 = "maria maxine" AND week_2 = "henri satu"
What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?
CREATE TABLE table_name_1 (week_12 VARCHAR, week_1 VARCHAR, week_2 VARCHAR)
SELECT SUM(points) FROM table_name_70 WHERE touchdowns > 0 AND extra_points < 0
Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?
CREATE TABLE table_name_70 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR)
SELECT school_club_team FROM table_15621965_14 WHERE player = "Kevin Ollie"
Name the school/club team for kevin ollie
CREATE TABLE table_15621965_14 (school_club_team VARCHAR, player VARCHAR)
SELECT golf FROM table_name_66 WHERE school = "green bay"
Does Green Bay have a golf team?
CREATE TABLE table_name_66 (golf VARCHAR, school VARCHAR)
SELECT winning_score FROM table_name_96 WHERE date = "jul 14, 1973"
What was the winning score for the tournament played on Jul 14, 1973?
CREATE TABLE table_name_96 (winning_score VARCHAR, date VARCHAR)
SELECT title FROM table_name_90 WHERE name = "david campbell mulford"
What is the title for david campbell mulford?
CREATE TABLE table_name_90 (title VARCHAR, name VARCHAR)
SELECT home_team FROM table_26847237_1 WHERE opposition = "Buller"
Who was the home team when the opposition was Buller?
CREATE TABLE table_26847237_1 (home_team VARCHAR, opposition VARCHAR)
SELECT sound__allophone_ FROM "t" AS able_name_50 WHERE roman = "t"
The Roman value of t is associated with what allophone?
CREATE TABLE t (Id VARCHAR)
SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 1
What is the sum of top-25s for events with more than 1 top-5?
CREATE TABLE table_name_71 (top_25 INTEGER, top_5 INTEGER)
SELECT COUNT(_percentage_wt_comp_1) FROM table_name_1 WHERE _percentage_wt_comp_2 = 27
Tell me the total number of % wt comp 1 foR % wt comp 2 or 27
CREATE TABLE table_name_1 (_percentage_wt_comp_1 VARCHAR, _percentage_wt_comp_2 VARCHAR)
SELECT eurozone FROM table_name_24 WHERE population_m__luz_ = 3.08
What is the Eurozone result for Population M (LUZ) of 3.08?
CREATE TABLE table_name_24 (eurozone VARCHAR, population_m__luz_ VARCHAR)
SELECT MAX(used_kb), MIN(used_kb), AVG(used_kb) FROM screen_mode
List the maximum, minimum and average number of used kb in screen mode.
CREATE TABLE screen_mode (used_kb INTEGER)
SELECT country FROM table_name_15 WHERE name = "glory alozie"
What country does Glory Alozie play for?
CREATE TABLE table_name_15 (country VARCHAR, name VARCHAR)
SELECT AVG(game) FROM table_name_4 WHERE date = "march 2"
Which game was played on march 2?
CREATE TABLE table_name_4 (game INTEGER, date VARCHAR)
SELECT speed___iops__ FROM table_27615520_1 WHERE storage_medium = "eMLC Flash"
What is the Input/output operations per second for the emlc flash?
CREATE TABLE table_27615520_1 (speed___iops__ VARCHAR, storage_medium VARCHAR)
SELECT COUNT(manufacturer) FROM table_10007452_3 WHERE model = "GE40LFR"
how many times is the model ge40lfr?
CREATE TABLE table_10007452_3 (manufacturer VARCHAR, model VARCHAR)
SELECT player FROM table_name_70 WHERE to_par = "+1" AND score = 72 - 70 - 72 = 214
What is Player, when To Par is +1, and when Score is 72-70-72=214?
CREATE TABLE table_name_70 (player VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT club FROM table_name_26 WHERE wins = 13 AND goals_against < 48 AND position = 4
What Club has 13 wins, goals against less than 48, and a position of 4?
CREATE TABLE table_name_26 (club VARCHAR, position VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT score FROM table_name_97 WHERE opponent = "washington bullets"
For the game against the Washington Bullets, what was the final score?
CREATE TABLE table_name_97 (score VARCHAR, opponent VARCHAR)
SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond"
How many spectators were at the game where Richmond was the away team?
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT iucn FROM table_name_84 WHERE district = "cayo" AND reserve = "actun tunichil muknal"
What is the IUNC of district of Cayo and reserve of Actun Tunichil Muknal?
CREATE TABLE table_name_84 (iucn VARCHAR, district VARCHAR, reserve VARCHAR)
SELECT SUM(bronze) FROM table_name_37 WHERE total = 4 AND silver < 3
How many bronzes were held by those with a total of 4 and less than 3 silvers.
CREATE TABLE table_name_37 (bronze INTEGER, total VARCHAR, silver VARCHAR)
SELECT high_rebounds FROM table_name_35 WHERE date = "september 11"
What were the high rebounds on september 11?
CREATE TABLE table_name_35 (high_rebounds VARCHAR, date VARCHAR)
SELECT event FROM table_name_98 WHERE opponent = "jorge gurgel"
What event did Diego Saraiva fight jorge gurgel?
CREATE TABLE table_name_98 (event VARCHAR, opponent VARCHAR)
SELECT yacht_name FROM table_name_28 WHERE overall_place = "12"
What is the name of the yacht where 12 is the overall place?
CREATE TABLE table_name_28 (yacht_name VARCHAR, overall_place VARCHAR)
SELECT result FROM table_name_36 WHERE date = "26 october 1993"
What was the result on 26 October 1993?
CREATE TABLE table_name_36 (result VARCHAR, date VARCHAR)
SELECT g__μs_km_ FROM table_261642_3 WHERE frequency__hz_ = "100k"
What is the g (μs/km)when the frequency (hz) is 100k?
CREATE TABLE table_261642_3 (g__μs_km_ VARCHAR, frequency__hz_ VARCHAR)
SELECT AVG(rank__timeslot_) FROM table_name_2 WHERE rating > 2.9 AND rating / SHARE(18 - 49) = 2.6 / 8 AND rank__night_ > 5
What is the timeslor rank for the episode with larger than 2.9 rating, rating/share of 2.6/8 and rank for the night higher than 5?
CREATE TABLE table_name_2 (rank__timeslot_ INTEGER, rank__night_ VARCHAR, rating VARCHAR)
SELECT MAX(rank) FROM table_name_58 WHERE gold = 0 AND total > 1 AND silver > 0
What is the rank when there is 0 gold, the total is more than 1, and silver is more than 0?
CREATE TABLE table_name_58 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT drawn FROM table_name_94 WHERE played = "22" AND points_against = "453" AND losing_bonus = "5"
For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?
CREATE TABLE table_name_94 (drawn VARCHAR, losing_bonus VARCHAR, played VARCHAR, points_against VARCHAR)
SELECT name FROM table_22705586_1 WHERE date_of_birth = "27/07/86"
Name the date of birth for 27/07/86
CREATE TABLE table_22705586_1 (name VARCHAR, date_of_birth VARCHAR)
SELECT driver FROM table_name_42 WHERE year = "1969"
Who is the driver from 1969?
CREATE TABLE table_name_42 (driver VARCHAR, year VARCHAR)
SELECT general_classification FROM table_21573750_2 WHERE stage = 4
When 4 is the stage who is the general classification?
CREATE TABLE table_21573750_2 (general_classification VARCHAR, stage VARCHAR)
SELECT AVG(round) FROM table_name_8 WHERE position = "defensive tackle" AND pick__number > 187
Which round was the defensive tackle picked after 187?
CREATE TABLE table_name_8 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT record FROM table_name_11 WHERE game = 34
What is game 34's record?
CREATE TABLE table_name_11 (record VARCHAR, game VARCHAR)
SELECT first_elected FROM table_19753079_8 WHERE district = "California 7"
How many were first elected in California 7?
CREATE TABLE table_19753079_8 (first_elected VARCHAR, district VARCHAR)
SELECT MIN(week) FROM table_name_90 WHERE attendance > 63 OFFSET 369
Which Week has an Attendance larger than 63,369?
CREATE TABLE table_name_90 (week INTEGER, attendance INTEGER)
SELECT branding FROM table_name_80 WHERE owner = "canadian broadcasting corporation" AND frequency = "fm 97.7"
What is the branding of the FM 97.7 station owned by the Canadian Broadcasting Corporation?
CREATE TABLE table_name_80 (branding VARCHAR, owner VARCHAR, frequency VARCHAR)
SELECT rank FROM table_name_75 WHERE games = "2009 hanoi"
What was the rank in the 2009 Hanoi Games?
CREATE TABLE table_name_75 (rank VARCHAR, games VARCHAR)
SELECT player FROM table_name_43 WHERE total = "wd" AND to_par < 16 AND year_s__won = "1967"
If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's the players name?
CREATE TABLE table_name_43 (player VARCHAR, year_s__won VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code
Select all the data from the products and each product's manufacturer.
CREATE TABLE products (manufacturer VARCHAR); CREATE TABLE Manufacturers (code VARCHAR)
SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company"
What is the country of Palmers Shipbuilding and Iron Company?
CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR)
SELECT finalists FROM table_name_34 WHERE surface = "hard" AND winners = "serena williams 6–1, 6–7(7), 6–3"
Who was the Finalist on a Hard Surface with Winner Serena Williams 6–1, 6–7(7), 6–3?
CREATE TABLE table_name_34 (finalists VARCHAR, surface VARCHAR, winners VARCHAR)
SELECT film_name FROM table_10236830_1 WHERE director = "Michaylo Ilyenko" AND nomination = "Best Actor in a Supporting Role"
What film did michaylo ilyenko make with best actor in a supporting role?
CREATE TABLE table_10236830_1 (film_name VARCHAR, director VARCHAR, nomination VARCHAR)
SELECT order_id, COUNT(*) FROM Order_items GROUP BY order_id
Show the order ids and the number of items in each order.
CREATE TABLE Order_items (order_id VARCHAR)
SELECT june_10_11 FROM table_25355392_2 WHERE march_27_29 = "149"
what is june 10-11 when march 27-29 is 149?
CREATE TABLE table_25355392_2 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT club FROM table_name_35 WHERE runners_up = 1 AND last_final_won = "1999"
what is the club when the runners-up is 1 and the last final won is 1999?
CREATE TABLE table_name_35 (club VARCHAR, runners_up VARCHAR, last_final_won VARCHAR)
SELECT MAX(game) FROM table_13619027_9 WHERE date = "March 26"
What's the number of the game played on March 26?
CREATE TABLE table_13619027_9 (game INTEGER, date VARCHAR)
SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = "germany" AND silver < 5
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = "18.3%" AND rank < 11
What is the highest Total Passengers when the annual change is 18.3%, and the rank is less than 11?
CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_16 WHERE rank = "6" AND total < 2
Tell me the lowest gold for rank of 6 and total less than 2
CREATE TABLE table_name_16 (gold INTEGER, rank VARCHAR, total VARCHAR)
SELECT location FROM table_name_38 WHERE team = "dynamo-2"
Where is Dynamo-2 located?
CREATE TABLE table_name_38 (location VARCHAR, team VARCHAR)
SELECT time FROM table_name_75 WHERE notes = "fa" AND rank < 2
What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?
CREATE TABLE table_name_75 (time VARCHAR, notes VARCHAR, rank VARCHAR)
SELECT MAX(games) FROM table_name_41 WHERE points = 32 AND team = "montepaschi siena" AND rank > 4
What is the highest game that has 32 points and a team rank larger than 4 named montepaschi siena
CREATE TABLE table_name_41 (games INTEGER, rank VARCHAR, points VARCHAR, team VARCHAR)
SELECT MAX(pick) FROM table_name_33 WHERE player = "jamar martin"
What is jamar martin's highest pick?
CREATE TABLE table_name_33 (pick INTEGER, player VARCHAR)
SELECT airport FROM table_name_31 WHERE iata = "pen"
Which airport's IATA is pen?
CREATE TABLE table_name_31 (airport VARCHAR, iata VARCHAR)
SELECT year FROM table_name_63 WHERE league = "usisl indoor"
What years did the Nashville Metros have Usisl Indoor League?
CREATE TABLE table_name_63 (year VARCHAR, league VARCHAR)
SELECT COUNT(Neu) - vehlefanz FROM table_11680175_1 WHERE schwante = "2.043"
How many times did Neu-Vehlefanz occur when Schwante had 2.043?
CREATE TABLE table_11680175_1 (vehlefanz VARCHAR, Neu VARCHAR, schwante VARCHAR)
SELECT school FROM table_name_1 WHERE team = "new york yankees"
what is the school when the team is new york yankees?
CREATE TABLE table_name_1 (school VARCHAR, team VARCHAR)
SELECT year_joined FROM table_name_6 WHERE city = "winamac"
What year did the team based in the city of Winamac join the conference?
CREATE TABLE table_name_6 (year_joined VARCHAR, city VARCHAR)
SELECT partner FROM table_name_80 WHERE date = "october 20, 2013"
Who was the partner for the game on October 20, 2013?
CREATE TABLE table_name_80 (partner VARCHAR, date VARCHAR)
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Which location names contain the word "film"?
CREATE TABLE LOCATIONS (Location_Name VARCHAR)
SELECT COUNT(remittances_2010) FROM table_2941963_1 WHERE remittances_2009 = "19.73"
how many remittances in 2010 where the remittances is 19.73?
CREATE TABLE table_2941963_1 (remittances_2010 VARCHAR, remittances_2009 VARCHAR)