text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
What was the guernsey record set with a fish caught at Bordeaux Harbour?
### CONTEXT
CREATE TABLE table_name_80 (guernsey_record VARCHAR, location VARCHAR)
### ANSWER
SELECT guernsey_record FROM table_name_80 WHERE location = "bordeaux harbour"
|
{
"answer": "SELECT guernsey_record FROM table_name_80 WHERE location = \"bordeaux harbour\"",
"context": "CREATE TABLE table_name_80 (guernsey_record VARCHAR, location VARCHAR)",
"question": "What was the guernsey record set with a fish caught at Bordeaux Harbour?"
}
|
### QUESTION
Which Location Attendance has a High assists of raymond felton (5), and a Record of 35–44?
### CONTEXT
CREATE TABLE table_name_17 (location_attendance VARCHAR, high_assists VARCHAR, record VARCHAR)
### ANSWER
SELECT location_attendance FROM table_name_17 WHERE high_assists = "raymond felton (5)" AND record = "35–44"
|
{
"answer": "SELECT location_attendance FROM table_name_17 WHERE high_assists = \"raymond felton (5)\" AND record = \"35–44\"",
"context": "CREATE TABLE table_name_17 (location_attendance VARCHAR, high_assists VARCHAR, record VARCHAR)",
"question": "Which Location Attendance has a High assists of raymond felton (5), and a Record of 35–44?"
}
|
### QUESTION
Which position was the World Indoor Championships in a year later than 2008?
### CONTEXT
CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)
### ANSWER
SELECT position FROM table_name_64 WHERE competition = "world indoor championships" AND year > 2008
|
{
"answer": "SELECT position FROM table_name_64 WHERE competition = \"world indoor championships\" AND year > 2008",
"context": "CREATE TABLE table_name_64 (position VARCHAR, competition VARCHAR, year VARCHAR)",
"question": "Which position was the World Indoor Championships in a year later than 2008?"
}
|
### QUESTION
What number corresponds to the quantity of 24?
### CONTEXT
CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)
### ANSWER
SELECT number_s_ FROM table_name_50 WHERE quantity = "24"
|
{
"answer": "SELECT number_s_ FROM table_name_50 WHERE quantity = \"24\"",
"context": "CREATE TABLE table_name_50 (number_s_ VARCHAR, quantity VARCHAR)",
"question": "What number corresponds to the quantity of 24?"
}
|
### QUESTION
Which language is the most popular on the Asian continent?
### CONTEXT
CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
### ANSWER
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = "Asia" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1
|
{
"answer": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Continent = \"Asia\" GROUP BY T2.Language ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE country (Code VARCHAR, Continent VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)",
"question": "Which language is the most popular on the Asian continent?"
}
|
### QUESTION
How many product # have episode 1?
### CONTEXT
CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR)
### ANSWER
SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1
|
{
"answer": "SELECT MAX(prod__number) FROM table_2289806_1 WHERE episode__number = 1",
"context": "CREATE TABLE table_2289806_1 (prod__number INTEGER, episode__number VARCHAR)",
"question": "How many product # have episode 1?"
}
|
### QUESTION
Which Score has a Home of quebec nordiques on april 16?
### CONTEXT
CREATE TABLE table_name_83 (score VARCHAR, home VARCHAR, date VARCHAR)
### ANSWER
SELECT score FROM table_name_83 WHERE home = "quebec nordiques" AND date = "april 16"
|
{
"answer": "SELECT score FROM table_name_83 WHERE home = \"quebec nordiques\" AND date = \"april 16\"",
"context": "CREATE TABLE table_name_83 (score VARCHAR, home VARCHAR, date VARCHAR)",
"question": "Which Score has a Home of quebec nordiques on april 16?"
}
|
### QUESTION
On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages?
### CONTEXT
CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)
### ANSWER
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "November 14, 2007"
|
{
"answer": "SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = \"November 14, 2007\"",
"context": "CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)",
"question": "On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? "
}
|
### QUESTION
What is the average rank of a nation that had 219,721 in 2012?
### CONTEXT
CREATE TABLE table_name_6 (rank INTEGER)
### ANSWER
SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721
|
{
"answer": "SELECT AVG(rank) FROM table_name_6 WHERE 2012 = 219 OFFSET 721",
"context": "CREATE TABLE table_name_6 (rank INTEGER)",
"question": "What is the average rank of a nation that had 219,721 in 2012?"
}
|
### QUESTION
What was the score of the game when the record was 28–19?
### CONTEXT
CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR)
### ANSWER
SELECT score FROM table_name_62 WHERE record = "28–19"
|
{
"answer": "SELECT score FROM table_name_62 WHERE record = \"28–19\"",
"context": "CREATE TABLE table_name_62 (score VARCHAR, record VARCHAR)",
"question": "What was the score of the game when the record was 28–19?"
}
|
### QUESTION
Find the name and id of accounts whose checking balance is below the maximum checking balance.
### CONTEXT
CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
### ANSWER
SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
|
{
"answer": "SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)",
"context": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)",
"question": "Find the name and id of accounts whose checking balance is below the maximum checking balance."
}
|
### QUESTION
What is the population density of the Capital Region of Denmark?
### CONTEXT
CREATE TABLE table_16278602_1 (pop_density__per_km²_ VARCHAR, english_name VARCHAR)
### ANSWER
SELECT pop_density__per_km²_ FROM table_16278602_1 WHERE english_name = "Capital Region of Denmark"
|
{
"answer": "SELECT pop_density__per_km²_ FROM table_16278602_1 WHERE english_name = \"Capital Region of Denmark\"",
"context": "CREATE TABLE table_16278602_1 (pop_density__per_km²_ VARCHAR, english_name VARCHAR)",
"question": "What is the population density of the Capital Region of Denmark?"
}
|
### QUESTION
What channel has an operator of ivptc?
### CONTEXT
CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR)
### ANSWER
SELECT programming FROM table_name_1 WHERE operator = "ivptc"
|
{
"answer": "SELECT programming FROM table_name_1 WHERE operator = \"ivptc\"",
"context": "CREATE TABLE table_name_1 (programming VARCHAR, operator VARCHAR)",
"question": "What channel has an operator of ivptc?"
}
|
### QUESTION
What rank is He Yingqin who was born before 1890?
### CONTEXT
CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)
### ANSWER
SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890
|
{
"answer": "SELECT AVG(rank) FROM table_name_75 WHERE name = \"he yingqin\" AND birth < 1890",
"context": "CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR)",
"question": "What rank is He Yingqin who was born before 1890?"
}
|
### QUESTION
What lane is David Carry in heat 1?
### CONTEXT
CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry"
|
{
"answer": "SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = \"david carry\"",
"context": "CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR)",
"question": "What lane is David Carry in heat 1?"
}
|
### QUESTION
Show the number of buildings with a height above the average or a number of floors above the average.
### CONTEXT
CREATE TABLE building (height_feet INTEGER, floors INTEGER)
### ANSWER
SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)
|
{
"answer": "SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)",
"context": "CREATE TABLE building (height_feet INTEGER, floors INTEGER)",
"question": "Show the number of buildings with a height above the average or a number of floors above the average."
}
|
### QUESTION
What is the # of candidates that have a popular vote of 41.37%?
### CONTEXT
CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR)
### ANSWER
SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = "41.37%"
|
{
"answer": "SELECT AVG(_number_of_candidates) FROM table_name_36 WHERE _percentage_of_popular_vote = \"41.37%\"",
"context": "CREATE TABLE table_name_36 (_number_of_candidates INTEGER, _percentage_of_popular_vote VARCHAR)",
"question": "What is the # of candidates that have a popular vote of 41.37%?"
}
|
### QUESTION
Which the highest Bronze of czech republic with a Total smaller than 4?
### CONTEXT
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, total VARCHAR)
### ANSWER
SELECT MAX(bronze) FROM table_name_63 WHERE nation = "czech republic" AND total < 4
|
{
"answer": "SELECT MAX(bronze) FROM table_name_63 WHERE nation = \"czech republic\" AND total < 4",
"context": "CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, total VARCHAR)",
"question": "Which the highest Bronze of czech republic with a Total smaller than 4?"
}
|
### QUESTION
Which money has a Country of united states, and a Place of t6?
### CONTEXT
CREATE TABLE table_name_23 (money___ INTEGER, country VARCHAR, place VARCHAR)
### ANSWER
SELECT AVG(money___) AS $__ FROM table_name_23 WHERE country = "united states" AND place = "t6"
|
{
"answer": "SELECT AVG(money___) AS $__ FROM table_name_23 WHERE country = \"united states\" AND place = \"t6\"",
"context": "CREATE TABLE table_name_23 (money___ INTEGER, country VARCHAR, place VARCHAR)",
"question": "Which money has a Country of united states, and a Place of t6?"
}
|
### QUESTION
What week were there 56,023 people in attendance?
### CONTEXT
CREATE TABLE table_name_29 (week VARCHAR, attendance VARCHAR)
### ANSWER
SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023
|
{
"answer": "SELECT COUNT(week) FROM table_name_29 WHERE attendance = 56 OFFSET 023",
"context": "CREATE TABLE table_name_29 (week VARCHAR, attendance VARCHAR)",
"question": "What week were there 56,023 people in attendance?"
}
|
### QUESTION
What are the swimsuits for south africa?
### CONTEXT
CREATE TABLE table_11674683_2 (swimsuit VARCHAR, delegate VARCHAR)
### ANSWER
SELECT swimsuit FROM table_11674683_2 WHERE delegate = "South Africa"
|
{
"answer": "SELECT swimsuit FROM table_11674683_2 WHERE delegate = \"South Africa\"",
"context": "CREATE TABLE table_11674683_2 (swimsuit VARCHAR, delegate VARCHAR)",
"question": "What are the swimsuits for south africa?"
}
|
### QUESTION
Which Wins has a Country of new zealand and a Last title larger than 1968?
### CONTEXT
CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR)
### ANSWER
SELECT MIN(wins) FROM table_name_25 WHERE country = "new zealand" AND last_title > 1968
|
{
"answer": "SELECT MIN(wins) FROM table_name_25 WHERE country = \"new zealand\" AND last_title > 1968",
"context": "CREATE TABLE table_name_25 (wins INTEGER, country VARCHAR, last_title VARCHAR)",
"question": "Which Wins has a Country of new zealand and a Last title larger than 1968?"
}
|
### QUESTION
Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?
### CONTEXT
CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)
### ANSWER
SELECT surname FROM table_name_64 WHERE throws = "r" AND position = "p" AND dob = "26 april 1989"
|
{
"answer": "SELECT surname FROM table_name_64 WHERE throws = \"r\" AND position = \"p\" AND dob = \"26 april 1989\"",
"context": "CREATE TABLE table_name_64 (surname VARCHAR, dob VARCHAR, throws VARCHAR, position VARCHAR)",
"question": "Which Surname has Throws of r, and a Position of p, and a DOB of 26 april 1989?"
}
|
### QUESTION
Which Destination has a Stopping pattern of [2777] mciver station platforms?
### CONTEXT
CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR)
### ANSWER
SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms"
|
{
"answer": "SELECT destination FROM table_name_47 WHERE stopping_pattern = \"[2777] mciver station platforms\"",
"context": "CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR)",
"question": "Which Destination has a Stopping pattern of [2777] mciver station platforms?"
}
|
### QUESTION
Who led team classification during the stage whose winner was Chris Horner?
### CONTEXT
CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)
### ANSWER
SELECT team_classification FROM table_26257223_13 WHERE winner = "Chris Horner"
|
{
"answer": "SELECT team_classification FROM table_26257223_13 WHERE winner = \"Chris Horner\"",
"context": "CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)",
"question": "Who led team classification during the stage whose winner was Chris Horner?"
}
|
### QUESTION
There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006.
### CONTEXT
CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)
### ANSWER
SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6
|
{
"answer": "SELECT SUM(seats_2001) FROM table_name_7 WHERE seats_2006 = 2 AND _percentage_2001 > 7.6",
"context": "CREATE TABLE table_name_7 (seats_2001 INTEGER, seats_2006 VARCHAR, _percentage_2001 VARCHAR)",
"question": "There are communities listed that a percentage larger than 7.6 in 2001, but none of them has 2 seats listed in 2006."
}
|
### QUESTION
What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
### CONTEXT
CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)
### ANSWER
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
|
{
"answer": "SELECT club_province FROM table_name_93 WHERE position = \"wing\" AND caps < 24 AND player = \"sireli bobo\"",
"context": "CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)",
"question": "What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?"
}
|
### QUESTION
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
### CONTEXT
CREATE TABLE table_name_74 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR)
### ANSWER
SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = "(none)" AND socialist_labor_ticket = "belle j. rosen"
|
{
"answer": "SELECT socialist_ticket FROM table_name_74 WHERE law_preservation_ticket = \"(none)\" AND socialist_labor_ticket = \"belle j. rosen\"",
"context": "CREATE TABLE table_name_74 (socialist_ticket VARCHAR, law_preservation_ticket VARCHAR, socialist_labor_ticket VARCHAR)",
"question": "Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?"
}
|
### QUESTION
Find the name of the user who gives the most reviews.
### CONTEXT
CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)
### ANSWER
SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1
|
{
"answer": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)",
"question": "Find the name of the user who gives the most reviews."
}
|
### QUESTION
What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?
### CONTEXT
CREATE TABLE table_name_25 (company_or_product_name VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
### ANSWER
SELECT company_or_product_name FROM table_name_25 WHERE money_requested__£_ = "75,000" AND entrepreneur_s_ = "geoff and colette bell"
|
{
"answer": "SELECT company_or_product_name FROM table_name_25 WHERE money_requested__£_ = \"75,000\" AND entrepreneur_s_ = \"geoff and colette bell\"",
"context": "CREATE TABLE table_name_25 (company_or_product_name VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)",
"question": "What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?"
}
|
### QUESTION
Find the number of items that did not receive any review.
### CONTEXT
CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
|
{
"answer": "SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)",
"context": "CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)",
"question": "Find the number of items that did not receive any review."
}
|
### QUESTION
What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?
### CONTEXT
CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR)
### ANSWER
SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4
|
{
"answer": "SELECT SUM(rank) FROM table_name_65 WHERE gold > 1 AND total > 4",
"context": "CREATE TABLE table_name_65 (rank INTEGER, gold VARCHAR, total VARCHAR)",
"question": "What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?"
}
|
### QUESTION
Name the founded for school closed in 2005
### CONTEXT
CREATE TABLE table_262505_1 (founded VARCHAR, current_conference VARCHAR)
### ANSWER
SELECT founded FROM table_262505_1 WHERE current_conference = "school closed in 2005"
|
{
"answer": "SELECT founded FROM table_262505_1 WHERE current_conference = \"school closed in 2005\"",
"context": "CREATE TABLE table_262505_1 (founded VARCHAR, current_conference VARCHAR)",
"question": "Name the founded for school closed in 2005"
}
|
### QUESTION
How many years is ur sulcus listed with a diameter less than 1,145.0?
### CONTEXT
CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)
### ANSWER
SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
|
{
"answer": "SELECT COUNT(year_named) FROM table_name_68 WHERE name = \"ur sulcus\" AND diameter < 1 OFFSET 145.0",
"context": "CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)",
"question": "How many years is ur sulcus listed with a diameter less than 1,145.0?"
}
|
### QUESTION
What was the production code of the episode written by Anthony Sparks?
### CONTEXT
CREATE TABLE table_25851971_1 (production_code VARCHAR, written_by VARCHAR)
### ANSWER
SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks"
|
{
"answer": "SELECT production_code FROM table_25851971_1 WHERE written_by = \"Anthony Sparks\"",
"context": "CREATE TABLE table_25851971_1 (production_code VARCHAR, written_by VARCHAR)",
"question": "What was the production code of the episode written by Anthony Sparks?"
}
|
### QUESTION
What date was the Italian Grand Prix?
### CONTEXT
CREATE TABLE table_name_12 (date VARCHAR, race VARCHAR)
### ANSWER
SELECT date FROM table_name_12 WHERE race = "italian grand prix"
|
{
"answer": "SELECT date FROM table_name_12 WHERE race = \"italian grand prix\"",
"context": "CREATE TABLE table_name_12 (date VARCHAR, race VARCHAR)",
"question": "What date was the Italian Grand Prix?"
}
|
### QUESTION
What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?
### CONTEXT
CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)
### ANSWER
SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz"
|
{
"answer": "SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = \"stephane houdet michael jeremiasz\"",
"context": "CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR)",
"question": "What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents?"
}
|
### QUESTION
What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?
### CONTEXT
CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)
### ANSWER
SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = "march 3, 1980"
|
{
"answer": "SELECT birthplace FROM table_name_24 WHERE jersey__number < 18 AND height__cm_ > 185 AND birthdate = \"march 3, 1980\"",
"context": "CREATE TABLE table_name_24 (birthplace VARCHAR, birthdate VARCHAR, jersey__number VARCHAR, height__cm_ VARCHAR)",
"question": "What is the Birthplace, when the Jersey # is less than 18, when the Height (cm) is higher than 185, and when the Birthdate is March 3, 1980?"
}
|
### QUESTION
What was the second leg score from the group stage on matchday 5?
### CONTEXT
CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)
### ANSWER
SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5"
|
{
"answer": "SELECT second_leg FROM table_name_35 WHERE phase = \"group stage\" AND round = \"matchday 5\"",
"context": "CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)",
"question": "What was the second leg score from the group stage on matchday 5?"
}
|
### QUESTION
Find the id and name of the staff who has been assigned for the shortest period.
### CONTEXT
CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR)
### ANSWER
SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1
|
{
"answer": "SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1",
"context": "CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR)",
"question": "Find the id and name of the staff who has been assigned for the shortest period."
}
|
### QUESTION
What is the maximum download speed for the Internet premium 3G plan?
### CONTEXT
CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)
### ANSWER
SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = "3g" AND plan_name = "internet premium"
|
{
"answer": "SELECT maximum_download_speed__kbps FROM table_name_5 WHERE technology = \"3g\" AND plan_name = \"internet premium\"",
"context": "CREATE TABLE table_name_5 (maximum_download_speed__kbps VARCHAR, technology VARCHAR, plan_name VARCHAR)",
"question": "What is the maximum download speed for the Internet premium 3G plan?"
}
|
### QUESTION
what is the platform when the frequency (per hour) is 4 and the destination is west croydon?
### CONTEXT
CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)
### ANSWER
SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = "west croydon"
|
{
"answer": "SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = \"west croydon\"",
"context": "CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)",
"question": "what is the platform when the frequency (per hour) is 4 and the destination is west croydon?"
}
|
### QUESTION
What is the listed for the bridge at Daniel in Sublette county?
### CONTEXT
CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR)
### ANSWER
SELECT listed FROM table_name_86 WHERE county = "sublette" AND location = "daniel"
|
{
"answer": "SELECT listed FROM table_name_86 WHERE county = \"sublette\" AND location = \"daniel\"",
"context": "CREATE TABLE table_name_86 (listed VARCHAR, county VARCHAR, location VARCHAR)",
"question": "What is the listed for the bridge at Daniel in Sublette county?"
}
|
### QUESTION
When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?
### CONTEXT
CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR)
### ANSWER
SELECT 2009 AS _season FROM table_name_17 WHERE group = "group b" AND stadium = "cancha del mystic" AND club = "el tecal"
|
{
"answer": "SELECT 2009 AS _season FROM table_name_17 WHERE group = \"group b\" AND stadium = \"cancha del mystic\" AND club = \"el tecal\"",
"context": "CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR)",
"question": "When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal?"
}
|
### QUESTION
What was the incumbent for missouri 1?
### CONTEXT
CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR)
### ANSWER
SELECT incumbent FROM table_1341640_26 WHERE district = "Missouri 1"
|
{
"answer": "SELECT incumbent FROM table_1341640_26 WHERE district = \"Missouri 1\"",
"context": "CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR)",
"question": "What was the incumbent for missouri 1?"
}
|
### QUESTION
Who was the director that worked with Dana Dorian as the writer?
### CONTEXT
CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)
### ANSWER
SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian"
|
{
"answer": "SELECT director_s_ FROM table_name_44 WHERE writer_s_ = \"dana dorian\"",
"context": "CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR)",
"question": "Who was the director that worked with Dana Dorian as the writer?"
}
|
### QUESTION
What is Date, when Against is "22"?
### CONTEXT
CREATE TABLE table_name_87 (date VARCHAR, against VARCHAR)
### ANSWER
SELECT date FROM table_name_87 WHERE against = 22
|
{
"answer": "SELECT date FROM table_name_87 WHERE against = 22",
"context": "CREATE TABLE table_name_87 (date VARCHAR, against VARCHAR)",
"question": "What is Date, when Against is \"22\"?"
}
|
### QUESTION
Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.
### CONTEXT
CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER)
### ANSWER
SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1
|
{
"answer": "SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1",
"context": "CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER)",
"question": "Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100."
}
|
### QUESTION
What is the college where player terry moss attended?
### CONTEXT
CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR)
### ANSWER
SELECT college FROM table_26996293_7 WHERE player = "Terry Moss"
|
{
"answer": "SELECT college FROM table_26996293_7 WHERE player = \"Terry Moss\"",
"context": "CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR)",
"question": "What is the college where player terry moss attended?"
}
|
### QUESTION
Show the guest first names, start dates, and end dates of all the apartment bookings.
### CONTEXT
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR)
### ANSWER
SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id
|
{
"answer": "SELECT T2.guest_first_name, T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id",
"context": "CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, guest_id VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_id VARCHAR)",
"question": "Show the guest first names, start dates, and end dates of all the apartment bookings."
}
|
### QUESTION
What was the average number of attendance for the game on November 29, 1981 played after week 13?
### CONTEXT
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)
### ANSWER
SELECT AVG(attendance) FROM table_name_40 WHERE date = "november 29, 1981" AND week > 13
|
{
"answer": "SELECT AVG(attendance) FROM table_name_40 WHERE date = \"november 29, 1981\" AND week > 13",
"context": "CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR)",
"question": "What was the average number of attendance for the game on November 29, 1981 played after week 13?"
}
|
### QUESTION
What was the home team's score of the game where South Melbourne is the away team?
### CONTEXT
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
### ANSWER
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne"
|
{
"answer": "SELECT home_team AS score FROM table_name_77 WHERE away_team = \"south melbourne\"",
"context": "CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)",
"question": "What was the home team's score of the game where South Melbourne is the away team?"
}
|
### QUESTION
What country has a total greater than 270, with sandy lyle as the player?
### CONTEXT
CREATE TABLE table_name_94 (country VARCHAR, total VARCHAR, player VARCHAR)
### ANSWER
SELECT country FROM table_name_94 WHERE total > 270 AND player = "sandy lyle"
|
{
"answer": "SELECT country FROM table_name_94 WHERE total > 270 AND player = \"sandy lyle\"",
"context": "CREATE TABLE table_name_94 (country VARCHAR, total VARCHAR, player VARCHAR)",
"question": "What country has a total greater than 270, with sandy lyle as the player?"
}
|
### QUESTION
What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?
### CONTEXT
CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR)
### ANSWER
SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9
|
{
"answer": "SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = \"u.s. open\" AND cuts_made > 9",
"context": "CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR)",
"question": "What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9?"
}
|
### QUESTION
How many legs were lost for Trina Gulliver with more than 3 played?
### CONTEXT
CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR)
### ANSWER
SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = "trina gulliver" AND played > 3
|
{
"answer": "SELECT COUNT(legs_lost) FROM table_name_11 WHERE player = \"trina gulliver\" AND played > 3",
"context": "CREATE TABLE table_name_11 (legs_lost VARCHAR, player VARCHAR, played VARCHAR)",
"question": "How many legs were lost for Trina Gulliver with more than 3 played?"
}
|
### QUESTION
what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?
### CONTEXT
CREATE TABLE table_name_43 (score VARCHAR, opponents VARCHAR, partner VARCHAR, surface VARCHAR)
### ANSWER
SELECT score FROM table_name_43 WHERE partner = "florencia labat" AND surface = "clay" AND opponents = "laura golarsa ann grossman"
|
{
"answer": "SELECT score FROM table_name_43 WHERE partner = \"florencia labat\" AND surface = \"clay\" AND opponents = \"laura golarsa ann grossman\"",
"context": "CREATE TABLE table_name_43 (score VARCHAR, opponents VARCHAR, partner VARCHAR, surface VARCHAR)",
"question": "what is the score when the partner is florencia labat, the surface is clay, the opponents is laura golarsa ann grossman?"
}
|
### QUESTION
Who was the host team at Candlestick Park?
### CONTEXT
CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR)
### ANSWER
SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park"
|
{
"answer": "SELECT host_team FROM table_name_22 WHERE stadium = \"candlestick park\"",
"context": "CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR)",
"question": "Who was the host team at Candlestick Park?"
}
|
### QUESTION
How many production codes were in series 39?
### CONTEXT
CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)
### ANSWER
SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39
|
{
"answer": "SELECT COUNT(production_code) FROM table_2409041_3 WHERE no_in_series = 39",
"context": "CREATE TABLE table_2409041_3 (production_code VARCHAR, no_in_series VARCHAR)",
"question": "How many production codes were in series 39?"
}
|
### QUESTION
What is Player, when Pick is greater than 24, and when NBA years [a ] is "9"?
### CONTEXT
CREATE TABLE table_name_2 (player VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
### ANSWER
SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = "9"
|
{
"answer": "SELECT player FROM table_name_2 WHERE pick > 24 AND nba_years_[a_] = \"9\"",
"context": "CREATE TABLE table_name_2 (player VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)",
"question": "What is Player, when Pick is greater than 24, and when NBA years [a ] is \"9\"?"
}
|
### QUESTION
What is the category of the touchdown atlantic?
### CONTEXT
CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)
### ANSWER
SELECT category FROM table_name_76 WHERE event_name = "touchdown atlantic"
|
{
"answer": "SELECT category FROM table_name_76 WHERE event_name = \"touchdown atlantic\"",
"context": "CREATE TABLE table_name_76 (category VARCHAR, event_name VARCHAR)",
"question": "What is the category of the touchdown atlantic?"
}
|
### QUESTION
In what round did Al Unser win at Wisconsin State Fair Park Speedway?
### CONTEXT
CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)
### ANSWER
SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = "Al Unser" AND track = "Wisconsin State Fair Park Speedway"
|
{
"answer": "SELECT MIN(rnd) FROM table_22673872_1 WHERE winning_driver = \"Al Unser\" AND track = \"Wisconsin State Fair Park Speedway\"",
"context": "CREATE TABLE table_22673872_1 (rnd INTEGER, winning_driver VARCHAR, track VARCHAR)",
"question": "In what round did Al Unser win at Wisconsin State Fair Park Speedway? "
}
|
### QUESTION
what was the result where the candidates are sam m. gibbons (d) unopposed?
### CONTEXT
CREATE TABLE table_1341663_10 (result VARCHAR, candidates VARCHAR)
### ANSWER
SELECT result FROM table_1341663_10 WHERE candidates = "Sam M. Gibbons (D) Unopposed"
|
{
"answer": "SELECT result FROM table_1341663_10 WHERE candidates = \"Sam M. Gibbons (D) Unopposed\"",
"context": "CREATE TABLE table_1341663_10 (result VARCHAR, candidates VARCHAR)",
"question": "what was the result where the candidates are sam m. gibbons (d) unopposed?"
}
|
### QUESTION
Name the year for reportaje a la muerte
### CONTEXT
CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### ANSWER
SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = "Reportaje a la muerte"
|
{
"answer": "SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = \"Reportaje a la muerte\"",
"context": "CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR)",
"question": "Name the year for reportaje a la muerte"
}
|
### QUESTION
Name the award for candida scott knight
### CONTEXT
CREATE TABLE table_name_78 (award VARCHAR, director_s_ VARCHAR)
### ANSWER
SELECT award FROM table_name_78 WHERE director_s_ = "candida scott knight"
|
{
"answer": "SELECT award FROM table_name_78 WHERE director_s_ = \"candida scott knight\"",
"context": "CREATE TABLE table_name_78 (award VARCHAR, director_s_ VARCHAR)",
"question": "Name the award for candida scott knight"
}
|
### QUESTION
What is the difference with a loss smaller than 5 and points lower than 32?
### CONTEXT
CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)
### ANSWER
SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32
|
{
"answer": "SELECT COUNT(diff) FROM table_name_50 WHERE lost < 5 AND points < 32",
"context": "CREATE TABLE table_name_50 (diff VARCHAR, lost VARCHAR, points VARCHAR)",
"question": "What is the difference with a loss smaller than 5 and points lower than 32?"
}
|
### QUESTION
What is Opponent, when Event is "ISCF - Southeast Championships"?
### CONTEXT
CREATE TABLE table_name_17 (opponent VARCHAR, event VARCHAR)
### ANSWER
SELECT opponent FROM table_name_17 WHERE event = "iscf - southeast championships"
|
{
"answer": "SELECT opponent FROM table_name_17 WHERE event = \"iscf - southeast championships\"",
"context": "CREATE TABLE table_name_17 (opponent VARCHAR, event VARCHAR)",
"question": "What is Opponent, when Event is \"ISCF - Southeast Championships\"?"
}
|
### QUESTION
What average wheels has accounting as the type, with IBM Collection as the location?
### CONTEXT
CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)
### ANSWER
SELECT AVG(wheels) FROM table_name_71 WHERE type = "accounting" AND location = "ibm collection"
|
{
"answer": "SELECT AVG(wheels) FROM table_name_71 WHERE type = \"accounting\" AND location = \"ibm collection\"",
"context": "CREATE TABLE table_name_71 (wheels INTEGER, type VARCHAR, location VARCHAR)",
"question": "What average wheels has accounting as the type, with IBM Collection as the location?"
}
|
### QUESTION
What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97?
### CONTEXT
CREATE TABLE table_name_66 (population INTEGER, place VARCHAR, code VARCHAR, area__km_2__ VARCHAR)
### ANSWER
SELECT MIN(population) FROM table_name_66 WHERE code < 70409 AND area__km_2__ < 5.97 AND place = "tshepiso"
|
{
"answer": "SELECT MIN(population) FROM table_name_66 WHERE code < 70409 AND area__km_2__ < 5.97 AND place = \"tshepiso\"",
"context": "CREATE TABLE table_name_66 (population INTEGER, place VARCHAR, code VARCHAR, area__km_2__ VARCHAR)",
"question": "What is the Population of Tshepiso with a Code of 70409 or smaller and an Area (km 2) smaller than 5.97?"
}
|
### QUESTION
When Matt Ware won the mens singles, who won the mixed restricted?
### CONTEXT
CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mens_singles VARCHAR)
### ANSWER
SELECT mixed_restricted FROM table_28211674_3 WHERE mens_singles = "Matt Ware"
|
{
"answer": "SELECT mixed_restricted FROM table_28211674_3 WHERE mens_singles = \"Matt Ware\"",
"context": "CREATE TABLE table_28211674_3 (mixed_restricted VARCHAR, mens_singles VARCHAR)",
"question": "When Matt Ware won the mens singles, who won the mixed restricted?"
}
|
### QUESTION
What is the total number of sd listings where the status is quarterfinals lost to Novak Djokovic [1]?
### CONTEXT
CREATE TABLE table_27615896_18 (sd VARCHAR, status VARCHAR)
### ANSWER
SELECT COUNT(sd) FROM table_27615896_18 WHERE status = "Quarterfinals lost to Novak Djokovic [1]"
|
{
"answer": "SELECT COUNT(sd) FROM table_27615896_18 WHERE status = \"Quarterfinals lost to Novak Djokovic [1]\"",
"context": "CREATE TABLE table_27615896_18 (sd VARCHAR, status VARCHAR)",
"question": "What is the total number of sd listings where the status is quarterfinals lost to Novak Djokovic [1]?"
}
|
### QUESTION
What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560?
### CONTEXT
CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR)
### ANSWER
SELECT mpg_uk_combined FROM table_name_89 WHERE mpg_uk_urban__cold_ > 26.6 AND transmission = "m5" AND fuel_type = "diesel" AND engine_capacity < 1560
|
{
"answer": "SELECT mpg_uk_combined FROM table_name_89 WHERE mpg_uk_urban__cold_ > 26.6 AND transmission = \"m5\" AND fuel_type = \"diesel\" AND engine_capacity < 1560",
"context": "CREATE TABLE table_name_89 (mpg_uk_combined VARCHAR, engine_capacity VARCHAR, fuel_type VARCHAR, mpg_uk_urban__cold_ VARCHAR, transmission VARCHAR)",
"question": "What is the mpg-uk combined with an mpg-uk urban (cold) greater than 26.6, a m5 transmission, a diesel fuel type, and an engine capacity less than 1560?"
}
|
### QUESTION
What is the first and last name of the professor in biology department?
### CONTEXT
CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)
### ANSWER
SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = "Biology"
|
{
"answer": "SELECT T3.EMP_FNAME, T3.EMP_LNAME FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code JOIN employee AS T3 ON T1.EMP_NUM = T3.EMP_NUM WHERE DEPT_NAME = \"Biology\"",
"context": "CREATE TABLE professor (dept_code VARCHAR, EMP_NUM VARCHAR); CREATE TABLE department (dept_code VARCHAR); CREATE TABLE employee (EMP_FNAME VARCHAR, EMP_LNAME VARCHAR, EMP_NUM VARCHAR)",
"question": "What is the first and last name of the professor in biology department?"
}
|
### QUESTION
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?
### CONTEXT
CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)
### ANSWER
SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7"
|
{
"answer": "SELECT surface FROM table_name_66 WHERE outcome = \"runner-up\" AND partner = \"ivan lendl\" AND score_in_the_final = \"2–6, 6–7\"",
"context": "CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)",
"question": "On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?"
}
|
### QUESTION
Which player is in round 5?
### CONTEXT
CREATE TABLE table_11803648_20 (player VARCHAR, round VARCHAR)
### ANSWER
SELECT player FROM table_11803648_20 WHERE round = 5
|
{
"answer": "SELECT player FROM table_11803648_20 WHERE round = 5",
"context": "CREATE TABLE table_11803648_20 (player VARCHAR, round VARCHAR)",
"question": "Which player is in round 5?"
}
|
### QUESTION
What is the total kills of the perpetrators with height more than 1.84.
### CONTEXT
CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR)
### ANSWER
SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84
|
{
"answer": "SELECT SUM(T2.Killed) FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Height > 1.84",
"context": "CREATE TABLE people (People_ID VARCHAR, Height INTEGER); CREATE TABLE perpetrator (Killed INTEGER, People_ID VARCHAR)",
"question": "What is the total kills of the perpetrators with height more than 1.84."
}
|
### QUESTION
What is the highest number a guard from brophy college prep wore?
### CONTEXT
CREATE TABLE table_29050051_3 (_number INTEGER, position VARCHAR, previous_school VARCHAR)
### ANSWER
SELECT MAX(_number) FROM table_29050051_3 WHERE position = "Guard" AND previous_school = "Brophy College Prep"
|
{
"answer": "SELECT MAX(_number) FROM table_29050051_3 WHERE position = \"Guard\" AND previous_school = \"Brophy College Prep\"",
"context": "CREATE TABLE table_29050051_3 (_number INTEGER, position VARCHAR, previous_school VARCHAR)",
"question": "What is the highest number a guard from brophy college prep wore?"
}
|
### QUESTION
What is the total rank with more than 2 silver and total larger than 10?
### CONTEXT
CREATE TABLE table_name_55 (rank INTEGER, silver VARCHAR, total VARCHAR)
### ANSWER
SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10
|
{
"answer": "SELECT SUM(rank) FROM table_name_55 WHERE silver = 2 AND total > 10",
"context": "CREATE TABLE table_name_55 (rank INTEGER, silver VARCHAR, total VARCHAR)",
"question": "What is the total rank with more than 2 silver and total larger than 10?"
}
|
### QUESTION
Show the name and phone for customers with a mailshot with outcome code 'No Response'.
### CONTEXT
CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR)
### ANSWER
SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'
|
{
"answer": "SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN mailshot_customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.outcome_code = 'No Response'",
"context": "CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE mailshot_customers (customer_id VARCHAR, outcome_code VARCHAR)",
"question": "Show the name and phone for customers with a mailshot with outcome code 'No Response'."
}
|
### QUESTION
Show the names of donors who donated to both school "Glenn" and "Triton."
### CONTEXT
CREATE TABLE school (school_id VARCHAR, school_name VARCHAR); CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR)
### ANSWER
SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton'
|
{
"answer": "SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton'",
"context": "CREATE TABLE school (school_id VARCHAR, school_name VARCHAR); CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR)",
"question": "Show the names of donors who donated to both school \"Glenn\" and \"Triton.\""
}
|
### QUESTION
What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?
### CONTEXT
CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR)
### ANSWER
SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3
|
{
"answer": "SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = \"czech republic\" AND population_in_millions < 10.3",
"context": "CREATE TABLE table_name_61 (area_km_2 INTEGER, member_state VARCHAR, population_in_millions VARCHAR)",
"question": "What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3?"
}
|
### QUESTION
Name the sscore for world cup qualifying october 15, 2008
### CONTEXT
CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR)
### ANSWER
SELECT score FROM table_name_49 WHERE competition = "world cup qualifying" AND date = "october 15, 2008"
|
{
"answer": "SELECT score FROM table_name_49 WHERE competition = \"world cup qualifying\" AND date = \"october 15, 2008\"",
"context": "CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR)",
"question": "Name the sscore for world cup qualifying october 15, 2008"
}
|
### QUESTION
What player had a transfer window of winter, and free as the transfer fee?
### CONTEXT
CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)
### ANSWER
SELECT name FROM table_name_72 WHERE transfer_window = "winter" AND transfer_fee = "free"
|
{
"answer": "SELECT name FROM table_name_72 WHERE transfer_window = \"winter\" AND transfer_fee = \"free\"",
"context": "CREATE TABLE table_name_72 (name VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR)",
"question": "What player had a transfer window of winter, and free as the transfer fee?"
}
|
### QUESTION
which To par has a Country of united states, and a Player of dave stockton?
### CONTEXT
CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR)
### ANSWER
SELECT to_par FROM table_name_42 WHERE country = "united states" AND player = "dave stockton"
|
{
"answer": "SELECT to_par FROM table_name_42 WHERE country = \"united states\" AND player = \"dave stockton\"",
"context": "CREATE TABLE table_name_42 (to_par VARCHAR, country VARCHAR, player VARCHAR)",
"question": "which To par has a Country of united states, and a Player of dave stockton?"
}
|
### QUESTION
What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?
### CONTEXT
CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR)
### ANSWER
SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1
|
{
"answer": "SELECT MIN(apps) FROM table_name_79 WHERE country = \"honduras\" AND goals < 2 AND team = \"club deportivo victoria\" AND division > 1",
"context": "CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR)",
"question": "What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?"
}
|
### QUESTION
What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?
### CONTEXT
CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)
### ANSWER
SELECT date FROM table_name_81 WHERE fastest_lap = "james winslow" AND race = 1 AND winning_driver = "leanne tander"
|
{
"answer": "SELECT date FROM table_name_81 WHERE fastest_lap = \"james winslow\" AND race = 1 AND winning_driver = \"leanne tander\"",
"context": "CREATE TABLE table_name_81 (date VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR, race VARCHAR)",
"question": "What is Date, when Fastest Lap is James Winslow, when Race is 1, and when Winning Driver is Leanne Tander?"
}
|
### QUESTION
Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?
### CONTEXT
CREATE TABLE table_name_86 (manufacturer VARCHAR, laps VARCHAR, rider VARCHAR)
### ANSWER
SELECT manufacturer FROM table_name_86 WHERE laps < 9 AND rider = "dani pedrosa"
|
{
"answer": "SELECT manufacturer FROM table_name_86 WHERE laps < 9 AND rider = \"dani pedrosa\"",
"context": "CREATE TABLE table_name_86 (manufacturer VARCHAR, laps VARCHAR, rider VARCHAR)",
"question": "Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?"
}
|
### QUESTION
What is the highest enrollment for rochester community school?
### CONTEXT
CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR)
### ANSWER
SELECT MAX(enrollment) FROM table_name_66 WHERE school = "rochester community"
|
{
"answer": "SELECT MAX(enrollment) FROM table_name_66 WHERE school = \"rochester community\"",
"context": "CREATE TABLE table_name_66 (enrollment INTEGER, school VARCHAR)",
"question": "What is the highest enrollment for rochester community school?"
}
|
### QUESTION
How many viewers did the episode directed by David Nutter draw in?
### CONTEXT
CREATE TABLE table_14929574_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
### ANSWER
SELECT us_viewers__million_ FROM table_14929574_3 WHERE directed_by = "David Nutter"
|
{
"answer": "SELECT us_viewers__million_ FROM table_14929574_3 WHERE directed_by = \"David Nutter\"",
"context": "CREATE TABLE table_14929574_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR)",
"question": "How many viewers did the episode directed by David Nutter draw in?"
}
|
### QUESTION
How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America?
### CONTEXT
CREATE TABLE table_name_71 (countries_sampled INTEGER, ranking_in_latin_america__2_ VARCHAR, year_of_publication VARCHAR, world_ranking__1_ VARCHAR)
### ANSWER
SELECT SUM(countries_sampled) FROM table_name_71 WHERE year_of_publication = "2010" AND world_ranking__1_ = "33" AND ranking_in_latin_america__2_ < 3
|
{
"answer": "SELECT SUM(countries_sampled) FROM table_name_71 WHERE year_of_publication = \"2010\" AND world_ranking__1_ = \"33\" AND ranking_in_latin_america__2_ < 3",
"context": "CREATE TABLE table_name_71 (countries_sampled INTEGER, ranking_in_latin_america__2_ VARCHAR, year_of_publication VARCHAR, world_ranking__1_ VARCHAR)",
"question": "How many countries sampled has a world ranking of 33 in 2010 and less than 3 ranking in Latin America?"
}
|
### QUESTION
What were the former schools of the player from East Brunswick, NJ?
### CONTEXT
CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR)
### ANSWER
SELECT former_school FROM table_25177625_1 WHERE hometown = "East Brunswick, NJ"
|
{
"answer": "SELECT former_school FROM table_25177625_1 WHERE hometown = \"East Brunswick, NJ\"",
"context": "CREATE TABLE table_25177625_1 (former_school VARCHAR, hometown VARCHAR)",
"question": "What were the former schools of the player from East Brunswick, NJ?"
}
|
### QUESTION
How many of the writers had 5.35 viewers?
### CONTEXT
CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
### ANSWER
SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35"
|
{
"answer": "SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = \"5.35\"",
"context": "CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)",
"question": "How many of the writers had 5.35 viewers?"
}
|
### QUESTION
How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?
### CONTEXT
CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Rylan" AND T2.last_name = "Goodwin" AND T1.lesson_status_code = "Completed"
|
{
"answer": "SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = \"Rylan\" AND T2.last_name = \"Goodwin\" AND T1.lesson_status_code = \"Completed\"",
"context": "CREATE TABLE Lessons (customer_id VARCHAR, lesson_status_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR)",
"question": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?"
}
|
### QUESTION
What is the all-time rank associated with a rank less than 9 and a debut in 1994?
### CONTEXT
CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR)
### ANSWER
SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994
|
{
"answer": "SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994",
"context": "CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR)",
"question": "What is the all-time rank associated with a rank less than 9 and a debut in 1994?"
}
|
### QUESTION
What is the to par of the player from the United States with a t5 place?
### CONTEXT
CREATE TABLE table_name_38 (to_par VARCHAR, country VARCHAR, place VARCHAR)
### ANSWER
SELECT to_par FROM table_name_38 WHERE country = "united states" AND place = "t5"
|
{
"answer": "SELECT to_par FROM table_name_38 WHERE country = \"united states\" AND place = \"t5\"",
"context": "CREATE TABLE table_name_38 (to_par VARCHAR, country VARCHAR, place VARCHAR)",
"question": "What is the to par of the player from the United States with a t5 place?"
}
|
### QUESTION
What was the tournament that was on july 6, 1987?
### CONTEXT
CREATE TABLE table_name_55 (tournament VARCHAR, date VARCHAR)
### ANSWER
SELECT tournament FROM table_name_55 WHERE date = "july 6, 1987"
|
{
"answer": "SELECT tournament FROM table_name_55 WHERE date = \"july 6, 1987\"",
"context": "CREATE TABLE table_name_55 (tournament VARCHAR, date VARCHAR)",
"question": "What was the tournament that was on july 6, 1987?"
}
|
### QUESTION
Find products with max page size as "A4" and pages per minute color smaller than 5.
### CONTEXT
CREATE TABLE product (product VARCHAR, max_page_size VARCHAR, pages_per_minute_color VARCHAR)
### ANSWER
SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5
|
{
"answer": "SELECT product FROM product WHERE max_page_size = \"A4\" AND pages_per_minute_color < 5",
"context": "CREATE TABLE product (product VARCHAR, max_page_size VARCHAR, pages_per_minute_color VARCHAR)",
"question": "Find products with max page size as \"A4\" and pages per minute color smaller than 5."
}
|
### QUESTION
If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?
### CONTEXT
CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)
### ANSWER
SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "Munu Adhi (2) K. Rajaram"
|
{
"answer": "SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = \"Munu Adhi (2) K. Rajaram\"",
"context": "CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)",
"question": "If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?"
}
|
### QUESTION
What is the name of the city/municipality if the population is 1,388.88?
### CONTEXT
CREATE TABLE table_232458_1 (city___municipality VARCHAR, pop_density__per_km²_ VARCHAR)
### ANSWER
SELECT city___municipality FROM table_232458_1 WHERE pop_density__per_km²_ = "1,388.88"
|
{
"answer": "SELECT city___municipality FROM table_232458_1 WHERE pop_density__per_km²_ = \"1,388.88\"",
"context": "CREATE TABLE table_232458_1 (city___municipality VARCHAR, pop_density__per_km²_ VARCHAR)",
"question": "What is the name of the city/municipality if the population is 1,388.88?"
}
|
### QUESTION
In what round was the loss at ufc 118?
### CONTEXT
CREATE TABLE table_name_92 (round VARCHAR, res VARCHAR, event VARCHAR)
### ANSWER
SELECT round FROM table_name_92 WHERE res = "loss" AND event = "ufc 118"
|
{
"answer": "SELECT round FROM table_name_92 WHERE res = \"loss\" AND event = \"ufc 118\"",
"context": "CREATE TABLE table_name_92 (round VARCHAR, res VARCHAR, event VARCHAR)",
"question": "In what round was the loss at ufc 118?"
}
|
### QUESTION
What is the name of the winner when the Score was 274 (–14) in tennessee?
### CONTEXT
CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR)
### ANSWER
SELECT winner FROM table_name_40 WHERE score = "274 (–14)" AND location = "tennessee"
|
{
"answer": "SELECT winner FROM table_name_40 WHERE score = \"274 (–14)\" AND location = \"tennessee\"",
"context": "CREATE TABLE table_name_40 (winner VARCHAR, score VARCHAR, location VARCHAR)",
"question": "What is the name of the winner when the Score was 274 (–14) in tennessee?"
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.