question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Tell me the total number of events for tournament of masters tournament and top 25 less than 6
CREATE TABLE table_name_32 (events VARCHAR, tournament VARCHAR, top_25 VARCHAR)
SELECT COUNT(events) FROM table_name_32 WHERE tournament = "masters tournament" AND top_25 < 6
Name the capacity for the torque of n·m (lb·ft) @4150
CREATE TABLE table_name_90 (capacity VARCHAR, torque__nm__rpm VARCHAR)
SELECT capacity FROM table_name_90 WHERE torque__nm__rpm = "n·m (lb·ft) @4150"
tell me the director of the production code ad1d02.
CREATE TABLE table_name_32 (directed_by VARCHAR, production_code VARCHAR)
SELECT directed_by FROM table_name_32 WHERE production_code = "ad1d02"
What is the lowest silver that has 2 as the bronze, with a total greater than 4?
CREATE TABLE table_name_33 (silver INTEGER, bronze VARCHAR, total VARCHAR)
SELECT MIN(silver) FROM table_name_33 WHERE bronze = 2 AND total > 4
In what prefecture is Daito located?
CREATE TABLE table_2518850_4 (prefecture VARCHAR, city_town VARCHAR)
SELECT prefecture FROM table_2518850_4 WHERE city_town = "Daito"
What was the Home team when Farnborough Town was the Away team?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "farnborough town"
Who are all the womens doubles for the year 2008/2009?
CREATE TABLE table_14903841_1 (womens_doubles VARCHAR, year VARCHAR)
SELECT womens_doubles FROM table_14903841_1 WHERE year = "2008/2009"
How many titles were written by Don Shank and Genndy Tartakovsky?
CREATE TABLE table_2156758_4 (title VARCHAR, written_by VARCHAR)
SELECT COUNT(title) FROM table_2156758_4 WHERE written_by = "Don Shank and Genndy Tartakovsky"
What is the entry name of the most expensive catalog (in USD)?
CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, price_in_dollars VARCHAR)
SELECT catalog_entry_name FROM catalog_contents ORDER BY price_in_dollars DESC LIMIT 1
What ran has noel patterson as the rider?
CREATE TABLE table_name_40 (rank VARCHAR, rider VARCHAR)
SELECT rank FROM table_name_40 WHERE rider = "noel patterson"
Post University has what nickname?
CREATE TABLE table_name_4 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_name_4 WHERE institution = "post university"
What was the career SR with a value of A in 1980 and F in 1997?
CREATE TABLE table_name_47 (career_sr VARCHAR)
SELECT career_sr FROM table_name_47 WHERE 1989 = "a" AND 1997 = "f"
What were the number of deputies for the 1964 election year?
CREATE TABLE table_name_44 (number_of_deputies VARCHAR, election_date VARCHAR)
SELECT number_of_deputies FROM table_name_44 WHERE election_date = 1964
On what surface was the match played with a score of 4–6, 6–3, 6–1?
CREATE TABLE table_name_82 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_82 WHERE score = "4–6, 6–3, 6–1"
What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?
CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR)
SELECT minister FROM table_name_97 WHERE portfolio = "minister of pubblic administration" AND took_office = "14 november 2002"
Which Emission (in nanometers) has an absorbtion of 593 nm?
CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR)
SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593"
How many tree species are there when the total plant species is 113?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)
SELECT COUNT(tree_species) FROM table_16577990_1 WHERE total_plant_species = 113
What is the week 12 opponent for the year that had a week 3 opponent of South Florida (3-0)?
CREATE TABLE table_name_6 (week_12_nov_16 VARCHAR, week_3_sept_14 VARCHAR)
SELECT week_12_nov_16 FROM table_name_6 WHERE week_3_sept_14 = "south florida (3-0)"
What is the name of the activity with the most students?
CREATE TABLE Participates_in (actID VARCHAR); CREATE TABLE Activity (activity_name VARCHAR, actID VARCHAR)
SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID = T2.actID GROUP BY T1.actID ORDER BY COUNT(*) DESC LIMIT 1
Name the school/club team when season is 2009-2011
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, season VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE season = "2009-2011"
Name the dar for telenord
CREATE TABLE table_15887683_17 (dar VARCHAR, television_service VARCHAR)
SELECT dar FROM table_15887683_17 WHERE television_service = "Telenord"
Name the least total apps for jaime
CREATE TABLE table_22538587_3 (total_apps INTEGER, player VARCHAR)
SELECT MIN(total_apps) FROM table_22538587_3 WHERE player = "Jaime"
What nationality is Erin Donohue?
CREATE TABLE table_name_12 (nationality VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_12 WHERE name = "erin donohue"
What number episode in the season was directed by Paul Adelstein?
CREATE TABLE table_27374740_1 (no_in_season INTEGER, directed_by VARCHAR)
SELECT MAX(no_in_season) FROM table_27374740_1 WHERE directed_by = "Paul Adelstein"
What was the Best Feature Film at the Macabro Film Festival?
CREATE TABLE table_name_24 (result VARCHAR, award VARCHAR, organization VARCHAR)
SELECT result FROM table_name_24 WHERE award = "best feature film" AND organization = "macabro film festival"
What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?
CREATE TABLE table_name_98 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT partner FROM table_name_98 WHERE opponents_in_the_final = "remi tezuka shuko aoyama"
What is the expected speed up of the gpu-hmmer application?
CREATE TABLE table_name_47 (expected_speed_up† VARCHAR, application VARCHAR)
SELECT expected_speed_up† FROM table_name_47 WHERE application = "gpu-hmmer"
What is the rural population percentage in 1979?
CREATE TABLE table_16645_1 (__percentage VARCHAR, rural INTEGER, year__january_ VARCHAR)
SELECT MIN(rural), __percentage FROM table_16645_1 WHERE year__january_ = 1979
What's the Representative listed that has a Presentation of Credentials of August 25, 1851?
CREATE TABLE table_name_80 (representative VARCHAR, presentation_of_credentials VARCHAR)
SELECT representative FROM table_name_80 WHERE presentation_of_credentials = "august 25, 1851"
Which E. Greenberg has a T. Wyka of 10,793 (70%)?
CREATE TABLE table_name_34 (e_greenberg VARCHAR, t_wyka VARCHAR)
SELECT e_greenberg FROM table_name_34 WHERE t_wyka = "10,793 (70%)"
How many people had the high assists @ minnesota?
CREATE TABLE table_13619135_7 (high_assists VARCHAR, team VARCHAR)
SELECT COUNT(high_assists) FROM table_13619135_7 WHERE team = "@ Minnesota"
What is the total number of runners-up for a club with winning years of 2010?
CREATE TABLE table_name_92 (runners_up VARCHAR, winning_years VARCHAR)
SELECT COUNT(runners_up) FROM table_name_92 WHERE winning_years = "2010"
On what date was the Blue Jays record 60-56?
CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_25 WHERE record = "60-56"
what is the name of the processor for model x33x0?
CREATE TABLE table_24101118_1 (processor VARCHAR, model__list_ VARCHAR)
SELECT processor FROM table_24101118_1 WHERE model__list_ = "X33x0"
What is the Country of the Player with a Score of 70-72-70-73=285 and Money ( $ ) of 5,500?
CREATE TABLE table_name_10 (country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT country FROM table_name_10 WHERE money___$__ = "5,500" AND score = 70 - 72 - 70 - 73 = 285
What is the playoffs Game number on April 26?
CREATE TABLE table_name_94 (game VARCHAR, date VARCHAR)
SELECT game FROM table_name_94 WHERE date = "april 26"
For the teams that had more than 2 Byes, what was the highest number of Wins?
CREATE TABLE table_name_14 (wins INTEGER, byes INTEGER)
SELECT MAX(wins) FROM table_name_14 WHERE byes > 2
Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?
CREATE TABLE table_name_56 (drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)
SELECT AVG(drawn) FROM table_name_56 WHERE points < 14 AND lost < 4 AND played > 9
which electorate is 54787 of the constituency
CREATE TABLE table_15082102_3 (constituency VARCHAR, electorate VARCHAR)
SELECT constituency FROM table_15082102_3 WHERE electorate = 54787
what is the position of the player of height ft0in (m)
CREATE TABLE table_20898602_1 (position VARCHAR, height VARCHAR)
SELECT position FROM table_20898602_1 WHERE height = "ft0in (m)"
Which 1st leg has a Team 1 of drita?
CREATE TABLE table_name_3 (team_1 VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "drita"
When was Arsenal was the away team?
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_17 WHERE away_team = "arsenal"
Name the laid down for launched being 16 february 1934
CREATE TABLE table_name_39 (laid_down VARCHAR, launched VARCHAR)
SELECT laid_down FROM table_name_39 WHERE launched = "16 february 1934"
Name the type that joined 2007
CREATE TABLE table_262560_1 (type VARCHAR, joined VARCHAR)
SELECT type FROM table_262560_1 WHERE joined = 2007
Team of corinthians, and a Lost larger than 15 has which highest drawn?
CREATE TABLE table_name_80 (drawn INTEGER, team VARCHAR, lost VARCHAR)
SELECT MAX(drawn) FROM table_name_80 WHERE team = "corinthians" AND lost > 15
Show all locations where a gas station for company with market value greater than 100 is located.
CREATE TABLE gas_station (location VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, market_value INTEGER); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR)
SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100
In 2009 with 100* runs, what is the match?
CREATE TABLE table_name_8 (match VARCHAR, year VARCHAR, runs VARCHAR)
SELECT match FROM table_name_8 WHERE year = "2009" AND runs = "100*"
What finales took place in the Tuesday 9:30 p.m. timeslot?
CREATE TABLE table_175980_2 (finale VARCHAR, timeslot VARCHAR)
SELECT finale FROM table_175980_2 WHERE timeslot = "Tuesday 9:30 p.m."
The 2nd leg is what for the Atlético Madrid as Team 1?
CREATE TABLE table_name_68 (team_1 VARCHAR)
SELECT 2 AS nd_leg FROM table_name_68 WHERE team_1 = "atlético madrid"
Which Calendar has WYSIWYG Editor of yes and an Unread message tracking of yes?
CREATE TABLE table_name_56 (calendar VARCHAR, wysiwyg_editor VARCHAR, unread_message_tracking VARCHAR)
SELECT calendar FROM table_name_56 WHERE wysiwyg_editor = "yes" AND unread_message_tracking = "yes"
What city is the school that had less than 17 titles in boys basketball with the last title being after 2005?
CREATE TABLE table_name_86 (city VARCHAR, sport VARCHAR, _number_of_titles VARCHAR, last VARCHAR)
SELECT city FROM table_name_86 WHERE _number_of_titles < 17 AND last > 2005 AND sport = "boys basketball"
What is the constructor for Jackie Stewart's car?
CREATE TABLE table_name_3 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_3 WHERE driver = "jackie stewart"
How many Silver medals did the Nation ranking 8 with more than 1 Total medal but less than 1 Gold receive?
CREATE TABLE table_name_21 (silver INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT SUM(silver) FROM table_name_21 WHERE gold < 1 AND rank = "8" AND total > 1
What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?
CREATE TABLE table_name_64 (season INTEGER, venue VARCHAR, drivers VARCHAR)
SELECT AVG(season) FROM table_name_64 WHERE venue = "circuit de nevers magny-cours" AND drivers > 30
What was the loss of the game when the record was 46-84?
CREATE TABLE table_name_65 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_65 WHERE record = "46-84"
Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?
CREATE TABLE table_name_90 (fa_cup_apps VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT fa_cup_apps FROM table_name_90 WHERE total_goals > 6 AND fa_cup_goals < 1
List the names of players in ascending order of votes.
CREATE TABLE player (Player_name VARCHAR, Votes VARCHAR)
SELECT Player_name FROM player ORDER BY Votes
how many countries have remittances in 2008 of 9.07?
CREATE TABLE table_2941963_1 (country VARCHAR, remittances_2008 VARCHAR)
SELECT COUNT(country) FROM table_2941963_1 WHERE remittances_2008 = "9.07"
On what date was a record from Village Records with catalog VRCL-2205 released?
CREATE TABLE table_name_5 (date VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_5 WHERE label = "village records" AND catalog = "vrcl-2205"
What is the name of the stadium when the visiting team is the Denver Broncos?
CREATE TABLE table_name_6 (stadium VARCHAR, visiting_team VARCHAR)
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos"
What is the census ranking of the location with population of 959?
CREATE TABLE table_176529_2 (census_ranking VARCHAR, population VARCHAR)
SELECT census_ranking FROM table_176529_2 WHERE population = 959
Where has an IATA of BVA?
CREATE TABLE table_name_69 (city VARCHAR, iata VARCHAR)
SELECT city FROM table_name_69 WHERE iata = "bva"
How many numbers were recorded for Chester when the religion was Hindu?
CREATE TABLE table_16974228_1 (chester VARCHAR, religion VARCHAR)
SELECT COUNT(chester) FROM table_16974228_1 WHERE religion = "Hindu"
When was the first year when Fowler joined?
CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR)
SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler"
What is the maximum total medals when the rank is 8?
CREATE TABLE table_name_64 (total INTEGER, rank VARCHAR)
SELECT MAX(total) FROM table_name_64 WHERE rank = "8"
List the total points of gymnasts in descending order.
CREATE TABLE gymnast (Total_Points VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
Birth Date of 8 November 1980, and a Weight smaller than 93 has what sum of a shirt number?
CREATE TABLE table_name_6 (shirt_no INTEGER, birth_date VARCHAR, weight VARCHAR)
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93
What is the highest Number of seasons in Liga MX for Club cruz azul?
CREATE TABLE table_name_27 (number_of_seasons_in_liga_mx INTEGER, club VARCHAR)
SELECT MAX(number_of_seasons_in_liga_mx) FROM table_name_27 WHERE club = "cruz azul"
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?
CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula"
What did the away team score at Kardinia Park?
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE venue = "kardinia park"
What is the result of the London 2012 Women's Olympic Football Tournament?
CREATE TABLE table_name_13 (result VARCHAR, location VARCHAR)
SELECT result FROM table_name_13 WHERE location = "london 2012 women's olympic football tournament"
How many premio are there when "Artist of the Year" was the categoria?
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)
SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"
Which Venue has a Country of england, and a Champion of alison nicholas?
CREATE TABLE table_name_66 (venue VARCHAR, country VARCHAR, champion VARCHAR)
SELECT venue FROM table_name_66 WHERE country = "england" AND champion = "alison nicholas"
When the home team was fitzroy, what did the away team score?
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy"
what is the least laps when the grid is 5?
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR)
SELECT MIN(laps) FROM table_name_94 WHERE grid = 5
What is the RAvg when the ratt is 3?
CREATE TABLE table_name_93 (ravg VARCHAR, ratt VARCHAR)
SELECT ravg FROM table_name_93 WHERE ratt = "3"
Who was Class AA in School Year 1994-95?
CREATE TABLE table_name_26 (class_aA VARCHAR, school_year VARCHAR)
SELECT class_aA FROM table_name_26 WHERE school_year = "1994-95"
What is the earliest election with 2 seats and the outcome of the election of minority in parliament?
CREATE TABLE table_name_67 (election INTEGER, outcome_of_election VARCHAR, seats VARCHAR)
SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = "minority in parliament" AND seats = "2"
Find the name of the students and their department names sorted by their total credits in ascending order.
CREATE TABLE student (name VARCHAR, dept_name VARCHAR, tot_cred VARCHAR)
SELECT name, dept_name FROM student ORDER BY tot_cred
What are the names of players from the dr congo?
CREATE TABLE table_29743928_3 (name VARCHAR, country VARCHAR)
SELECT name FROM table_29743928_3 WHERE country = "DR Congo"
Which Player has a School/Club Team of Illinois?
CREATE TABLE table_name_5 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_5 WHERE school_club_team = "illinois"
What date had a game with a score of 5-4?
CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_63 WHERE score = "5-4"
What is the largest drawn that has a played less than 38?
CREATE TABLE table_name_8 (drawn INTEGER, played INTEGER)
SELECT MAX(drawn) FROM table_name_8 WHERE played < 38
Who is the driver from 1969?
CREATE TABLE table_name_42 (driver VARCHAR, year VARCHAR)
SELECT driver FROM table_name_42 WHERE year = "1969"
What is every TV network with a weekly schedule of Monday to Thursday @ 11:00 pm?
CREATE TABLE table_18821196_1 (tv_network_s_ VARCHAR, weekly_schedule VARCHAR)
SELECT tv_network_s_ FROM table_18821196_1 WHERE weekly_schedule = "Monday to Thursday @ 11:00 pm"
Who were the runners-up in the game that was won by Cork City F.C. on 10/05/1998?
CREATE TABLE table_name_48 (runners_up VARCHAR, winners VARCHAR, date VARCHAR)
SELECT runners_up FROM table_name_48 WHERE winners = "cork city f.c." AND date = "10/05/1998"
What aorist has bude in present tense?
CREATE TABLE table_27298240_26 (aorist VARCHAR, present VARCHAR)
SELECT aorist FROM table_27298240_26 WHERE present = "bude"
What was the name of the catalog released on 19 July 2008?
CREATE TABLE table_name_55 (catalog VARCHAR, date VARCHAR)
SELECT catalog FROM table_name_55 WHERE date = "19 july 2008"
Who had a transfer fee of released and played the position of DF?
CREATE TABLE table_name_30 (player VARCHAR, transfer_fee VARCHAR, pos VARCHAR)
SELECT player FROM table_name_30 WHERE transfer_fee = "released" AND pos = "df"
What is the Time of the Rowers from Belgium?
CREATE TABLE table_name_36 (time VARCHAR, country VARCHAR)
SELECT time FROM table_name_36 WHERE country = "belgium"
what is the date when the round is qf?
CREATE TABLE table_name_80 (date VARCHAR, round VARCHAR)
SELECT date FROM table_name_80 WHERE round = "qf"
Which club gave up 714 points?
CREATE TABLE table_12792876_2 (club VARCHAR, points_against VARCHAR)
SELECT club FROM table_12792876_2 WHERE points_against = "714"
WHich Color commentatorhas a Studio host of gary tanguay & eric frede?
CREATE TABLE table_name_3 (color_commentator_s_ VARCHAR, studio_host VARCHAR)
SELECT color_commentator_s_ FROM table_name_3 WHERE studio_host = "gary tanguay & eric frede"
Which 3 players won the most player awards? List their full name and id.
CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE player_award (player_id VARCHAR)
SELECT T1.name_first, T1.name_last, T1.player_id FROM player AS T1 JOIN player_award AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 3
return the smallest salary for every departments.
CREATE TABLE employees (department_id VARCHAR, salary INTEGER)
SELECT MIN(salary), department_id FROM employees GROUP BY department_id
What team has a 94.1 rating?
CREATE TABLE table_name_67 (team VARCHAR, rate VARCHAR)
SELECT team FROM table_name_67 WHERE rate = "94.1"
The Significant Relationship of Parents belongs with what Virtue?
CREATE TABLE table_name_84 (virtues VARCHAR, significant_relationship VARCHAR)
SELECT virtues FROM table_name_84 WHERE significant_relationship = "parents"
Name the highest Against on 21 november 1978?
CREATE TABLE table_name_30 (against INTEGER, date VARCHAR)
SELECT MAX(against) FROM table_name_30 WHERE date = "21 november 1978"
Which Wins has a Draws smaller than 3, and Points of 26?
CREATE TABLE table_name_79 (wins INTEGER, draws VARCHAR, points VARCHAR)
SELECT AVG(wins) FROM table_name_79 WHERE draws < 3 AND points = 26
What are the average prices of wines for different years?
CREATE TABLE WINE (YEAR VARCHAR, Price INTEGER)
SELECT AVG(Price), YEAR FROM WINE GROUP BY YEAR