instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?
SELECT MIN McCain# FROM table WHERE Obama% = 35.7% AND Others% = 1.9%
Translate the following into a SQL query
How many votes did Obama get in Geauga?
SELECT Obama# FROM table WHERE County = Geauga
Translate the following into a SQL query
How many people voted for others in the county where McCain got 65.5% of the votes?
SELECT Others FROM table WHERE McCain% = 65.5%
Translate the following into a SQL query
How many players had 6 180s?
SELECT COUNT Player FROM table WHERE 180s = 6
Translate the following into a SQL query
How many 140+ did Gary Anderson have?
SELECT 140+ FROM table WHERE Player = Gary Anderson
Translate the following into a SQL query
What is Phil Taylor's 3-dart average?
SELECT 3-dart Average FROM table WHERE Player = Phil Taylor
Translate the following into a SQL query
Who is the guest 3 in the show where guest 4 is Jill Douglas?
SELECT Guest 3 FROM table WHERE Guest 4 = Jill Douglas
Translate the following into a SQL query
Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?
SELECT Guest 2 FROM table WHERE Guest 4 = Iyare Igiehon AND Guest 3 = John Oliver
Translate the following into a SQL query
Who is the guest 1 in the episode where guest 4 is Jill Douglas?
SELECT Guest 1 FROM table WHERE Guest 4 = Jill Douglas
Translate the following into a SQL query
How many dates are associated with a guest 4 being Jim Jeffries (debut)?
SELECT COUNT Date FROM table WHERE Guest 4 = Jim Jeffries (debut)
Translate the following into a SQL query
What is the date of the episode in which the presenter is Johnny Vaughan?
SELECT Date FROM table WHERE Presenter = Johnny Vaughan
Translate the following into a SQL query
Name the guest 4 for 8 december
SELECT Guest 4 FROM table WHERE Date = 8 December
Translate the following into a SQL query
Name the guest 4 for steve lamacq
SELECT Guest 4 FROM table WHERE Guest 2 = Steve Lamacq
Translate the following into a SQL query
Name the guest 2 for colin murray 6 april
SELECT COUNT Guest 2 FROM table WHERE Presenter = Colin Murray AND Date = 6 April
Translate the following into a SQL query
Name the presenter 11 may
SELECT Presenter FROM table WHERE Date = 11 May
Translate the following into a SQL query
Name the guest 3 for iyare igiehon
SELECT Guest 3 FROM table WHERE Guest 2 = Iyare Igiehon
Translate the following into a SQL query
How many seasons featured 29 conversions?
SELECT COUNT Penalties FROM table WHERE Conversions = 29
Translate the following into a SQL query
Lowest number of drop goals?
SELECT MIN Drop Goals FROM table
Translate the following into a SQL query
What is the point total for the season with 2 drop goals?
SELECT MIN Total Points FROM table WHERE Drop Goals = 2
Translate the following into a SQL query
Name the most obama number for mccain being 38.86%
SELECT MAX Obama# FROM table WHERE McCain% = 38.86%
Translate the following into a SQL query
Name the most abama number for mccain being 29266
SELECT MAX Obama# FROM table WHERE McCain# = 29266
Translate the following into a SQL query
Name the county for mccain being 38.78%
SELECT County FROM table WHERE McCain% = 38.78%
Translate the following into a SQL query
In how many counties di McCain win 41.62% of the vote?
SELECT COUNT County FROM table WHERE McCain% = 41.62%
Translate the following into a SQL query
What percentage of the vote did McCain win in Waynesboro (city)?
SELECT McCain% FROM table WHERE County = Waynesboro (city)
Translate the following into a SQL query
What was Obama's percentage in those places where McCain's percentage was 55.46%?
SELECT Obama% FROM table WHERE McCain% = 55.46%
Translate the following into a SQL query
What was Obama's percentage in the county of Alleghany?
SELECT Obama% FROM table WHERE County = Alleghany
Translate the following into a SQL query
What was Obama's percentage in the county of Surry?
SELECT Obama% FROM table WHERE County = Surry
Translate the following into a SQL query
How many percent of the votes in Debaca did McCain get?
SELECT McCain% FROM table WHERE County = DeBaca
Translate the following into a SQL query
What percentage of the votes did Obama get in the county where 3909 people voted in total?
SELECT Obama% FROM table WHERE Total = 3909
Translate the following into a SQL query
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
SELECT Obama% FROM table WHERE McCain# = 3648
Translate the following into a SQL query
Who was the winner when the SEC team LSU played?
SELECT Winner FROM table WHERE SEC Team = LSU
Translate the following into a SQL query
What was the attendance for the game when the challenge leader was at Big East (4-2)?
SELECT MAX Attendance FROM table WHERE Challenge Leader = Big East (4-2)
Translate the following into a SQL query
What suumer team was James Lomangino from St. John's on?
SELECT Summer Team FROM table WHERE College = St. John's AND Player = James Lomangino
Translate the following into a SQL query
In what draft round in 2012 did a player from Rio Hondo get drafted?
SELECT Draft Round FROM table WHERE College = Rio Hondo AND Draft Year = 2012
Translate the following into a SQL query
What college did Aaron Slegers attend?
SELECT College FROM table WHERE Player = Aaron Slegers
Translate the following into a SQL query
What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected?
SELECT Platelet count FROM table WHERE Prothrombin time = Unaffected AND Partial thromboplastin time = Unaffected
Translate the following into a SQL query
What is the status of partial thromboplastin times for conditions where the platelet count is decreased?
SELECT Partial thromboplastin time FROM table WHERE Platelet count = Decreased
Translate the following into a SQL query
In what conditions are both the platelet count and prothrombin time unaffected?
SELECT Condition FROM table WHERE Platelet count = Unaffected AND Prothrombin time = Unaffected
Translate the following into a SQL query
What is the status of bleeding time for thrombocytopenia?
SELECT Bleeding time FROM table WHERE Condition = Thrombocytopenia
Translate the following into a SQL query
What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected?
SELECT Platelet count FROM table WHERE Bleeding time = Prolonged AND Partial thromboplastin time = Unaffected
Translate the following into a SQL query
Which players made exactly 8 cuts?
SELECT Player FROM table WHERE Cuts made = 8
Translate the following into a SQL query
What is the total number of entries for Leif Olson?
SELECT COUNT Starts FROM table WHERE Player = Leif Olson
Translate the following into a SQL query
What is the total number of players who had a money list rank of 96?
SELECT COUNT Best finish FROM table WHERE Money list rank = 96
Translate the following into a SQL query
what is the name for br no. 60501
SELECT Name FROM table WHERE BR No. = 60501
Translate the following into a SQL query
what is the name for br no. 60501
SELECT Name FROM table WHERE BR No. = 60501
Translate the following into a SQL query
When 23% scott mcadams (d) what are the dates administered?
SELECT Dates administered FROM table WHERE Scott McAdams (D) = 23%
Translate the following into a SQL query
When 30% is scott mcadams (d) percentage how many poll sources are there?
SELECT COUNT Poll source FROM table WHERE Scott McAdams (D) = 30%
Translate the following into a SQL query
Name the revenue for eps being 1.19
SELECT MAX Revenue (€million) FROM table WHERE Earnings per share (€) = 1.19
Translate the following into a SQL query
Name the net profit for eps beign 1.19
SELECT Net profit (€m) FROM table WHERE Earnings per share (€) = 1.19
Translate the following into a SQL query
Name the ebit for eps being 1.78
SELECT Earnings before interest and taxes (€m) FROM table WHERE Earnings per share (€) = 1.78
Translate the following into a SQL query
How many different production codes does the episode directed by Dominic Polcino have?
SELECT COUNT Production code FROM table WHERE Directed by = Dominic Polcino
Translate the following into a SQL query
What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?
SELECT Production code FROM table WHERE Written by = Kirker Butler AND Directed by = Dan Povenmire
Translate the following into a SQL query
What was the weight in kg when the jockey was B. York?
SELECT Weight (kg) FROM table WHERE Jockey = B. York
Translate the following into a SQL query
What was the result of the race where the jockey was J. Marshall?
SELECT Result FROM table WHERE Jockey = J. Marshall
Translate the following into a SQL query
Name the most weight
SELECT MAX Weight (kg) FROM table
Translate the following into a SQL query
Name the date for moonee valley
SELECT Date FROM table WHERE Venue = Moonee Valley
Translate the following into a SQL query
What group was the Hollindale Stakes in?
SELECT Group FROM table WHERE Race = Hollindale Stakes
Translate the following into a SQL query
What race has a distance of 1200 m?
SELECT Race FROM table WHERE Distance = 1200 m
Translate the following into a SQL query
What was the result for the time of 1-26.21?
SELECT Result FROM table WHERE Time = 1-26.21
Translate the following into a SQL query
Who was the jockey in group 1 at the 1400m distance at randwick?
SELECT Jockey FROM table WHERE Class = Group 1 AND Venue = Randwick AND Distance = 1400m
Translate the following into a SQL query
What class was the 2nd - portillo?
SELECT Class FROM table WHERE Winner/2nd = 2nd - Portillo
Translate the following into a SQL query
What time for the entrant weighing 54.4kg?
SELECT Time FROM table WHERE Weight (kg) = 54.4kg
Translate the following into a SQL query
What is every entry for epoch if periselene is 5,454.925?
SELECT Epoch (UTC) FROM table WHERE Periselene (km) = 5,454.925
Translate the following into a SQL query
What is every entry for epoch if periselene is 2,291.250?
SELECT Epoch (UTC) FROM table WHERE Periselene (km) = 2,291.250
Translate the following into a SQL query
What is every value of period when eccentricity is 0.583085?
SELECT Period (h) FROM table WHERE Eccentricity = 0.583085
Translate the following into a SQL query
What is every value of epoch if inclination is 90.063603?
SELECT Epoch (UTC) FROM table WHERE Inclination (deg) (to Moon equator) = 90.063603
Translate the following into a SQL query
What is every value for periselene if period is 4.947432?
SELECT Periselene (km) FROM table WHERE Period (h) = 4.947432
Translate the following into a SQL query
How many values of periselene when epoch is November 15, 2004, 17:47:12.1?
SELECT COUNT Periselene (km) FROM table WHERE Epoch (UTC) = November 15, 2004, 17:47:12.1
Translate the following into a SQL query
How many times did the Bruins play Tennessee?
SELECT COUNT Result FROM table WHERE Opponent = Tennessee
Translate the following into a SQL query
What is the current tournament name for the event in Tampa?
SELECT Also currently known as FROM table WHERE Tournament = Tampa
Translate the following into a SQL query
What is the tier IV year for the tournament held in Tampa?
SELECT Tier IV in FROM table WHERE Tournament = Tampa
Translate the following into a SQL query
What is the most years that tournaments held in Rome have lasted?
SELECT MAX Years FROM table WHERE Tournament = Rome
Translate the following into a SQL query
What is the city location of the tournament currently known as the Medibank International Sydney?
SELECT City(s) FROM table WHERE Also currently known as = Medibank International Sydney
Translate the following into a SQL query
How many different shareholders have 2.39 % of capital?
SELECT COUNT shareholder name FROM table WHERE % of capital = 2.39
Translate the following into a SQL query
What shareholders have 0 A shares?
SELECT shareholder name FROM table WHERE A shares = 0
Translate the following into a SQL query
What percentage of votes does the shareholder with 78.19% of capital have?
SELECT % of votes FROM table WHERE % of capital = 78.19
Translate the following into a SQL query
How many different numbers of B shares does Handelsbanken fonder have?
SELECT COUNT B shares FROM table WHERE shareholder name = Handelsbanken fonder
Translate the following into a SQL query
What's the green (SW) of the model with charcoal/white interior/roof?
SELECT MIN Green (SW) FROM table WHERE Interior/Roof = Charcoal/white
Translate the following into a SQL query
How many different results for red (e8) does the model with parchment/saddle interior/roof have?
SELECT COUNT Red (E8) FROM table WHERE Interior/Roof = Parchment/saddle
Translate the following into a SQL query
How many different total results are there for the model with parchment/black interior/roof?
SELECT COUNT Totals FROM table WHERE Interior/Roof = Parchment/black
Translate the following into a SQL query
Where did aaron wagner go to college
SELECT College FROM table WHERE Player = Aaron Wagner
Translate the following into a SQL query
Where did the ol go to college?
SELECT College FROM table WHERE Position = OL
Translate the following into a SQL query
Name the number for new mexico
SELECT MIN Pick # FROM table WHERE College = New Mexico
Translate the following into a SQL query
Name the number for db
SELECT COUNT Pick # FROM table WHERE Position = DB
Translate the following into a SQL query
Name the player for ol
SELECT Player FROM table WHERE Position = OL
Translate the following into a SQL query
Name the number for dl
SELECT Pick # FROM table WHERE Position = DL
Translate the following into a SQL query
Which companies have a free float of 0.2726?
SELECT Company FROM table WHERE Free float = 0.2726
Translate the following into a SQL query
What is every BSE code for a free float of 0.2726?
SELECT BSE Code FROM table WHERE Free float = 0.2726
Translate the following into a SQL query
What is every GICS sector for free float of 0.3180?
SELECT GICS Sector FROM table WHERE Free float = 0.3180
Translate the following into a SQL query
What is every company with an index weighting % of 1 and the city of Dimitrovgrad?
SELECT Company FROM table WHERE Index weighting (% = 1 AND City = Dimitrovgrad
Translate the following into a SQL query
How many GICS sectors have a free float of 0.2391?
SELECT COUNT GICS Sector FROM table WHERE Free float = 0.2391
Translate the following into a SQL query
How many values of free float for the BSE code of 4EH?
SELECT COUNT Free float FROM table WHERE BSE Code = 4EH
Translate the following into a SQL query
When was the poll that showed 54% for and 22% undecided conducted?
SELECT Date of opinion poll FROM table WHERE For = 54% AND Undecided = 22%
Translate the following into a SQL query
How many polls taken on different dates show an undecided percentage of 25%?
SELECT COUNT Date of opinion poll FROM table WHERE Undecided = 25%
Translate the following into a SQL query
When was Quantum Research's poll conducted?
SELECT Date of opinion poll FROM table WHERE Conductor = Quantum Research
Translate the following into a SQL query
Who conducted the poll with sample size of 2000 that shows 18% undecided?
SELECT Conductor FROM table WHERE Undecided = 18% AND Sample size = 2000
Translate the following into a SQL query
How tall is the contestant from Ecuador?
SELECT Height (ft) FROM table WHERE Country = Ecuador
Translate the following into a SQL query
How tall is the contestant from Aruba?
SELECT Height (ft) FROM table WHERE Country = Aruba
Translate the following into a SQL query
What country is the contestant from San Francisco de Yojoa from?
SELECT Country FROM table WHERE Hometown = San Francisco de Yojoa
Translate the following into a SQL query
How many different heights are there for the contestants from Warsaw?
SELECT COUNT Height (ft) FROM table WHERE Hometown = Warsaw