text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
What day was the total smaller than 19 at Venue of anz stadium?
### CONTEXT
CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR)
### ANSWER
SELECT date FROM table_name_42 WHERE total < 19 AND venue = "anz stadium" | {
"answer": "SELECT date FROM table_name_42 WHERE total < 19 AND venue = \"anz stadium\"",
"context": "CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR)",
"question": "What day was the total smaller than 19 at Venue of anz stadium?"
} |
### QUESTION
What are the names of nations where both English and French are official languages?
### CONTEXT
CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)
### ANSWER
SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" AND T2.IsOfficial = "T" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French" AND T2.IsOfficial = "T" | {
"answer": "SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" AND T2.IsOfficial = \"T\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"French\" AND T2.IsOfficial = \"T\"",
"context": "CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR, IsOfficial VARCHAR); CREATE TABLE country (Name VARCHAR, Code VARCHAR)",
"question": "What are the names of nations where both English and French are official languages?"
} |
### QUESTION
What is total number of years that has genre of first-person shooter?
### CONTEXT
CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR)
### ANSWER
SELECT SUM(year) FROM table_name_50 WHERE genre = "first-person shooter" | {
"answer": "SELECT SUM(year) FROM table_name_50 WHERE genre = \"first-person shooter\"",
"context": "CREATE TABLE table_name_50 (year INTEGER, genre VARCHAR)",
"question": "What is total number of years that has genre of first-person shooter?"
} |
### QUESTION
What is the Week of the game against Seattle Seahawks?
### CONTEXT
CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR)
### ANSWER
SELECT AVG(week) FROM table_name_30 WHERE opponent = "seattle seahawks" | {
"answer": "SELECT AVG(week) FROM table_name_30 WHERE opponent = \"seattle seahawks\"",
"context": "CREATE TABLE table_name_30 (week INTEGER, opponent VARCHAR)",
"question": "What is the Week of the game against Seattle Seahawks?"
} |
### QUESTION
What is the church name for the church located in Kyrkjebø?
### CONTEXT
CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)
### ANSWER
SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Kyrkjebø" | {
"answer": "SELECT church_name FROM table_178389_1 WHERE location_of_the_church = \"Kyrkjebø\"",
"context": "CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)",
"question": "What is the church name for the church located in Kyrkjebø?"
} |
### QUESTION
Show the names of products that are in at least two events.
### CONTEXT
CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)
### ANSWER
SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 | {
"answer": "SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2",
"context": "CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)",
"question": "Show the names of products that are in at least two events."
} |
### QUESTION
Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?
### CONTEXT
CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)
### ANSWER
SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = "2010" AND model = "de40lfr" | {
"answer": "SELECT fleet_series__quantity_ FROM table_name_60 WHERE order_year = \"2010\" AND model = \"de40lfr\"",
"context": "CREATE TABLE table_name_60 (fleet_series__quantity_ VARCHAR, order_year VARCHAR, model VARCHAR)",
"question": "Which Fleet Series (Quantity) has an Order Year of 2010, and a Model of de40lfr?"
} |
### QUESTION
What was the attendance number for the venue of Lakeside Park?
### CONTEXT
CREATE TABLE table_name_37 (attendance VARCHAR, venue VARCHAR)
### ANSWER
SELECT attendance FROM table_name_37 WHERE venue = "lakeside park" | {
"answer": "SELECT attendance FROM table_name_37 WHERE venue = \"lakeside park\"",
"context": "CREATE TABLE table_name_37 (attendance VARCHAR, venue VARCHAR)",
"question": "What was the attendance number for the venue of Lakeside Park?"
} |
### QUESTION
What is the average Attendance, when Visitor is Toronto?
### CONTEXT
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR)
### ANSWER
SELECT AVG(attendance) FROM table_name_71 WHERE visitor = "toronto" | {
"answer": "SELECT AVG(attendance) FROM table_name_71 WHERE visitor = \"toronto\"",
"context": "CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR)",
"question": "What is the average Attendance, when Visitor is Toronto?"
} |
### QUESTION
How many nations do the FMS international team represent?
### CONTEXT
CREATE TABLE table_19312274_3 (nation VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(nation) FROM table_19312274_3 WHERE name = "FMS International" | {
"answer": "SELECT COUNT(nation) FROM table_19312274_3 WHERE name = \"FMS International\"",
"context": "CREATE TABLE table_19312274_3 (nation VARCHAR, name VARCHAR)",
"question": "How many nations do the FMS international team represent?"
} |
### QUESTION
What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?
### CONTEXT
CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR)
### ANSWER
SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你" | {
"answer": "SELECT round FROM table_name_18 WHERE song = \"陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你\"",
"context": "CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR)",
"question": "What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你?"
} |
### QUESTION
Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?
### CONTEXT
CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR)
### ANSWER
SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = "maranhão" | {
"answer": "SELECT literacy__2003_ FROM table_name_8 WHERE hdi__2005_ < 0.718 AND gdp_per_capita__us$___2004_ < 3877 AND state = \"maranhão\"",
"context": "CREATE TABLE table_name_8 (literacy__2003_ VARCHAR, state VARCHAR, hdi__2005_ VARCHAR, gdp_per_capita__us$___2004_ VARCHAR)",
"question": "Which Literacy (2003) has an HDI (2005) smaller than 0.718, and a GDP per capita (US$) (2004) smaller than 3877, and a State of maranhão?"
} |
### QUESTION
Who is the director of the original title perl oder pica?
### CONTEXT
CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)
### ANSWER
SELECT director FROM table_22073745_1 WHERE original_title = "Perl oder Pica" | {
"answer": "SELECT director FROM table_22073745_1 WHERE original_title = \"Perl oder Pica\"",
"context": "CREATE TABLE table_22073745_1 (director VARCHAR, original_title VARCHAR)",
"question": "Who is the director of the original title perl oder pica?"
} |
### QUESTION
what game had a score of 86-71
### CONTEXT
CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)
### ANSWER
SELECT attendance FROM table_name_8 WHERE record = "86-71" | {
"answer": "SELECT attendance FROM table_name_8 WHERE record = \"86-71\"",
"context": "CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)",
"question": "what game had a score of 86-71"
} |
### QUESTION
What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?
### CONTEXT
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR)
### ANSWER
SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2 | {
"answer": "SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2",
"context": "CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR)",
"question": "What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?"
} |
### QUESTION
Find the texts of assessment notes for teachers with last name "Schuster".
### CONTEXT
CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)
### ANSWER
SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schuster" | {
"answer": "SELECT T1.text_of_notes FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = \"Schuster\"",
"context": "CREATE TABLE Assessment_Notes (text_of_notes VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)",
"question": "Find the texts of assessment notes for teachers with last name \"Schuster\"."
} |
### QUESTION
Name the metrical equivalence for linha
### CONTEXT
CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR)
### ANSWER
SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = "Linha" | {
"answer": "SELECT metrical_equivalence FROM table_26538461_2 WHERE portuguese_name = \"Linha\"",
"context": "CREATE TABLE table_26538461_2 (metrical_equivalence VARCHAR, portuguese_name VARCHAR)",
"question": "Name the metrical equivalence for linha"
} |
### QUESTION
What team has Carlos Sánchez as a goalkeeper and an average below 1.12?
### CONTEXT
CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)
### ANSWER
SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = "carlos sánchez" | {
"answer": "SELECT team FROM table_name_64 WHERE average < 1.12 AND goalkeeper = \"carlos sánchez\"",
"context": "CREATE TABLE table_name_64 (team VARCHAR, average VARCHAR, goalkeeper VARCHAR)",
"question": "What team has Carlos Sánchez as a goalkeeper and an average below 1.12?"
} |
### QUESTION
What are the papers published under the institution "Indiana University"?
### CONTEXT
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
### ANSWER
SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Indiana University" | {
"answer": "SELECT DISTINCT t1.title FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Indiana University\"",
"context": "CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)",
"question": "What are the papers published under the institution \"Indiana University\"?"
} |
### QUESTION
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?
### CONTEXT
CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
### ANSWER
SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong" | {
"answer": "SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = \"hong kong\"",
"context": "CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)",
"question": "Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?"
} |
### QUESTION
Show names of teachers that teach at least two courses.
### CONTEXT
CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)
### ANSWER
SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2 | {
"answer": "SELECT T2.Name FROM course_arrange AS T1 JOIN teacher AS T2 ON T1.Teacher_ID = T2.Teacher_ID GROUP BY T2.Name HAVING COUNT(*) >= 2",
"context": "CREATE TABLE teacher (Name VARCHAR, Teacher_ID VARCHAR); CREATE TABLE course_arrange (Teacher_ID VARCHAR)",
"question": "Show names of teachers that teach at least two courses."
} |
### QUESTION
What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloemfontein"?
### CONTEXT
CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)
### ANSWER
SELECT date FROM table_name_22 WHERE opposing_teams = "south africa" AND venue = "vodacom park , bloemfontein" | {
"answer": "SELECT date FROM table_name_22 WHERE opposing_teams = \"south africa\" AND venue = \"vodacom park , bloemfontein\"",
"context": "CREATE TABLE table_name_22 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)",
"question": "What is Date, when Opposing Teams is \"South Africa\", and when Venus is \"Vodacom Park , Bloemfontein\"?"
} |
### QUESTION
What is the fewest number of occ championships for the team that last won an outright occ championship in 2006?
### CONTEXT
CREATE TABLE table_17429402_7 (occ_championships INTEGER, last_outright_occ_championship VARCHAR)
### ANSWER
SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = "2006" | {
"answer": "SELECT MIN(occ_championships) FROM table_17429402_7 WHERE last_outright_occ_championship = \"2006\"",
"context": "CREATE TABLE table_17429402_7 (occ_championships INTEGER, last_outright_occ_championship VARCHAR)",
"question": "What is the fewest number of occ championships for the team that last won an outright occ championship in 2006?"
} |
### QUESTION
What is the lowest Against, when Venue is "Twickenham , London", when Status is "Six Nations", and when Opposing Teams is "France"?
### CONTEXT
CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
### ANSWER
SELECT MIN(against) FROM table_name_78 WHERE venue = "twickenham , london" AND status = "six nations" AND opposing_teams = "france" | {
"answer": "SELECT MIN(against) FROM table_name_78 WHERE venue = \"twickenham , london\" AND status = \"six nations\" AND opposing_teams = \"france\"",
"context": "CREATE TABLE table_name_78 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)",
"question": "What is the lowest Against, when Venue is \"Twickenham , London\", when Status is \"Six Nations\", and when Opposing Teams is \"France\"?"
} |
### QUESTION
If the area is 34.73, what is the census ranking?
### CONTEXT
CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR)
### ANSWER
SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = "34.73" | {
"answer": "SELECT census_ranking FROM table_171236_1 WHERE area_km_2 = \"34.73\"",
"context": "CREATE TABLE table_171236_1 (census_ranking VARCHAR, area_km_2 VARCHAR)",
"question": "If the area is 34.73, what is the census ranking?"
} |
### QUESTION
What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?
### CONTEXT
CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### ANSWER
SELECT date FROM table_name_36 WHERE margin_of_victory = "playoff" AND tournament = "shirley englehorn invitational" | {
"answer": "SELECT date FROM table_name_36 WHERE margin_of_victory = \"playoff\" AND tournament = \"shirley englehorn invitational\"",
"context": "CREATE TABLE table_name_36 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"question": "What date was there a playoff on the margin of victory during the Shirley Englehorn Invitational?"
} |
### QUESTION
Whats the season/episode of segment a digital dentistry
### CONTEXT
CREATE TABLE table_15187735_16 (netflix VARCHAR, segment_a VARCHAR)
### ANSWER
SELECT netflix FROM table_15187735_16 WHERE segment_a = "Digital Dentistry" | {
"answer": "SELECT netflix FROM table_15187735_16 WHERE segment_a = \"Digital Dentistry\"",
"context": "CREATE TABLE table_15187735_16 (netflix VARCHAR, segment_a VARCHAR)",
"question": "Whats the season/episode of segment a digital dentistry"
} |
### QUESTION
What is the top goal for the result of 2–3?
### CONTEXT
CREATE TABLE table_name_39 (goal INTEGER, result VARCHAR)
### ANSWER
SELECT MAX(goal) FROM table_name_39 WHERE result = "2–3" | {
"answer": "SELECT MAX(goal) FROM table_name_39 WHERE result = \"2–3\"",
"context": "CREATE TABLE table_name_39 (goal INTEGER, result VARCHAR)",
"question": "What is the top goal for the result of 2–3?"
} |
### QUESTION
How many losses did the club with 22 played and 334 points against have?
### CONTEXT
CREATE TABLE table_name_1 (lost VARCHAR, played VARCHAR, points_against VARCHAR)
### ANSWER
SELECT lost FROM table_name_1 WHERE played = "22" AND points_against = "334" | {
"answer": "SELECT lost FROM table_name_1 WHERE played = \"22\" AND points_against = \"334\"",
"context": "CREATE TABLE table_name_1 (lost VARCHAR, played VARCHAR, points_against VARCHAR)",
"question": "How many losses did the club with 22 played and 334 points against have?"
} |
### QUESTION
Find out the first name and last name of staff lived in city Damianfort.
### CONTEXT
CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
### ANSWER
SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort" | {
"answer": "SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = \"Damianfort\"",
"context": "CREATE TABLE Staff (first_name VARCHAR, last_name VARCHAR, staff_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)",
"question": "Find out the first name and last name of staff lived in city Damianfort."
} |
### QUESTION
What is the 2003 value with 1r in 2009 at the Australian Open?
### CONTEXT
CREATE TABLE table_name_16 (tournament VARCHAR)
### ANSWER
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open" | {
"answer": "SELECT 2003 FROM table_name_16 WHERE 2009 = \"1r\" AND tournament = \"australian open\"",
"context": "CREATE TABLE table_name_16 (tournament VARCHAR)",
"question": "What is the 2003 value with 1r in 2009 at the Australian Open?"
} |
### QUESTION
Which Staying councillors have a New council of 7, and a Previous council larger than 8?
### CONTEXT
CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR)
### ANSWER
SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8 | {
"answer": "SELECT AVG(staying_councillors) FROM table_name_22 WHERE new_council = 7 AND previous_council > 8",
"context": "CREATE TABLE table_name_22 (staying_councillors INTEGER, new_council VARCHAR, previous_council VARCHAR)",
"question": "Which Staying councillors have a New council of 7, and a Previous council larger than 8?"
} |
### QUESTION
How many schools named southern new hampshire university?
### CONTEXT
CREATE TABLE table_1969634_1 (enrollment VARCHAR, institution VARCHAR)
### ANSWER
SELECT COUNT(enrollment) FROM table_1969634_1 WHERE institution = "Southern New Hampshire University" | {
"answer": "SELECT COUNT(enrollment) FROM table_1969634_1 WHERE institution = \"Southern New Hampshire University\"",
"context": "CREATE TABLE table_1969634_1 (enrollment VARCHAR, institution VARCHAR)",
"question": "How many schools named southern new hampshire university?"
} |
### QUESTION
On what Date was Patty Sheehan Runner(s)-up?
### CONTEXT
CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)
### ANSWER
SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan" | {
"answer": "SELECT date FROM table_name_62 WHERE runner_s__up = \"patty sheehan\"",
"context": "CREATE TABLE table_name_62 (date VARCHAR, runner_s__up VARCHAR)",
"question": "On what Date was Patty Sheehan Runner(s)-up?"
} |
### QUESTION
Which college/junior/club teams nationality is canada and nhl team is minnesota north stars
### CONTEXT
CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)
### ANSWER
SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars" | {
"answer": "SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = \"Canada\" AND nhl_team = \"Minnesota North Stars\"",
"context": "CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR)",
"question": "Which college/junior/club teams nationality is canada and nhl team is minnesota north stars"
} |
### QUESTION
Name the year for sammo hung for ip man 2
### CONTEXT
CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)
### ANSWER
SELECT year FROM table_15301258_1 WHERE best_supporting_actor = "Sammo Hung for Ip Man 2" | {
"answer": "SELECT year FROM table_15301258_1 WHERE best_supporting_actor = \"Sammo Hung for Ip Man 2\"",
"context": "CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)",
"question": "Name the year for sammo hung for ip man 2"
} |
### QUESTION
How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?
### CONTEXT
CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)
### ANSWER
SELECT COUNT(attendance) FROM table_name_98 WHERE home = "penguins" AND record = "14–19–6" AND points < 34 | {
"answer": "SELECT COUNT(attendance) FROM table_name_98 WHERE home = \"penguins\" AND record = \"14–19–6\" AND points < 34",
"context": "CREATE TABLE table_name_98 (attendance VARCHAR, points VARCHAR, home VARCHAR, record VARCHAR)",
"question": "How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?"
} |
### QUESTION
How many part 6 parts are there in the episode number 5?
### CONTEXT
CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)
### ANSWER
SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5 | {
"answer": "SELECT COUNT(part_6) FROM table_13241993_3 WHERE episode__number = 5",
"context": "CREATE TABLE table_13241993_3 (part_6 VARCHAR, episode__number VARCHAR)",
"question": "How many part 6 parts are there in the episode number 5?"
} |
### QUESTION
Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?
### CONTEXT
CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR)
### ANSWER
SELECT director FROM table_name_99 WHERE title = "wallace & gromit: the curse of the were-rabbit" | {
"answer": "SELECT director FROM table_name_99 WHERE title = \"wallace & gromit: the curse of the were-rabbit\"",
"context": "CREATE TABLE table_name_99 (director VARCHAR, title VARCHAR)",
"question": "Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?"
} |
### QUESTION
Where was the attendance more than 57,347?
### CONTEXT
CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER)
### ANSWER
SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347 | {
"answer": "SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347",
"context": "CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER)",
"question": "Where was the attendance more than 57,347?"
} |
### QUESTION
What is Norikazu Murakami's total?
### CONTEXT
CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)
### ANSWER
SELECT total FROM table_name_41 WHERE name = "norikazu murakami" | {
"answer": "SELECT total FROM table_name_41 WHERE name = \"norikazu murakami\"",
"context": "CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)",
"question": "What is Norikazu Murakami's total?"
} |
### QUESTION
What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?
### CONTEXT
CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
### ANSWER
SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2" | {
"answer": "SELECT japanese_title FROM table_name_42 WHERE tv_station = \"ntv\" AND romaji_title = \"kuitan 2\"",
"context": "CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)",
"question": "What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?"
} |
### QUESTION
I want the lowest Gold for silver being 2 and electronic sports
### CONTEXT
CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)
### ANSWER
SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = "electronic sports" | {
"answer": "SELECT MIN(gold) FROM table_name_98 WHERE silver = 2 AND sport = \"electronic sports\"",
"context": "CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, sport VARCHAR)",
"question": "I want the lowest Gold for silver being 2 and electronic sports"
} |
### QUESTION
Return the names of all counties sorted by population in ascending order.
### CONTEXT
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
### ANSWER
SELECT County_name FROM county ORDER BY Population | {
"answer": "SELECT County_name FROM county ORDER BY Population",
"context": "CREATE TABLE county (County_name VARCHAR, Population VARCHAR)",
"question": "Return the names of all counties sorted by population in ascending order."
} |
### QUESTION
How many events did clay win?
### CONTEXT
CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR)
### ANSWER
SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = "clay" | {
"answer": "SELECT NOT COUNT AS event FROM table_name_42 WHERE winner = \"clay\"",
"context": "CREATE TABLE table_name_42 (COUNT VARCHAR, winner VARCHAR)",
"question": "How many events did clay win?"
} |
### QUESTION
What height was the player that played for the Rockets between 1992-93?
### CONTEXT
CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
### ANSWER
SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = "1992-93" | {
"answer": "SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = \"1992-93\"",
"context": "CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR)",
"question": "What height was the player that played for the Rockets between 1992-93?"
} |
### QUESTION
Who built the car that has a Time/Retired of 1:34:12.912?
### CONTEXT
CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR)
### ANSWER
SELECT constructor FROM table_name_88 WHERE time_retired = "1:34:12.912" | {
"answer": "SELECT constructor FROM table_name_88 WHERE time_retired = \"1:34:12.912\"",
"context": "CREATE TABLE table_name_88 (constructor VARCHAR, time_retired VARCHAR)",
"question": "Who built the car that has a Time/Retired of 1:34:12.912?"
} |
### QUESTION
What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283?
### CONTEXT
CREATE TABLE table_name_91 (most_spoken_language VARCHAR, population VARCHAR, code VARCHAR, area__km_2__ VARCHAR)
### ANSWER
SELECT most_spoken_language FROM table_name_91 WHERE code > 70403 AND area__km_2__ > 3.79 AND population > 73 OFFSET 283 | {
"answer": "SELECT most_spoken_language FROM table_name_91 WHERE code > 70403 AND area__km_2__ > 3.79 AND population > 73 OFFSET 283",
"context": "CREATE TABLE table_name_91 (most_spoken_language VARCHAR, population VARCHAR, code VARCHAR, area__km_2__ VARCHAR)",
"question": "What is the Most Spoken language in the Place with Code 70403 with an Area (km 2) larger than 3.79 and a Population larger than 73,283?"
} |
### QUESTION
What is the least obesity rank for the state of Utah?
### CONTEXT
CREATE TABLE table_18958648_1 (obesity_rank INTEGER, state_and_district_of_columbia VARCHAR)
### ANSWER
SELECT MIN(obesity_rank) FROM table_18958648_1 WHERE state_and_district_of_columbia = "Utah" | {
"answer": "SELECT MIN(obesity_rank) FROM table_18958648_1 WHERE state_and_district_of_columbia = \"Utah\"",
"context": "CREATE TABLE table_18958648_1 (obesity_rank INTEGER, state_and_district_of_columbia VARCHAR)",
"question": "What is the least obesity rank for the state of Utah?"
} |
### QUESTION
Which long version was remixed in 1986?
### CONTEXT
CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)
### ANSWER
SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "long version" | {
"answer": "SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = \"long version\"",
"context": "CREATE TABLE table_name_51 (remixed_by VARCHAR, year VARCHAR, version VARCHAR)",
"question": "Which long version was remixed in 1986?"
} |
### QUESTION
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?
### CONTEXT
CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)
### ANSWER
SELECT SUM(high_estimate) FROM table_name_51 WHERE type = "mass suicide" AND location = "france" AND low_estimate > 16 | {
"answer": "SELECT SUM(high_estimate) FROM table_name_51 WHERE type = \"mass suicide\" AND location = \"france\" AND low_estimate > 16",
"context": "CREATE TABLE table_name_51 (high_estimate INTEGER, low_estimate VARCHAR, type VARCHAR, location VARCHAR)",
"question": "With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number?"
} |
### QUESTION
Show all document ids, names and the number of paragraphs in each document.
### CONTEXT
CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)
### ANSWER
SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id | {
"answer": "SELECT T1.document_id, T2.document_name, COUNT(*) FROM Paragraphs AS T1 JOIN Documents AS T2 ON T1.document_id = T2.document_id GROUP BY T1.document_id",
"context": "CREATE TABLE Documents (document_name VARCHAR, document_id VARCHAR); CREATE TABLE Paragraphs (document_id VARCHAR)",
"question": "Show all document ids, names and the number of paragraphs in each document."
} |
### QUESTION
When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?
### CONTEXT
CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)
### ANSWER
SELECT MAX(year) FROM table_name_95 WHERE playoffs = "did not qualify" AND open_cup = "2nd round" | {
"answer": "SELECT MAX(year) FROM table_name_95 WHERE playoffs = \"did not qualify\" AND open_cup = \"2nd round\"",
"context": "CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)",
"question": "When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?"
} |
### QUESTION
What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?
### CONTEXT
CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)
### ANSWER
SELECT SUM(points) FROM table_name_84 WHERE home = "pittsburgh" AND date = "december 21" AND attendance > 5 OFFSET 307 | {
"answer": "SELECT SUM(points) FROM table_name_84 WHERE home = \"pittsburgh\" AND date = \"december 21\" AND attendance > 5 OFFSET 307",
"context": "CREATE TABLE table_name_84 (points INTEGER, attendance VARCHAR, home VARCHAR, date VARCHAR)",
"question": "What is the sum of Points, when Home is \"Pittsburgh\", when Date is \"December 21\", and when Attendance is greater than 5,307?"
} |
### QUESTION
How many churches have a wedding in year 2016?
### CONTEXT
CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016 | {
"answer": "SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016",
"context": "CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)",
"question": "How many churches have a wedding in year 2016?"
} |
### QUESTION
What was the winning score of the PGA Championship (3)?
### CONTEXT
CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)
### ANSWER
SELECT winning_score FROM table_13026799_1 WHERE championship = "PGA championship (3)" | {
"answer": "SELECT winning_score FROM table_13026799_1 WHERE championship = \"PGA championship (3)\"",
"context": "CREATE TABLE table_13026799_1 (winning_score VARCHAR, championship VARCHAR)",
"question": "What was the winning score of the PGA Championship (3)?"
} |
### QUESTION
What Car Model has the Manufacturer of Saab, and Driver Dean Randle?
### CONTEXT
CREATE TABLE table_name_35 (car_model VARCHAR, manufacturer VARCHAR, driver VARCHAR)
### ANSWER
SELECT car_model FROM table_name_35 WHERE manufacturer = "saab" AND driver = "dean randle" | {
"answer": "SELECT car_model FROM table_name_35 WHERE manufacturer = \"saab\" AND driver = \"dean randle\"",
"context": "CREATE TABLE table_name_35 (car_model VARCHAR, manufacturer VARCHAR, driver VARCHAR)",
"question": "What Car Model has the Manufacturer of Saab, and Driver Dean Randle?"
} |
### QUESTION
what city has a game of friendly and an opponent of tunisia?
### CONTEXT
CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)
### ANSWER
SELECT city FROM table_name_42 WHERE type_of_game = "friendly" AND opponent = "tunisia" | {
"answer": "SELECT city FROM table_name_42 WHERE type_of_game = \"friendly\" AND opponent = \"tunisia\"",
"context": "CREATE TABLE table_name_42 (city VARCHAR, type_of_game VARCHAR, opponent VARCHAR)",
"question": "what city has a game of friendly and an opponent of tunisia?"
} |
### QUESTION
What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?
### CONTEXT
CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR)
### ANSWER
SELECT place_of_birth FROM table_name_65 WHERE elevator = "lucius iii" AND cardinalatial_title = "deacon of s. giorgio in velabro" | {
"answer": "SELECT place_of_birth FROM table_name_65 WHERE elevator = \"lucius iii\" AND cardinalatial_title = \"deacon of s. giorgio in velabro\"",
"context": "CREATE TABLE table_name_65 (place_of_birth VARCHAR, elevator VARCHAR, cardinalatial_title VARCHAR)",
"question": "What is the birth place for someone elevated by Lucius III, and has the Cardinalatial title of Deacon of S. Giorgio in Velabro?"
} |
### QUESTION
How many players are from Sioux City, Iowa?
### CONTEXT
CREATE TABLE table_14342367_13 (player VARCHAR, hometown VARCHAR)
### ANSWER
SELECT COUNT(player) FROM table_14342367_13 WHERE hometown = "Sioux City, Iowa" | {
"answer": "SELECT COUNT(player) FROM table_14342367_13 WHERE hometown = \"Sioux City, Iowa\"",
"context": "CREATE TABLE table_14342367_13 (player VARCHAR, hometown VARCHAR)",
"question": "How many players are from Sioux City, Iowa?"
} |
### QUESTION
Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000.
### CONTEXT
CREATE TABLE pilot (POSITION VARCHAR, Join_Year INTEGER)
### ANSWER
SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005 | {
"answer": "SELECT POSITION FROM pilot WHERE Join_Year < 2000 INTERSECT SELECT POSITION FROM pilot WHERE Join_Year > 2005",
"context": "CREATE TABLE pilot (POSITION VARCHAR, Join_Year INTEGER)",
"question": "Show the pilot positions that have both pilots joining after year 2005 and pilots joining before 2000."
} |
### QUESTION
What is the average sales for the company with market value of 204.9bil and profits under 20.6bil?
### CONTEXT
CREATE TABLE table_name_18 (sales__billion_ INTEGER, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)
### ANSWER
SELECT AVG(sales__billion_) AS $_ FROM table_name_18 WHERE market_value__billion_$_ = 204.9 AND profits__billion_$_ < 20.6 | {
"answer": "SELECT AVG(sales__billion_) AS $_ FROM table_name_18 WHERE market_value__billion_$_ = 204.9 AND profits__billion_$_ < 20.6",
"context": "CREATE TABLE table_name_18 (sales__billion_ INTEGER, market_value__billion_$_ VARCHAR, profits__billion_$_ VARCHAR)",
"question": "What is the average sales for the company with market value of 204.9bil and profits under 20.6bil?"
} |
### QUESTION
Who was the composer of ain shams?
### CONTEXT
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR)
### ANSWER
SELECT composer FROM table_28005100_1 WHERE title = "Ain Shams" | {
"answer": "SELECT composer FROM table_28005100_1 WHERE title = \"Ain Shams\"",
"context": "CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR)",
"question": "Who was the composer of ain shams?"
} |
### QUESTION
What is the lowest total when the rank is 14 and the gold medals is larger than 0?
### CONTEXT
CREATE TABLE table_name_34 (total INTEGER, rank VARCHAR, gold VARCHAR)
### ANSWER
SELECT MIN(total) FROM table_name_34 WHERE rank = "14" AND gold > 0 | {
"answer": "SELECT MIN(total) FROM table_name_34 WHERE rank = \"14\" AND gold > 0",
"context": "CREATE TABLE table_name_34 (total INTEGER, rank VARCHAR, gold VARCHAR)",
"question": "What is the lowest total when the rank is 14 and the gold medals is larger than 0?"
} |
### QUESTION
Show the name of cities in the county that has the largest number of police officers.
### CONTEXT
CREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR)
### ANSWER
SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1) | {
"answer": "SELECT name FROM city WHERE county_ID = (SELECT county_ID FROM county_public_safety ORDER BY Police_officers DESC LIMIT 1)",
"context": "CREATE TABLE city (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR); CREATE TABLE county_public_safety (name VARCHAR, county_ID VARCHAR, Police_officers VARCHAR)",
"question": "Show the name of cities in the county that has the largest number of police officers."
} |
### QUESTION
What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%
### CONTEXT
CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR)
### ANSWER
SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = "+15%" | {
"answer": "SELECT international_tourist_arrivals__2010_ FROM table_14752049_2 WHERE change__2010_to_2011_ = \"+15%\"",
"context": "CREATE TABLE table_14752049_2 (international_tourist_arrivals__2010_ VARCHAR, change__2010_to_2011_ VARCHAR)",
"question": "What are the International tourist arrivals (2010) where change from 2010 to 2011 is +15%"
} |
### QUESTION
Which Color commentator has a Channel of fsn new england, and a Year of 2004-05?
### CONTEXT
CREATE TABLE table_name_41 (color_commentator_s_ VARCHAR, channel VARCHAR, year VARCHAR)
### ANSWER
SELECT color_commentator_s_ FROM table_name_41 WHERE channel = "fsn new england" AND year = "2004-05" | {
"answer": "SELECT color_commentator_s_ FROM table_name_41 WHERE channel = \"fsn new england\" AND year = \"2004-05\"",
"context": "CREATE TABLE table_name_41 (color_commentator_s_ VARCHAR, channel VARCHAR, year VARCHAR)",
"question": "Which Color commentator has a Channel of fsn new england, and a Year of 2004-05?"
} |
### QUESTION
How many winning constructor catagories are there when Mark Webber had the fastest lap?
### CONTEXT
CREATE TABLE table_26258348_4 (winning_constructor VARCHAR, fastest_lap VARCHAR)
### ANSWER
SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = "Mark Webber" | {
"answer": "SELECT COUNT(winning_constructor) FROM table_26258348_4 WHERE fastest_lap = \"Mark Webber\"",
"context": "CREATE TABLE table_26258348_4 (winning_constructor VARCHAR, fastest_lap VARCHAR)",
"question": "How many winning constructor catagories are there when Mark Webber had the fastest lap? "
} |
### QUESTION
Which Population (2004) has a Moroccan population larger than 234506?
### CONTEXT
CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)
### ANSWER
SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506 | {
"answer": "SELECT AVG(population__2004_) FROM table_name_38 WHERE moroccan_population > 234506",
"context": "CREATE TABLE table_name_38 (population__2004_ INTEGER, moroccan_population INTEGER)",
"question": "Which Population (2004) has a Moroccan population larger than 234506?"
} |
### QUESTION
The pooulation of јарковац is?
### CONTEXT
CREATE TABLE table_2562572_39 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
### ANSWER
SELECT population__2011_ FROM table_2562572_39 WHERE cyrillic_name_other_names = "Јарковац" | {
"answer": "SELECT population__2011_ FROM table_2562572_39 WHERE cyrillic_name_other_names = \"Јарковац\"",
"context": "CREATE TABLE table_2562572_39 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)",
"question": "The pooulation of јарковац is?"
} |
### QUESTION
What are all the policy types of the customer named "Dayana Robel"?
### CONTEXT
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)
### ANSWER
SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = "Dayana Robel" | {
"answer": "SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = \"Dayana Robel\"",
"context": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)",
"question": "What are all the policy types of the customer named \"Dayana Robel\"?"
} |
### QUESTION
Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?
### CONTEXT
CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)
### ANSWER
SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5 | {
"answer": "SELECT SUM(pocona_municipality___percentage_) FROM table_name_6 WHERE puerto_villarroel_municipality___percentage_ > 14.6 AND pojo_municipality___percentage_ < 88.5",
"context": "CREATE TABLE table_name_6 (pocona_municipality___percentage_ INTEGER, puerto_villarroel_municipality___percentage_ VARCHAR, pojo_municipality___percentage_ VARCHAR)",
"question": "Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?"
} |
### QUESTION
What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?
### CONTEXT
CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
### ANSWER
SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1 | {
"answer": "SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1",
"context": "CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)",
"question": "What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?"
} |
### QUESTION
Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift".
### CONTEXT
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### ANSWER
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift') | {
"answer": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')",
"context": "CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)",
"question": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\"."
} |
### QUESTION
Find the average access counts of documents with functional area "Acknowledgement".
### CONTEXT
CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)
### ANSWER
SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = "Acknowledgement" | {
"answer": "SELECT AVG(t1.access_count) FROM documents AS t1 JOIN document_functional_areas AS t2 ON t1.document_code = t2.document_code JOIN functional_areas AS t3 ON t2.functional_area_code = t3.functional_area_code WHERE t3.functional_area_description = \"Acknowledgement\"",
"context": "CREATE TABLE document_functional_areas (document_code VARCHAR, functional_area_code VARCHAR); CREATE TABLE documents (access_count INTEGER, document_code VARCHAR); CREATE TABLE functional_areas (functional_area_code VARCHAR, functional_area_description VARCHAR)",
"question": "Find the average access counts of documents with functional area \"Acknowledgement\"."
} |
### QUESTION
How much is the total ERP W for an 107.9 fm freqeuncy MHz?
### CONTEXT
CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR)
### ANSWER
SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = "107.9 fm" | {
"answer": "SELECT COUNT(erp_w) FROM table_name_63 WHERE frequency_mhz = \"107.9 fm\"",
"context": "CREATE TABLE table_name_63 (erp_w VARCHAR, frequency_mhz VARCHAR)",
"question": "How much is the total ERP W for an 107.9 fm freqeuncy MHz?"
} |
### QUESTION
Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?
### CONTEXT
CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)
### ANSWER
SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16" | {
"answer": "SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = \"bob anderson\" AND production_code = \"kabf16\"",
"context": "CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR)",
"question": "Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25?"
} |
### QUESTION
On which date was the high assists Delonte West Earl Watson (6)?
### CONTEXT
CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR)
### ANSWER
SELECT date FROM table_name_78 WHERE high_assists = "delonte west earl watson (6)" | {
"answer": "SELECT date FROM table_name_78 WHERE high_assists = \"delonte west earl watson (6)\"",
"context": "CREATE TABLE table_name_78 (date VARCHAR, high_assists VARCHAR)",
"question": "On which date was the high assists Delonte West Earl Watson (6)?"
} |
### QUESTION
What is the Novelty of the dinosaur that was named by the Author, Zhiming, and whose Notes are, "carcharodontosaurid"?
### CONTEXT
CREATE TABLE table_name_46 (novelty VARCHAR, authors VARCHAR, notes VARCHAR)
### ANSWER
SELECT novelty FROM table_name_46 WHERE authors = "zhiming" AND notes = "carcharodontosaurid" | {
"answer": "SELECT novelty FROM table_name_46 WHERE authors = \"zhiming\" AND notes = \"carcharodontosaurid\"",
"context": "CREATE TABLE table_name_46 (novelty VARCHAR, authors VARCHAR, notes VARCHAR)",
"question": "What is the Novelty of the dinosaur that was named by the Author, Zhiming, and whose Notes are, \"carcharodontosaurid\"?"
} |
### QUESTION
what is the date for the week larger than 1 and the opponent detroit lions?
### CONTEXT
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)
### ANSWER
SELECT date FROM table_name_23 WHERE week > 1 AND opponent = "detroit lions" | {
"answer": "SELECT date FROM table_name_23 WHERE week > 1 AND opponent = \"detroit lions\"",
"context": "CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR, opponent VARCHAR)",
"question": "what is the date for the week larger than 1 and the opponent detroit lions?"
} |
### QUESTION
What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?
### CONTEXT
CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR)
### ANSWER
SELECT SUM(goals) FROM table_name_48 WHERE team = "torpedo moscow" AND division = 1 AND apps < 29 | {
"answer": "SELECT SUM(goals) FROM table_name_48 WHERE team = \"torpedo moscow\" AND division = 1 AND apps < 29",
"context": "CREATE TABLE table_name_48 (goals INTEGER, apps VARCHAR, team VARCHAR, division VARCHAR)",
"question": "What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?"
} |
### QUESTION
Name the recognised seats for pharmacology
### CONTEXT
CREATE TABLE table_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)
### ANSWER
SELECT recognised_seats FROM table_19304764_2 WHERE discipline = "Pharmacology" | {
"answer": "SELECT recognised_seats FROM table_19304764_2 WHERE discipline = \"Pharmacology\"",
"context": "CREATE TABLE table_19304764_2 (recognised_seats VARCHAR, discipline VARCHAR)",
"question": "Name the recognised seats for pharmacology"
} |
### QUESTION
What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?
### CONTEXT
CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)
### ANSWER
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate" | {
"answer": "SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = \"Plustek MobileOffice D28 Corporate\"",
"context": "CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)",
"question": "What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?"
} |
### QUESTION
Name the number of poles for stefano livio category:articles with hcards
### CONTEXT
CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(poles) FROM table_19001175_1 WHERE name = "Stefano Livio Category:Articles with hCards" | {
"answer": "SELECT COUNT(poles) FROM table_19001175_1 WHERE name = \"Stefano Livio Category:Articles with hCards\"",
"context": "CREATE TABLE table_19001175_1 (poles VARCHAR, name VARCHAR)",
"question": "Name the number of poles for stefano livio category:articles with hcards"
} |
### QUESTION
What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?
### CONTEXT
CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR)
### ANSWER
SELECT AVG(rank) FROM table_name_19 WHERE headquarters = "toronto, on" AND screens < 1 OFFSET 438 | {
"answer": "SELECT AVG(rank) FROM table_name_19 WHERE headquarters = \"toronto, on\" AND screens < 1 OFFSET 438",
"context": "CREATE TABLE table_name_19 (rank INTEGER, headquarters VARCHAR, screens VARCHAR)",
"question": "What is the rank of the cinema when the headquarters are in toronto, ON and the screens is less than 1,438?"
} |
### QUESTION
what's the district with result being new seat democratic gain
### CONTEXT
CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR)
### ANSWER
SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain" | {
"answer": "SELECT district FROM table_1341604_10 WHERE result = \"New seat Democratic gain\"",
"context": "CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR)",
"question": "what's the district with result being new seat democratic gain"
} |
### QUESTION
What is the road team of the game with Philadelphia as the home team with a result of 105-102?
### CONTEXT
CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
### ANSWER
SELECT road_team FROM table_name_53 WHERE home_team = "philadelphia" AND result = "105-102" | {
"answer": "SELECT road_team FROM table_name_53 WHERE home_team = \"philadelphia\" AND result = \"105-102\"",
"context": "CREATE TABLE table_name_53 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)",
"question": "What is the road team of the game with Philadelphia as the home team with a result of 105-102?"
} |
### QUESTION
What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?
### CONTEXT
CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)
### ANSWER
SELECT entrant FROM table_name_95 WHERE engine = "maserati straight-6" AND year < 1958 AND chassis = "maserati 250f" AND points < 4 | {
"answer": "SELECT entrant FROM table_name_95 WHERE engine = \"maserati straight-6\" AND year < 1958 AND chassis = \"maserati 250f\" AND points < 4",
"context": "CREATE TABLE table_name_95 (entrant VARCHAR, points VARCHAR, chassis VARCHAR, engine VARCHAR, year VARCHAR)",
"question": "What kind of Entrant has a Maserati Straight-6 Engine, built in the year 1958 or early, and has a Maserati 250f Chassis with points less than 4?"
} |
### QUESTION
Name the snatch when body weight is 73.7
### CONTEXT
CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR)
### ANSWER
SELECT snatch FROM table_16779068_5 WHERE body_weight = "737" | {
"answer": "SELECT snatch FROM table_16779068_5 WHERE body_weight = \"737\"",
"context": "CREATE TABLE table_16779068_5 (snatch VARCHAR, body_weight VARCHAR)",
"question": "Name the snatch when body weight is 73.7"
} |
### QUESTION
What was the away team score, when the away team was Fitzroy?
### CONTEXT
CREATE TABLE table_name_32 (away_team VARCHAR)
### ANSWER
SELECT away_team AS score FROM table_name_32 WHERE away_team = "fitzroy" | {
"answer": "SELECT away_team AS score FROM table_name_32 WHERE away_team = \"fitzroy\"",
"context": "CREATE TABLE table_name_32 (away_team VARCHAR)",
"question": "What was the away team score, when the away team was Fitzroy?"
} |
### QUESTION
Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?
### CONTEXT
CREATE TABLE table_name_74 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
### ANSWER
SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = "ferrari" | {
"answer": "SELECT driver FROM table_name_74 WHERE grid < 24 AND laps < 61 AND constructor = \"ferrari\"",
"context": "CREATE TABLE table_name_74 (driver VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)",
"question": "Who has a grid smaller than 24, less than 61 laps, and a ferrari constructor?"
} |
### QUESTION
January 7.34 where is June ?
### CONTEXT
CREATE TABLE table_15945862_1 (january VARCHAR, june VARCHAR)
### ANSWER
SELECT january FROM table_15945862_1 WHERE june = "7.34" | {
"answer": "SELECT january FROM table_15945862_1 WHERE june = \"7.34\"",
"context": "CREATE TABLE table_15945862_1 (january VARCHAR, june VARCHAR)",
"question": "January 7.34 where is June ?"
} |
### QUESTION
What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
### CONTEXT
CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)
### ANSWER
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th" | {
"answer": "SELECT level FROM table_name_21 WHERE season > 2003 AND division = \"kakkonen (second division)\" AND position = \"12th\"",
"context": "CREATE TABLE table_name_21 (level VARCHAR, position VARCHAR, season VARCHAR, division VARCHAR)",
"question": "What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?"
} |
### QUESTION
What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?
### CONTEXT
CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR)
### ANSWER
SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = "39.5%" AND leader = "takeo fukuda" AND _number_of_seats_won > 63 | {
"answer": "SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = \"39.5%\" AND leader = \"takeo fukuda\" AND _number_of_seats_won > 63",
"context": "CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR)",
"question": "What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?"
} |
### QUESTION
What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997?
### CONTEXT
CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR)
### ANSWER
SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = "24–0" AND season > 1997 | {
"answer": "SELECT record_as_played FROM table_name_19 WHERE regular_season_vacated = \"24–0\" AND season > 1997",
"context": "CREATE TABLE table_name_19 (record_as_played VARCHAR, regular_season_vacated VARCHAR, season VARCHAR)",
"question": "What is shown for Record as played with a Regular season Vacated of 24–0 later than 1997?"
} |
### QUESTION
Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.
### CONTEXT
CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)
### ANSWER
SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.owner_id, T1.last_name FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Owners (owner_id VARCHAR, last_name VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR); CREATE TABLE Treatments (dog_id VARCHAR)",
"question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name."
} |
### QUESTION
Which Date has a Record of 3-4?
### CONTEXT
CREATE TABLE table_name_30 (date VARCHAR, record VARCHAR)
### ANSWER
SELECT date FROM table_name_30 WHERE record = "3-4" | {
"answer": "SELECT date FROM table_name_30 WHERE record = \"3-4\"",
"context": "CREATE TABLE table_name_30 (date VARCHAR, record VARCHAR)",
"question": "Which Date has a Record of 3-4?"
} |
### QUESTION
How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?
### CONTEXT
CREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR)
### ANSWER
SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = "china (chn)" AND vault < 38.437 | {
"answer": "SELECT COUNT(pommel_horse) FROM table_name_52 WHERE total < 230.019 AND team = \"china (chn)\" AND vault < 38.437",
"context": "CREATE TABLE table_name_52 (pommel_horse VARCHAR, vault VARCHAR, total VARCHAR, team VARCHAR)",
"question": "How many pommel horses have a Total smaller than 230.019, a Team of china (chn), and a Vault smaller than 38.437?"
} |
### QUESTION
What is the population of Danderyd municipality in Stockholm County with a code lower than 162?
### CONTEXT
CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)
### ANSWER
SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162 | {
"answer": "SELECT COUNT(population) FROM table_name_62 WHERE county = \"stockholm county\" AND municipality = \"danderyd municipality\" AND code < 162",
"context": "CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)",
"question": "What is the population of Danderyd municipality in Stockholm County with a code lower than 162?"
} |
### QUESTION
What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?
### CONTEXT
CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR)
### ANSWER
SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training" | {
"answer": "SELECT episodes FROM table_18173916_6 WHERE tuesday = \"224 Assassin's Creed: Brotherhood Circus Training\"",
"context": "CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR)",
"question": "What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.