question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the 2nd leg of the Comunicaciones team?
CREATE TABLE table_name_78 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_78 WHERE team_1 = "comunicaciones"
Which syndicate is associated with the stars & stripes yacht?
CREATE TABLE table_name_8 (syndicate VARCHAR, yacht VARCHAR)
SELECT syndicate FROM table_name_8 WHERE yacht = "stars & stripes"
Name the number of area km 2 for population density is 87
CREATE TABLE table_1606824_1 (area_km_2 VARCHAR, pop_density_people_km_2 VARCHAR)
SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = "87"
What is them two (the two) when you and i is ngœbalngu?
CREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR)
SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = "ngœbalngu"
What is the qual with a rank 9?
CREATE TABLE table_name_9 (qual VARCHAR, rank VARCHAR)
SELECT qual FROM table_name_9 WHERE rank = "9"
Name the highest In/de-creased which has a Percentage in/de-crease of 100%, and Seats 2010 larger than 8?
CREATE TABLE table_name_34 (in_de_creased_by INTEGER, percentage_in_de_crease VARCHAR, seats_2010 VARCHAR)
SELECT MAX(in_de_creased_by) FROM table_name_34 WHERE percentage_in_de_crease = "100%" AND seats_2010 > 8
Which Case type has a Base diameter of 13.03 (.513), and a Case length of 63.5 (2.5)?
CREATE TABLE table_name_29 (case_type VARCHAR, base_diameter VARCHAR, case_length VARCHAR)
SELECT case_type FROM table_name_29 WHERE base_diameter = "13.03 (.513)" AND case_length = "63.5 (2.5)"
Was the release on April 8 available on Windows?
CREATE TABLE table_1322904_1 (windows VARCHAR, release VARCHAR)
SELECT windows FROM table_1322904_1 WHERE release = "April 8"
How many activities do we have?
CREATE TABLE Activity (Id VARCHAR)
SELECT COUNT(*) FROM Activity
What's the average L/km combines when the L/100km Urban is 13.9, the mpg-UK combined is more than 28.5 and the mpg-UK extra urban is less than 38.7?
CREATE TABLE table_name_81 (l_100km_combined INTEGER, mpg_uk_extra_urban VARCHAR, l_100km_urban__cold_ VARCHAR, mpg_uk_combined VARCHAR)
SELECT AVG(l_100km_combined) FROM table_name_81 WHERE l_100km_urban__cold_ = 13.9 AND mpg_uk_combined > 28.5 AND mpg_uk_extra_urban < 38.7
What is the Speed for Chris Swallow?
CREATE TABLE table_name_13 (speed VARCHAR, rider VARCHAR)
SELECT speed FROM table_name_13 WHERE rider = "chris swallow"
Name the others % for johnson
CREATE TABLE table_1733457_1 (others_percentage VARCHAR, county VARCHAR)
SELECT others_percentage FROM table_1733457_1 WHERE county = "Johnson"
What is the most recent year that the Mineola Twins was nominated for outstanding actress in a play and a Drama Desk award?
CREATE TABLE table_name_54 (year INTEGER, award VARCHAR, nominated_work VARCHAR, category VARCHAR)
SELECT MAX(year) FROM table_name_54 WHERE nominated_work = "the mineola twins" AND category = "outstanding actress in a play" AND award = "drama desk award"
What is the entered number for the person with a time of 29:28?
CREATE TABLE table_name_74 (entered VARCHAR, time VARCHAR)
SELECT entered FROM table_name_74 WHERE time = "29:28"
How many positions does the draft pick whose nationality is Czech Republic play?
CREATE TABLE table_2840500_1 (position VARCHAR, nationality VARCHAR)
SELECT COUNT(position) FROM table_2840500_1 WHERE nationality = "Czech Republic"
What is the airdate when the story is listed as hugh leonard?
CREATE TABLE table_15739098_2 (airdate VARCHAR, story VARCHAR)
SELECT airdate FROM table_15739098_2 WHERE story = "Hugh Leonard"
Which episodein season 3 had 175020 for a production code?
CREATE TABLE table_2602958_4 (_number VARCHAR, prod_code VARCHAR)
SELECT _number FROM table_2602958_4 WHERE prod_code = 175020
What percentage of browsers were using Internet Explorer during the period in which 27.85% were using Firefox?
CREATE TABLE table_name_39 (internet_explorer VARCHAR, firefox VARCHAR)
SELECT internet_explorer FROM table_name_39 WHERE firefox = "27.85%"
What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?
CREATE TABLE table_name_32 (tie_no VARCHAR, date VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_32 WHERE date = "18 nov 1989" AND home_team = "doncaster rovers"
What game did they lose by 6 - 5?
CREATE TABLE table_name_67 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_67 WHERE score = "6 - 5"
How many total No Results occured when the team had less than 46 wins and more than 16 matches?
CREATE TABLE table_name_63 (no_result INTEGER, matches VARCHAR, wins VARCHAR)
SELECT SUM(no_result) FROM table_name_63 WHERE matches > 16 AND wins < 46
Who directed episode no. 44 in the series?
CREATE TABLE table_234886_3 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT directed_by FROM table_234886_3 WHERE no_in_series = 44
What was the second leg score from the group stage on matchday 5?
CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)
SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5"
When has a Week of 9?
CREATE TABLE table_name_60 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_60 WHERE week = 9
What is Try Bonus, when Losing Bonus is "1", and when Points For is "179"?
CREATE TABLE table_name_51 (try_bonus VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
SELECT try_bonus FROM table_name_51 WHERE losing_bonus = "1" AND points_for = "179"
What is the administrative capital that has a 2006 census population of 249425?
CREATE TABLE table_1966992_1 (administrative_capital VARCHAR, census_2006_population VARCHAR)
SELECT administrative_capital FROM table_1966992_1 WHERE census_2006_population = 249425
Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?
CREATE TABLE table_1341663_26 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%"
What is the average long that Ramon Richardson played and an average greater than 5.5?
CREATE TABLE table_name_18 (long INTEGER, player VARCHAR, avg VARCHAR)
SELECT AVG(long) FROM table_name_18 WHERE player = "ramon richardson" AND avg > 5.5
What is the name of the competition with opponents of Sv Werder Bremen and a score of 1-2?
CREATE TABLE table_name_37 (competition VARCHAR, opponents VARCHAR, score VARCHAR)
SELECT competition FROM table_name_37 WHERE opponents = "sv werder bremen" AND score = "1-2"
How many students have a food allergy?
CREATE TABLE Has_allergy (allergy VARCHAR); CREATE TABLE Allergy_type (allergy VARCHAR, allergytype VARCHAR)
SELECT COUNT(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy = T2.allergy WHERE T2.allergytype = "food"
What was Australia's score when Peter Lonard played?
CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard"
What is the wins average when 17 games were lost?
CREATE TABLE table_name_83 (wins INTEGER, losses VARCHAR)
SELECT AVG(wins) FROM table_name_83 WHERE losses = 17
what was the score on november 3?
CREATE TABLE table_name_39 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_39 WHERE date = "november 3"
How many points for maserati v12 engines in 1968?
CREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v12" AND year = 1968
What is the names of movies whose created year is after all movies directed by Steven Spielberg?
CREATE TABLE Movie (title VARCHAR, YEAR INTEGER, director VARCHAR)
SELECT title FROM Movie WHERE YEAR > (SELECT MAX(YEAR) FROM Movie WHERE director = "Steven Spielberg")
What was South Melbourne's score as the home team?
CREATE TABLE table_name_45 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_45 WHERE home_team = "south melbourne"
In the Tournament during which Jiří Novák was absent(A) in 2004, how did he do in 2003?
CREATE TABLE table_name_49 (Id VARCHAR)
SELECT 2003 FROM table_name_49 WHERE 2004 = "a"
What is the Date that has a Round of semifinal?
CREATE TABLE table_name_46 (date VARCHAR, round VARCHAR)
SELECT date FROM table_name_46 WHERE round = "semifinal"
What was the attendance of the North Melbourne's home game?
CREATE TABLE table_name_6 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_6 WHERE home_team = "north melbourne"
What is the score for set 2 when the time is 18:00 and the score of set 1 is 18–25?
CREATE TABLE table_name_48 (set_2 VARCHAR, time VARCHAR, set_1 VARCHAR)
SELECT set_2 FROM table_name_48 WHERE time = "18:00" AND set_1 = "18–25"
who is the the club (city/town) with goals for/against being 14-2
CREATE TABLE table_14181578_1 (club__city_town_ VARCHAR, goals_for_against VARCHAR)
SELECT club__city_town_ FROM table_14181578_1 WHERE goals_for_against = "14-2"
How many different industries are the companies in?
CREATE TABLE Companies (Industry VARCHAR)
SELECT COUNT(DISTINCT Industry) FROM Companies
Which team has the points category of test driver?
CREATE TABLE table_name_74 (team VARCHAR, points VARCHAR)
SELECT team FROM table_name_74 WHERE points = "test driver"
What is the lowest fiscal year if total vehicles is 490?
CREATE TABLE table_19255192_1 (fiscal_year INTEGER, total_vehicles VARCHAR)
SELECT MIN(fiscal_year) FROM table_19255192_1 WHERE total_vehicles = 490
Name the AEDT Time which has an Away team of collingwood?
CREATE TABLE table_name_62 (aedt_time VARCHAR, away_team VARCHAR)
SELECT aedt_time FROM table_name_62 WHERE away_team = "collingwood"
What was the Score for T9 United States Player Kirk Triplett?
CREATE TABLE table_name_14 (score VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
SELECT score FROM table_name_14 WHERE place = "t9" AND country = "united states" AND player = "kirk triplett"
Show different nationalities along with the number of hosts of each nationality.
CREATE TABLE HOST (Nationality VARCHAR)
SELECT Nationality, COUNT(*) FROM HOST GROUP BY Nationality
What is the total number of round values that had opponents named Paul Sutherland?
CREATE TABLE table_name_93 (round VARCHAR, opponent VARCHAR)
SELECT COUNT(round) FROM table_name_93 WHERE opponent = "paul sutherland"
Can one access the Jersey territory using a Croatian identity card?
CREATE TABLE table_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Jersey"
What title was used in the nomination of Una Giornata Particolare?
CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare"
What is the lowest term from the 2007 election with the position of chairperson?
CREATE TABLE table_name_94 (term INTEGER, elected VARCHAR, position VARCHAR)
SELECT MIN(term) FROM table_name_94 WHERE elected = 2007 AND position = "chairperson"
Which prod code was series 11?
CREATE TABLE table_25996938_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT production_code FROM table_25996938_1 WHERE no_in_series = 11
How many Gold for the Nation in Rank 15 with 0 Silver?
CREATE TABLE table_name_34 (gold INTEGER, rank VARCHAR, silver VARCHAR)
SELECT MAX(gold) FROM table_name_34 WHERE rank = "15" AND silver > 0
Which Attendance has Mandalay Bay Resort
CREATE TABLE table_name_75 (attendance VARCHAR, venue VARCHAR)
SELECT attendance FROM table_name_75 WHERE venue = "mandalay bay resort"
Who won the race on June 26?
CREATE TABLE table_28925058_1 (race_winner VARCHAR, date VARCHAR)
SELECT race_winner FROM table_28925058_1 WHERE date = "June 26"
What is Candidate Name, when Target/Approach is "vaccine to amyloid-beta"?
CREATE TABLE table_name_58 (candidate_name VARCHAR, target_approach VARCHAR)
SELECT candidate_name FROM table_name_58 WHERE target_approach = "vaccine to amyloid-beta"
If the position in table is 10th, and the manner of departure was resigned, what was the date of vacancy?
CREATE TABLE table_27133147_3 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
SELECT date_of_vacancy FROM table_27133147_3 WHERE manner_of_departure = "Resigned" AND position_in_table = "10th"
What is the Hanyu Pinyin with an area of 400?
CREATE TABLE table_name_94 (hanyu_pinyin VARCHAR, area__km²_ VARCHAR)
SELECT hanyu_pinyin FROM table_name_94 WHERE area__km²_ = "400"
What is the sum of Year, when Result is 9th?
CREATE TABLE table_name_10 (year INTEGER, result VARCHAR)
SELECT SUM(year) FROM table_name_10 WHERE result = "9th"
Who is the player from the United States with a score of 71-75=146?
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT player FROM table_name_24 WHERE country = "united states" AND score = 71 - 75 = 146
What is richard virenque's lowest rank?
CREATE TABLE table_name_33 (rank INTEGER, name VARCHAR)
SELECT MIN(rank) FROM table_name_33 WHERE name = "richard virenque"
Which county is named broderick wood products?
CREATE TABLE table_name_7 (county VARCHAR, name VARCHAR)
SELECT county FROM table_name_7 WHERE name = "broderick wood products"
What is the 2006 population of the area with vehicle registration code of G and population density of 1,432.0?
CREATE TABLE table_name_7 (population__2006_ VARCHAR, vehicle_registration_code VARCHAR, population_density VARCHAR)
SELECT population__2006_ FROM table_name_7 WHERE vehicle_registration_code = "g" AND population_density = "1,432.0"
What is listed in hight points when the high rebounds is listed as Nick Collison (10)?
CREATE TABLE table_28768469_7 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT high_points FROM table_28768469_7 WHERE high_rebounds = "Nick Collison (10)"
What's the total number built with a chassis code of w108.057?
CREATE TABLE table_name_45 (number_built VARCHAR, chassis_code VARCHAR)
SELECT COUNT(number_built) FROM table_name_45 WHERE chassis_code = "w108.057"
On what date was the game 1 played at Portland?
CREATE TABLE table_name_73 (date VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_73 WHERE home_team = "portland" AND game = "game 1"
Find all the customer information in state NY.
CREATE TABLE CUSTOMER (State VARCHAR)
SELECT * FROM CUSTOMER WHERE State = "NY"
What home team has 10 as the tie no?
CREATE TABLE table_name_14 (home_team VARCHAR, tie_no VARCHAR)
SELECT home_team FROM table_name_14 WHERE tie_no = "10"
If the arrival date is January 2059, what is the total amount of signal power?
CREATE TABLE table_1820752_1 (signal_power___kw__ VARCHAR, arrival_date VARCHAR)
SELECT COUNT(signal_power___kw__) FROM table_1820752_1 WHERE arrival_date = "January 2059"
Name the total number of founded for yankton
CREATE TABLE table_2076557_2 (founded VARCHAR, location_s_ VARCHAR)
SELECT COUNT(founded) FROM table_2076557_2 WHERE location_s_ = "Yankton"
What is the largest payment amount?
CREATE TABLE payment (amount VARCHAR)
SELECT amount FROM payment ORDER BY amount DESC LIMIT 1
What year was the building completed that has 10 floors?
CREATE TABLE table_name_82 (year_completed INTEGER, floors VARCHAR)
SELECT AVG(year_completed) FROM table_name_82 WHERE floors = 10
How many silver medals were won by the participant(s) that had more than 12 gold medals and 11 bronze medals?
CREATE TABLE table_name_54 (silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT silver FROM table_name_54 WHERE gold > 12 AND bronze = 11
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1
Name the guest 4 for steve lamacq
CREATE TABLE table_20466963_13 (guest_4 VARCHAR, guest_2 VARCHAR)
SELECT guest_4 FROM table_20466963_13 WHERE guest_2 = "Steve Lamacq"
What was the weight of Serhiy Alfyorov?
CREATE TABLE table_name_50 (weight VARCHAR, name VARCHAR)
SELECT weight FROM table_name_50 WHERE name = "serhiy alfyorov"
Name the try bonus and tries for 30
CREATE TABLE table_15467476_2 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT try_bonus FROM table_15467476_2 WHERE tries_for = "30"
What is the Attendance with a Week that is 18?
CREATE TABLE table_name_19 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_19 WHERE week = 18
What is the highest track number?
CREATE TABLE table_10848177_1 (track__number INTEGER)
SELECT MAX(track__number) FROM table_10848177_1
If puma is 12, what is camper?
CREATE TABLE table_26894949_2 (camper INTEGER, puma VARCHAR)
SELECT MIN(camper) FROM table_26894949_2 WHERE puma = "12"
What dates had matches at the venue Sabina Park?
CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_50 WHERE venue = "sabina park"
How many weeks are there that include the date October 11, 1969.
CREATE TABLE table_10646790_2 (week VARCHAR, date VARCHAR)
SELECT COUNT(week) FROM table_10646790_2 WHERE date = "October 11, 1969"
What is the home team score that played away team carlton?
CREATE TABLE table_name_60 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_60 WHERE away_team = "carlton"
What is the director name is the U.S. viewers is 2.22 million?
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.22"
How long was the great manchester run?
CREATE TABLE table_26166836_1 (distance VARCHAR, road_race VARCHAR)
SELECT distance FROM table_26166836_1 WHERE road_race = "Great Manchester Run"
What venue did Richmond play at as the home team?
CREATE TABLE table_name_56 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_56 WHERE home_team = "richmond"
Who had the challenge of night driving?
CREATE TABLE table_10749367_3 (test_taker VARCHAR, challenge VARCHAR)
SELECT test_taker FROM table_10749367_3 WHERE challenge = "Night Driving"
What is the 2009 value with q1 in 2010?
CREATE TABLE table_name_60 (Id VARCHAR)
SELECT 2009 FROM table_name_60 WHERE 2010 = "q1"
How many Pole Positions were there on 30 March?
CREATE TABLE table_25213146_2 (pole_position VARCHAR, date VARCHAR)
SELECT COUNT(pole_position) FROM table_25213146_2 WHERE date = "30 March"
Name the location attendance for l 83–106 (ot)
CREATE TABLE table_22879323_9 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_22879323_9 WHERE score = "L 83–106 (OT)"
Name the number of surfaces for 4-6, 2-6
CREATE TABLE table_23944006_4 (surface VARCHAR, score VARCHAR)
SELECT COUNT(surface) FROM table_23944006_4 WHERE score = "4-6, 2-6"
Which T.C. has a Year larger than 2007, and a D.C. of 21st?
CREATE TABLE table_name_26 (tc VARCHAR, year VARCHAR, dc VARCHAR)
SELECT tc FROM table_name_26 WHERE year > 2007 AND dc = "21st"
What's the downstream rate for the Itu g.992.2 having a version of ADSL?
CREATE TABLE table_name_2 (downstream_rate VARCHAR, version VARCHAR, standard_name VARCHAR)
SELECT downstream_rate FROM table_name_2 WHERE version = "adsl" AND standard_name = "itu g.992.2"
What's the attendance for the game held on January 2, 2005?
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_28 WHERE date = "january 2, 2005"
How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26?
CREATE TABLE table_name_21 (draw VARCHAR, goal_diff VARCHAR, loss VARCHAR, point VARCHAR)
SELECT COUNT(draw) FROM table_name_21 WHERE loss < 8 AND point > 30 AND goal_diff > 26
On what date was there a record of 76-72?
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_6 WHERE record = "76-72"
For the Persian Title میم مثل مادر, what were the results?
CREATE TABLE table_19625976_1 (result VARCHAR, persian_title VARCHAR)
SELECT result FROM table_19625976_1 WHERE persian_title = "میم مثل مادر"
Which fuel system has a displacement of 1500cc for the Berlina model?
CREATE TABLE table_name_71 (fuel_system VARCHAR, displacement VARCHAR, model VARCHAR)
SELECT fuel_system FROM table_name_71 WHERE displacement = "1500cc" AND model = "berlina"
In what parish is the Askrova Bedehuskapell church?
CREATE TABLE table_178381_1 (parish__prestegjeld_ VARCHAR, church_name VARCHAR)
SELECT parish__prestegjeld_ FROM table_178381_1 WHERE church_name = "Askrova bedehuskapell"
What is the number of losses when the ties are lesser than 0?
CREATE TABLE table_name_59 (losses VARCHAR, ties INTEGER)
SELECT COUNT(losses) FROM table_name_59 WHERE ties < 0