text
stringlengths
146
1.06k
source
dict
### QUESTION Which poll resource provided the most number of candidate information? ### CONTEXT CREATE TABLE candidate (poll_source VARCHAR) ### ANSWER SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT poll_source FROM candidate GROUP BY poll_source ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE candidate (poll_source VARCHAR)", "question": "Which poll resource provided the most number of candidate information?" }
### QUESTION Find the name and gender of the candidate who got the highest support rate. ### CONTEXT CREATE TABLE candidate (people_id VARCHAR, support_rate VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR) ### ANSWER SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
{ "answer": "SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1", "context": "CREATE TABLE candidate (people_id VARCHAR, support_rate VARCHAR); CREATE TABLE people (name VARCHAR, sex VARCHAR, people_id VARCHAR)", "question": "Find the name and gender of the candidate who got the highest support rate." }
### QUESTION What is every company with an index weighting % of 1 and the city of Dimitrovgrad? ### CONTEXT CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR) ### ANSWER SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad"
{ "answer": "SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = \"1\" AND city = \"Dimitrovgrad\"", "context": "CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR)", "question": "What is every company with an index weighting % of 1 and the city of Dimitrovgrad?" }
### QUESTION which gender got the highest average uncertain ratio. ### CONTEXT CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR) ### ANSWER SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1
{ "answer": "SELECT t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id GROUP BY t1.sex ORDER BY AVG(t2.unsure_rate) DESC LIMIT 1", "context": "CREATE TABLE candidate (people_id VARCHAR, unsure_rate INTEGER); CREATE TABLE people (sex VARCHAR, people_id VARCHAR)", "question": "which gender got the highest average uncertain ratio." }
### QUESTION How many Ties have Years of 1919–1925, and a Pct larger than 0.734? ### CONTEXT CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR) ### ANSWER SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734
{ "answer": "SELECT SUM(ties) FROM table_name_75 WHERE years = \"1919–1925\" AND pct > 0.734", "context": "CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)", "question": "How many Ties have Years of 1919–1925, and a Pct larger than 0.734?" }
### QUESTION how many people are there whose weight is higher than 85 for each gender? ### CONTEXT CREATE TABLE people (sex VARCHAR, weight INTEGER) ### ANSWER SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex
{ "answer": "SELECT COUNT(*), sex FROM people WHERE weight > 85 GROUP BY sex", "context": "CREATE TABLE people (sex VARCHAR, weight INTEGER)", "question": "how many people are there whose weight is higher than 85 for each gender?" }
### QUESTION find the name of people whose height is lower than the average. ### CONTEXT CREATE TABLE people (name VARCHAR, height INTEGER) ### ANSWER SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people)
{ "answer": "SELECT name FROM people WHERE height < (SELECT AVG(height) FROM people)", "context": "CREATE TABLE people (name VARCHAR, height INTEGER)", "question": "find the name of people whose height is lower than the average." }
### QUESTION Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano? ### CONTEXT CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR) ### ANSWER SELECT party FROM table_name_77 WHERE years_in_assembly = "2008–present" AND name = "tom ammiano"
{ "answer": "SELECT party FROM table_name_77 WHERE years_in_assembly = \"2008–present\" AND name = \"tom ammiano\"", "context": "CREATE TABLE table_name_77 (party VARCHAR, years_in_assembly VARCHAR, name VARCHAR)", "question": "Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?" }
### QUESTION What was Jeff Sluman's To par when his total was smaller than 284? ### CONTEXT CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR) ### ANSWER SELECT to_par FROM table_name_61 WHERE total < 284 AND player = "jeff sluman"
{ "answer": "SELECT to_par FROM table_name_61 WHERE total < 284 AND player = \"jeff sluman\"", "context": "CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR)", "question": "What was Jeff Sluman's To par when his total was smaller than 284?" }
### QUESTION What are the names of directors who directed movies with 5 star rating? Also return the title of these movies. ### CONTEXT CREATE TABLE Movie (director VARCHAR, title VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR) ### ANSWER SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5
{ "answer": "SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5", "context": "CREATE TABLE Movie (director VARCHAR, title VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)", "question": "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies." }
### QUESTION Name the series number for m. scott veach & rebecca kirsch ### CONTEXT CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR) ### ANSWER SELECT series__number FROM table_20704243_5 WHERE written_by = "M. Scott Veach & Rebecca Kirsch"
{ "answer": "SELECT series__number FROM table_20704243_5 WHERE written_by = \"M. Scott Veach & Rebecca Kirsch\"", "context": "CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR)", "question": "Name the series number for m. scott veach & rebecca kirsch" }
### QUESTION Find the titles of all movies that have no ratings. ### CONTEXT CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### ANSWER SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)
{ "answer": "SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)", "context": "CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "question": "Find the titles of all movies that have no ratings." }
### QUESTION What is the average rating stars and title for the oldest movie? ### CONTEXT CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER) ### ANSWER SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)
{ "answer": "SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)", "context": "CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER)", "question": "What is the average rating stars and title for the oldest movie?" }
### QUESTION What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron? ### CONTEXT CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron")
{ "answer": "SELECT T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")", "context": "CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)", "question": "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?" }
### QUESTION Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars. ### CONTEXT CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### ANSWER SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars
{ "answer": "SELECT T3.name, T2.title, T1.stars, T1.ratingDate FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID ORDER BY T3.name, T2.title, T1.stars", "context": "CREATE TABLE Rating (stars VARCHAR, ratingDate VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "question": "Return reviewer name, movie title, stars, and ratingDate. And sort the data first by reviewer name, then by movie title, and lastly by number of stars." }
### QUESTION Find the names of all reviewers who rated Gone with the Wind. ### CONTEXT CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### ANSWER SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'
{ "answer": "SELECT DISTINCT T3.name FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.title = 'Gone with the Wind'", "context": "CREATE TABLE Movie (mID VARCHAR, title VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "question": "Find the names of all reviewers who rated Gone with the Wind." }
### QUESTION Find the names of all directors whose movies are rated by Sarah Martinez. ### CONTEXT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### ANSWER SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'
{ "answer": "SELECT DISTINCT T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Sarah Martinez'", "context": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (director VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "question": "Find the names of all directors whose movies are rated by Sarah Martinez." }
### QUESTION For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars. ### CONTEXT CREATE TABLE Rating (stars VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR) ### ANSWER SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name
{ "answer": "SELECT DISTINCT T3.name, T2.title, T1.stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T2.director = T3.name", "context": "CREATE TABLE Rating (stars VARCHAR, mID VARCHAR, rID VARCHAR); CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, director VARCHAR)", "question": "For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars." }
### QUESTION Find the titles of all movies not reviewed by Chris Jackson. ### CONTEXT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### ANSWER SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'
{ "answer": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'", "context": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "question": "Find the titles of all movies not reviewed by Chris Jackson." }
### QUESTION For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title. ### CONTEXT CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR) ### ANSWER SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title
{ "answer": "SELECT T1.title, T1.director FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY T1.director, T1.title", "context": "CREATE TABLE Movie (title VARCHAR, director VARCHAR); CREATE TABLE Movie (director VARCHAR, title VARCHAR)", "question": "For all directors who directed more than one movie, return the titles of all movies directed by them, along with the director name. Sort by director name, then movie title." }
### QUESTION What parish did McCain have 45.37% of the votes? ### CONTEXT CREATE TABLE table_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR) ### ANSWER SELECT parish FROM table_20722805_1 WHERE mccain_percentage = "45.37%"
{ "answer": "SELECT parish FROM table_20722805_1 WHERE mccain_percentage = \"45.37%\"", "context": "CREATE TABLE table_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR)", "question": "What parish did McCain have 45.37% of the votes?" }
### QUESTION For directors who had more than one movie, return the titles and produced years of all movies directed by them. ### CONTEXT CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR) ### ANSWER SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title
{ "answer": "SELECT T1.title, T1.year FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title", "context": "CREATE TABLE Movie (director VARCHAR, title VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, director VARCHAR)", "question": "For directors who had more than one movie, return the titles and produced years of all movies directed by them." }
### QUESTION What was the average money for United States when Lanny Wadkins played? ### CONTEXT CREATE TABLE table_name_94 (money___ INTEGER, country VARCHAR, player VARCHAR) ### ANSWER SELECT AVG(money___) AS $__ FROM table_name_94 WHERE country = "united states" AND player = "lanny wadkins"
{ "answer": "SELECT AVG(money___) AS $__ FROM table_name_94 WHERE country = \"united states\" AND player = \"lanny wadkins\"", "context": "CREATE TABLE table_name_94 (money___ INTEGER, country VARCHAR, player VARCHAR)", "question": "What was the average money for United States when Lanny Wadkins played?" }
### QUESTION Find the movies with the highest average rating. Return the movie titles and average rating. ### CONTEXT CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1
{ "answer": "SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) DESC LIMIT 1", "context": "CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "question": "Find the movies with the highest average rating. Return the movie titles and average rating." }
### QUESTION What are the movie titles and average rating of the movies with the lowest average rating? ### CONTEXT CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1
{ "answer": "SELECT T2.title, AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T1.mID ORDER BY AVG(T1.stars) LIMIT 1", "context": "CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "question": "What are the movie titles and average rating of the movies with the lowest average rating?" }
### QUESTION Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy? ### CONTEXT CREATE TABLE table_name_31 (second_party VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR) ### ANSWER SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy"
{ "answer": "SELECT second_party FROM table_name_31 WHERE second_member = \"charles robert colvile\" AND first_party = \"conservative\" AND first_member = \"william mundy\"", "context": "CREATE TABLE table_name_31 (second_party VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR)", "question": "Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?" }
### QUESTION For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL. ### CONTEXT CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title, T1.stars, T2.director, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY director
{ "answer": "SELECT T2.title, T1.stars, T2.director, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> \"null\" GROUP BY director", "context": "CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)", "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL." }
### QUESTION What are the names and years of the movies that has the top 3 highest rating star? ### CONTEXT CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title, T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3
{ "answer": "SELECT T2.title, T2.year FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY T1.stars DESC LIMIT 3", "context": "CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, year VARCHAR, mID VARCHAR)", "question": "What are the names and years of the movies that has the top 3 highest rating star?" }
### QUESTION Which of the first parties has second member as Charles Robert Colvile, and a liberal second party? ### CONTEXT CREATE TABLE table_name_50 (first_party VARCHAR, second_member VARCHAR, second_party VARCHAR) ### ANSWER SELECT first_party FROM table_name_50 WHERE second_member = "charles robert colvile" AND second_party = "liberal"
{ "answer": "SELECT first_party FROM table_name_50 WHERE second_member = \"charles robert colvile\" AND second_party = \"liberal\"", "context": "CREATE TABLE table_name_50 (first_party VARCHAR, second_member VARCHAR, second_party VARCHAR)", "question": "Which of the first parties has second member as Charles Robert Colvile, and a liberal second party?" }
### QUESTION What are the ids of the movies that are not reviewed by Brittany Harris. ### CONTEXT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### ANSWER SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = "Brittany Harris"
{ "answer": "SELECT mID FROM Rating EXCEPT SELECT T1.mID FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T2.name = \"Brittany Harris\"", "context": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Rating (mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "question": "What are the ids of the movies that are not reviewed by Brittany Harris." }
### QUESTION How many seats were forfeited in the revolutionary socialist party? ### CONTEXT CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR) ### ANSWER SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = "Revolutionary Socialist party"
{ "answer": "SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = \"Revolutionary Socialist party\"", "context": "CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR)", "question": "How many seats were forfeited in the revolutionary socialist party?" }
### QUESTION What status has gauteng falcons as the opposing team? ### CONTEXT CREATE TABLE table_name_2 (status VARCHAR, opposing_team VARCHAR) ### ANSWER SELECT status FROM table_name_2 WHERE opposing_team = "gauteng falcons"
{ "answer": "SELECT status FROM table_name_2 WHERE opposing_team = \"gauteng falcons\"", "context": "CREATE TABLE table_name_2 (status VARCHAR, opposing_team VARCHAR)", "question": "What status has gauteng falcons as the opposing team?" }
### QUESTION What opposing team has second test as the status? ### CONTEXT CREATE TABLE table_name_12 (opposing_team VARCHAR, status VARCHAR) ### ANSWER SELECT opposing_team FROM table_name_12 WHERE status = "second test"
{ "answer": "SELECT opposing_team FROM table_name_12 WHERE status = \"second test\"", "context": "CREATE TABLE table_name_12 (opposing_team VARCHAR, status VARCHAR)", "question": "What opposing team has second test as the status?" }
### QUESTION What are names of the movies that are either made after 2000 or reviewed by Brittany Harris? ### CONTEXT CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) ### ANSWER SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000
{ "answer": "SELECT DISTINCT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Brittany Harris' OR T2.year > 2000", "context": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)", "question": "What are names of the movies that are either made after 2000 or reviewed by Brittany Harris?" }
### QUESTION What are the names of reviewers who had rated 3 star and 4 star? ### CONTEXT CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (rID VARCHAR, stars VARCHAR) ### ANSWER SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4
{ "answer": "SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 3 INTERSECT SELECT T2.name FROM Rating AS T1 JOIN Reviewer AS T2 ON T1.rID = T2.rID WHERE T1.stars = 4", "context": "CREATE TABLE Reviewer (name VARCHAR, rID VARCHAR); CREATE TABLE Rating (rID VARCHAR, stars VARCHAR)", "question": "What are the names of reviewers who had rated 3 star and 4 star?" }
### QUESTION What are the names of movies that get 3 star and 4 star? ### CONTEXT CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR) ### ANSWER SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4
{ "answer": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4", "context": "CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)", "question": "What are the names of movies that get 3 star and 4 star?" }
### QUESTION What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"? ### CONTEXT CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR) ### ANSWER SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = "o /ɵ/"
{ "answer": "SELECT 17 AS th_c FROM table_name_76 WHERE initial_syllable_open_semi_open_unstressed_vowels = \"o /ɵ/\"", "context": "CREATE TABLE table_name_76 (initial_syllable_open_semi_open_unstressed_vowels VARCHAR)", "question": "What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is \"o /ɵ/\"?" }
### QUESTION How many times were Duke the opponents? ### CONTEXT CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR) ### ANSWER SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = "Duke"
{ "answer": "SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = \"Duke\"", "context": "CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR)", "question": "How many times were Duke the opponents?" }
### QUESTION How many losses were there when the record was 4-0? ### CONTEXT CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR) ### ANSWER SELECT MAX(opponents) FROM table_20745444_1 WHERE record = "4-0"
{ "answer": "SELECT MAX(opponents) FROM table_20745444_1 WHERE record = \"4-0\"", "context": "CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR)", "question": "How many losses were there when the record was 4-0?" }
### QUESTION List the distinct police forces of counties whose location is not on east side. ### CONTEXT CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR) ### ANSWER SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> "East"
{ "answer": "SELECT DISTINCT Police_force FROM county_public_safety WHERE LOCATION <> \"East\"", "context": "CREATE TABLE county_public_safety (Police_force VARCHAR, LOCATION VARCHAR)", "question": "List the distinct police forces of counties whose location is not on east side." }
### QUESTION What is American, when British is "ɪ, ə", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is "æ /ɨ/"? ### CONTEXT CREATE TABLE table_name_23 (american VARCHAR, british VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR) ### ANSWER SELECT american FROM table_name_23 WHERE british = "ɪ, ə" AND initial_syllable_open_semi_open_unstressed_vowels = "æ /ɨ/"
{ "answer": "SELECT american FROM table_name_23 WHERE british = \"ɪ, ə\" AND initial_syllable_open_semi_open_unstressed_vowels = \"æ /ɨ/\"", "context": "CREATE TABLE table_name_23 (american VARCHAR, british VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR)", "question": "What is American, when British is \"ɪ, ə\", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is \"æ /ɨ/\"?" }
### QUESTION Show white percentages of cities and the crime rates of counties they are in. ### CONTEXT CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR) ### ANSWER SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID
{ "answer": "SELECT T1.White, T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID", "context": "CREATE TABLE city (White VARCHAR, County_ID VARCHAR); CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR)", "question": "Show white percentages of cities and the crime rates of counties they are in." }
### QUESTION What game did the Bruins have 56 points? ### CONTEXT CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR) ### ANSWER SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56
{ "answer": "SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56", "context": "CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR)", "question": "What game did the Bruins have 56 points?" }
### 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 Show the crime rate of counties with a city having white percentage more than 90. ### CONTEXT CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR); CREATE TABLE city (County_ID VARCHAR, White INTEGER) ### ANSWER SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90
{ "answer": "SELECT T2.Crime_rate FROM city AS T1 JOIN county_public_safety AS T2 ON T1.County_ID = T2.County_ID WHERE T1.White > 90", "context": "CREATE TABLE county_public_safety (Crime_rate VARCHAR, County_ID VARCHAR); CREATE TABLE city (County_ID VARCHAR, White INTEGER)", "question": "Show the crime rate of counties with a city having white percentage more than 90." }
### QUESTION Show the number of cities in counties that have a population more than 20000. ### CONTEXT CREATE TABLE county_public_safety (county_ID VARCHAR, population INTEGER); CREATE TABLE city (county_ID VARCHAR, population INTEGER) ### ANSWER SELECT COUNT(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000)
{ "answer": "SELECT COUNT(*) FROM city WHERE county_ID IN (SELECT county_ID FROM county_public_safety WHERE population > 20000)", "context": "CREATE TABLE county_public_safety (county_ID VARCHAR, population INTEGER); CREATE TABLE city (county_ID VARCHAR, population INTEGER)", "question": "Show the number of cities in counties that have a population more than 20000." }
### QUESTION What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain? ### CONTEXT CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR) ### ANSWER SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler"
{ "answer": "SELECT MAX(first_elected) FROM table_name_40 WHERE results = \"lost re-election democratic gain\" AND incumbent = \"john hostettler\"", "context": "CREATE TABLE table_name_40 (first_elected INTEGER, results VARCHAR, incumbent VARCHAR)", "question": "What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?" }
### QUESTION What are the public schools with a master's university? ### CONTEXT CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR) ### ANSWER SELECT location_s_ FROM table_2076595_1 WHERE control = "Public" AND type = "Master's university"
{ "answer": "SELECT location_s_ FROM table_2076595_1 WHERE control = \"Public\" AND type = \"Master's university\"", "context": "CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR)", "question": "What are the public schools with a master's university?" }
### QUESTION What is the maximum diameter of the Mid West Gas Pipeline (1999)? ### CONTEXT CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR) ### ANSWER SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = "mid west gas pipeline (1999)"
{ "answer": "SELECT maximum_diameter FROM table_name_57 WHERE name__year_commissioned_ = \"mid west gas pipeline (1999)\"", "context": "CREATE TABLE table_name_57 (maximum_diameter VARCHAR, name__year_commissioned_ VARCHAR)", "question": "What is the maximum diameter of the Mid West Gas Pipeline (1999)?" }
### QUESTION Show the names of cities in counties that have a crime rate less than 100. ### CONTEXT CREATE TABLE county_public_safety (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER); CREATE TABLE city (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER) ### ANSWER SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)
{ "answer": "SELECT name FROM city WHERE county_id IN (SELECT county_id FROM county_public_safety WHERE Crime_rate < 100)", "context": "CREATE TABLE county_public_safety (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER); CREATE TABLE city (name VARCHAR, county_id VARCHAR, Crime_rate INTEGER)", "question": "Show the names of cities in counties that have a crime rate less than 100." }
### QUESTION Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids. ### CONTEXT CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR) ### ANSWER SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2
{ "answer": "SELECT roomName, RoomId FROM Rooms WHERE basePrice > 160 AND maxOccupancy > 2", "context": "CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR, basePrice VARCHAR, maxOccupancy VARCHAR)", "question": "Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids." }
### QUESTION Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations. ### CONTEXT CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR) ### ANSWER SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.roomName FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)", "question": "Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations." }
### QUESTION Name the number of spring enrollment for sioux falls seminary ### CONTEXT CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR) ### ANSWER SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary"
{ "answer": "SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = \"Sioux Falls Seminary\"", "context": "CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)", "question": "Name the number of spring enrollment for sioux falls seminary" }
### QUESTION Name the accrediatation for southeast technical institute ### CONTEXT CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR) ### ANSWER SELECT accreditation FROM table_2076557_2 WHERE school = "Southeast Technical Institute"
{ "answer": "SELECT accreditation FROM table_2076557_2 WHERE school = \"Southeast Technical Institute\"", "context": "CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR)", "question": "Name the accrediatation for southeast technical institute" }
### QUESTION Which room has the highest rate? List the room's full name, rate, check in and check out date. ### CONTEXT CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR); CREATE TABLE Reservations (Rate VARCHAR, CheckIn VARCHAR, CheckOut VARCHAR, Room VARCHAR) ### ANSWER SELECT T2.roomName, T1.Rate, T1.CheckIn, T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1
{ "answer": "SELECT T2.roomName, T1.Rate, T1.CheckIn, T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1", "context": "CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR); CREATE TABLE Reservations (Rate VARCHAR, CheckIn VARCHAR, CheckOut VARCHAR, Room VARCHAR)", "question": "Which room has the highest rate? List the room's full name, rate, check in and check out date." }
### QUESTION Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors? ### CONTEXT CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR) ### ANSWER SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = "dean minors"
{ "answer": "SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = \"dean minors\"", "context": "CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR)", "question": "Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?" }
### QUESTION Which of the R. Epp, has J Thiessen of Tjoatj? ### CONTEXT CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR) ### ANSWER SELECT r_epp FROM table_name_90 WHERE j_thiessen = "tjoatj"
{ "answer": "SELECT r_epp FROM table_name_90 WHERE j_thiessen = \"tjoatj\"", "context": "CREATE TABLE table_name_90 (r_epp VARCHAR, j_thiessen VARCHAR)", "question": "Which of the R. Epp, has J Thiessen of Tjoatj?" }
### QUESTION What kind of decor has the least number of reservations? ### CONTEXT CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR) ### ANSWER SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1
{ "answer": "SELECT T2.decor FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T2.decor ORDER BY COUNT(T2.decor) LIMIT 1", "context": "CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (decor VARCHAR, RoomId VARCHAR)", "question": "What kind of decor has the least number of reservations?" }
### QUESTION What is the sum of Against, when Status is "Six Nations", and when Date is "30/03/2003"? ### CONTEXT CREATE TABLE table_name_20 (against INTEGER, status VARCHAR, date VARCHAR) ### ANSWER SELECT SUM(against) FROM table_name_20 WHERE status = "six nations" AND date = "30/03/2003"
{ "answer": "SELECT SUM(against) FROM table_name_20 WHERE status = \"six nations\" AND date = \"30/03/2003\"", "context": "CREATE TABLE table_name_20 (against INTEGER, status VARCHAR, date VARCHAR)", "question": "What is the sum of Against, when Status is \"Six Nations\", and when Date is \"30/03/2003\"?" }
### QUESTION What school is in Richmond? ### CONTEXT CREATE TABLE table_2076608_3 (school VARCHAR, location_s_ VARCHAR) ### ANSWER SELECT school FROM table_2076608_3 WHERE location_s_ = "Richmond"
{ "answer": "SELECT school FROM table_2076608_3 WHERE location_s_ = \"Richmond\"", "context": "CREATE TABLE table_2076608_3 (school VARCHAR, location_s_ VARCHAR)", "question": "What school is in Richmond?" }
### 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 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 What is the position of the pittsburgh steelers? ### CONTEXT CREATE TABLE table_name_29 (position VARCHAR, nfl_club VARCHAR) ### ANSWER SELECT position FROM table_name_29 WHERE nfl_club = "pittsburgh steelers"
{ "answer": "SELECT position FROM table_name_29 WHERE nfl_club = \"pittsburgh steelers\"", "context": "CREATE TABLE table_name_29 (position VARCHAR, nfl_club VARCHAR)", "question": "What is the position of the pittsburgh steelers?" }
### QUESTION Return the name and number of reservations made for each of the rooms. ### CONTEXT CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR) ### ANSWER SELECT T2.roomName, COUNT(*), T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room
{ "answer": "SELECT T2.roomName, COUNT(*), T1.Room FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room", "context": "CREATE TABLE Reservations (Room VARCHAR); CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR)", "question": "Return the name and number of reservations made for each of the rooms." }
### QUESTION What is Country, when Previous Team (League) is "Kingston Frontenacs ( OHL )", and when Player is "Anthony Stewart Category:Articles with hCards"? ### CONTEXT CREATE TABLE table_name_45 (country VARCHAR, previous_team__league_ VARCHAR, player VARCHAR) ### ANSWER SELECT country FROM table_name_45 WHERE previous_team__league_ = "kingston frontenacs ( ohl )" AND player = "anthony stewart category:articles with hcards"
{ "answer": "SELECT country FROM table_name_45 WHERE previous_team__league_ = \"kingston frontenacs ( ohl )\" AND player = \"anthony stewart category:articles with hcards\"", "context": "CREATE TABLE table_name_45 (country VARCHAR, previous_team__league_ VARCHAR, player VARCHAR)", "question": "What is Country, when Previous Team (League) is \"Kingston Frontenacs ( OHL )\", and when Player is \"Anthony Stewart Category:Articles with hCards\"?" }
### QUESTION What is Position, when Year is less than 2000, and when Player is "Radek Dvorak Category:Articles with hCards"? ### CONTEXT CREATE TABLE table_name_81 (position VARCHAR, year VARCHAR, player VARCHAR) ### ANSWER SELECT position FROM table_name_81 WHERE year < 2000 AND player = "radek dvorak category:articles with hcards"
{ "answer": "SELECT position FROM table_name_81 WHERE year < 2000 AND player = \"radek dvorak category:articles with hcards\"", "context": "CREATE TABLE table_name_81 (position VARCHAR, year VARCHAR, player VARCHAR)", "question": "What is Position, when Year is less than 2000, and when Player is \"Radek Dvorak Category:Articles with hCards\"?" }
### QUESTION what are the details of the cmi masters that have the cross reference code 'Tax'? ### CONTEXT CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR) ### ANSWER SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'
{ "answer": "SELECT T1.cmi_details FROM Customer_Master_Index AS T1 JOIN CMI_Cross_References AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T2.source_system_code = 'Tax'", "context": "CREATE TABLE CMI_Cross_References (master_customer_id VARCHAR, source_system_code VARCHAR); CREATE TABLE Customer_Master_Index (cmi_details VARCHAR, master_customer_id VARCHAR)", "question": "what are the details of the cmi masters that have the cross reference code 'Tax'?" }
### QUESTION What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code. ### CONTEXT CREATE TABLE Council_Tax (cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR) ### ANSWER SELECT T1.cmi_cross_ref_id, T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING COUNT(*) >= 1
{ "answer": "SELECT T1.cmi_cross_ref_id, T1.source_system_code FROM CMI_Cross_References AS T1 JOIN Council_Tax AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T1.cmi_cross_ref_id HAVING COUNT(*) >= 1", "context": "CREATE TABLE Council_Tax (cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)", "question": "What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code." }
### QUESTION How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n ### CONTEXT CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR) ### ANSWER SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id
{ "answer": "SELECT T2.cmi_cross_ref_id, T2.master_customer_id, COUNT(*) FROM Business_Rates AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id GROUP BY T2.cmi_cross_ref_id", "context": "CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR); CREATE TABLE Business_Rates (cmi_cross_ref_id VARCHAR)", "question": "How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n" }
### QUESTION What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id. ### CONTEXT CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Benefits_Overpayments (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) ### ANSWER SELECT T1.source_system_code, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id
{ "answer": "SELECT T1.source_system_code, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Benefits_Overpayments AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id ORDER BY T2.council_tax_id", "context": "CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Benefits_Overpayments (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)", "question": "What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id." }
### QUESTION Wat is the tax source system code and master customer id of the taxes related to each parking fine id? ### CONTEXT CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, master_customer_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Parking_Fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) ### ANSWER SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id
{ "answer": "SELECT T1.source_system_code, T1.master_customer_id, T2.council_tax_id FROM CMI_Cross_References AS T1 JOIN Parking_Fines AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id", "context": "CREATE TABLE CMI_Cross_References (source_system_code VARCHAR, master_customer_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Parking_Fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)", "question": "Wat is the tax source system code and master customer id of the taxes related to each parking fine id?" }
### QUESTION What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'? ### CONTEXT CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR) ### ANSWER SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'
{ "answer": "SELECT T1.council_tax_id FROM Rent_Arrears AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id JOIN Customer_Master_Index AS T3 ON T3.master_customer_id = T2.master_customer_id WHERE T3.cmi_details <> 'Schmidt , Kertzmann and Lubowitz'", "context": "CREATE TABLE Rent_Arrears (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE Customer_Master_Index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, master_customer_id VARCHAR)", "question": "What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?" }
### QUESTION What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'? ### CONTEXT CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR) ### ANSWER SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'
{ "answer": "SELECT T1.electoral_register_id FROM Electoral_Register AS T1 JOIN CMI_Cross_References AS T2 ON T1.cmi_cross_ref_id = T2.cmi_cross_ref_id WHERE T2.source_system_code = 'Electoral' OR T2.source_system_code = 'Tax'", "context": "CREATE TABLE Electoral_Register (electoral_register_id VARCHAR, cmi_cross_ref_id VARCHAR); CREATE TABLE CMI_Cross_References (cmi_cross_ref_id VARCHAR, source_system_code VARCHAR)", "question": "What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?" }
### QUESTION What is Country, when Year is "1994"? ### CONTEXT CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR) ### ANSWER SELECT country FROM table_name_93 WHERE year = 1994
{ "answer": "SELECT country FROM table_name_93 WHERE year = 1994", "context": "CREATE TABLE table_name_93 (country VARCHAR, year VARCHAR)", "question": "What is Country, when Year is \"1994\"?" }
### QUESTION List all information about customer master index, and sort them by details in descending order. ### CONTEXT CREATE TABLE customer_master_index (cmi_details VARCHAR) ### ANSWER SELECT * FROM customer_master_index ORDER BY cmi_details DESC
{ "answer": "SELECT * FROM customer_master_index ORDER BY cmi_details DESC", "context": "CREATE TABLE customer_master_index (cmi_details VARCHAR)", "question": "List all information about customer master index, and sort them by details in descending order." }
### QUESTION List the council tax ids and their related cmi cross references of all the parking fines. ### CONTEXT CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR) ### ANSWER SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines
{ "answer": "SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines", "context": "CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)", "question": "List the council tax ids and their related cmi cross references of all the parking fines." }
### QUESTION What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen? ### CONTEXT CREATE TABLE table_name_78 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR) ### ANSWER SELECT outgoing_manager FROM table_name_78 WHERE manner_of_departure = "end of tenure as caretaker" AND replaced_by = "jesper hansen"
{ "answer": "SELECT outgoing_manager FROM table_name_78 WHERE manner_of_departure = \"end of tenure as caretaker\" AND replaced_by = \"jesper hansen\"", "context": "CREATE TABLE table_name_78 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, replaced_by VARCHAR)", "question": "What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?" }
### QUESTION What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'? ### CONTEXT CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR) ### ANSWER SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'
{ "answer": "SELECT DISTINCT T2.source_system_code FROM customer_master_index AS T1 JOIN cmi_cross_references AS T2 ON T1.master_customer_id = T2.master_customer_id WHERE T1.cmi_details = 'Gottlieb , Becker and Wyman'", "context": "CREATE TABLE customer_master_index (master_customer_id VARCHAR, cmi_details VARCHAR); CREATE TABLE cmi_cross_references (source_system_code VARCHAR, master_customer_id VARCHAR)", "question": "What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?" }
### QUESTION Which distinct source system code includes the substring 'en'? ### CONTEXT CREATE TABLE cmi_cross_references (source_system_code VARCHAR) ### ANSWER SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
{ "answer": "SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'", "context": "CREATE TABLE cmi_cross_references (source_system_code VARCHAR)", "question": "Which distinct source system code includes the substring 'en'?" }
### QUESTION List the themes of parties in ascending order of number of hosts. ### CONTEXT CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR) ### ANSWER SELECT Party_Theme FROM party ORDER BY Number_of_hosts
{ "answer": "SELECT Party_Theme FROM party ORDER BY Number_of_hosts", "context": "CREATE TABLE party (Party_Theme VARCHAR, Number_of_hosts VARCHAR)", "question": "List the themes of parties in ascending order of number of hosts." }
### QUESTION When fort irwin-barstow/victorville is the type of fare what is the cash fare? ### CONTEXT CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR) ### ANSWER SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Fort Irwin-Barstow/Victorville"
{ "answer": "SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = \"Fort Irwin-Barstow/Victorville\"", "context": "CREATE TABLE table_20803241_1 (cash_fare VARCHAR, type_of_fare VARCHAR)", "question": "When fort irwin-barstow/victorville is the type of fare what is the cash fare?" }
### QUESTION Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne? ### CONTEXT CREATE TABLE table_name_66 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR, year_built VARCHAR, parish__prestegjeld_ VARCHAR) ### ANSWER SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = "jostedal parish" AND location_of_the_church = "gaupne"
{ "answer": "SELECT sub_parish__sogn_ FROM table_name_66 WHERE year_built < 1883 AND parish__prestegjeld_ = \"jostedal parish\" AND location_of_the_church = \"gaupne\"", "context": "CREATE TABLE table_name_66 (sub_parish__sogn_ VARCHAR, location_of_the_church VARCHAR, year_built VARCHAR, parish__prestegjeld_ VARCHAR)", "question": "Which Sub-Parish (Sogn) was built before 1883 in the Parish (Prestegjeld) of jostedal parish and is located in the Church of Gaupne?" }
### QUESTION Show the nations that have both hosts older than 45 and hosts younger than 35. ### CONTEXT CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER) ### ANSWER SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35
{ "answer": "SELECT Nationality FROM HOST WHERE Age > 45 INTERSECT SELECT Nationality FROM HOST WHERE Age < 35", "context": "CREATE TABLE HOST (Nationality VARCHAR, Age INTEGER)", "question": "Show the nations that have both hosts older than 45 and hosts younger than 35." }
### QUESTION Show the themes of parties and the names of the party hosts. ### CONTEXT CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR) ### ANSWER SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID
{ "answer": "SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID", "context": "CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR)", "question": "Show the themes of parties and the names of the party hosts." }
### QUESTION Show the locations of parties and the names of the party hosts in ascending order of the age of the host. ### CONTEXT CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR) ### ANSWER SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age
{ "answer": "SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age", "context": "CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR, Age VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR)", "question": "Show the locations of parties and the names of the party hosts in ascending order of the age of the host." }
### QUESTION Show the locations of parties with hosts older than 50. ### CONTEXT CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER) ### ANSWER SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50
{ "answer": "SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50", "context": "CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER)", "question": "Show the locations of parties with hosts older than 50." }
### QUESTION Show the host names for parties with number of hosts greater than 20. ### CONTEXT CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER) ### ANSWER SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20
{ "answer": "SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20", "context": "CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER)", "question": "Show the host names for parties with number of hosts greater than 20." }
### QUESTION What race number had sail number AUS 98888? ### CONTEXT CREATE TABLE table_20854943_2 (race_number VARCHAR, sail_number VARCHAR) ### ANSWER SELECT race_number FROM table_20854943_2 WHERE sail_number = "AUS 98888"
{ "answer": "SELECT race_number FROM table_20854943_2 WHERE sail_number = \"AUS 98888\"", "context": "CREATE TABLE table_20854943_2 (race_number VARCHAR, sail_number VARCHAR)", "question": "What race number had sail number AUS 98888?" }
### QUESTION What's Curtis Painter's position? ### CONTEXT CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR) ### ANSWER SELECT position FROM table_20861261_4 WHERE player = "Curtis Painter"
{ "answer": "SELECT position FROM table_20861261_4 WHERE player = \"Curtis Painter\"", "context": "CREATE TABLE table_20861261_4 (position VARCHAR, player VARCHAR)", "question": "What's Curtis Painter's position?" }
### QUESTION Which Year(s) won has a To par smaller than 12, and a Player of john daly? ### CONTEXT CREATE TABLE table_name_50 (year_s__won VARCHAR, to_par VARCHAR, player VARCHAR) ### ANSWER SELECT year_s__won FROM table_name_50 WHERE to_par < 12 AND player = "john daly"
{ "answer": "SELECT year_s__won FROM table_name_50 WHERE to_par < 12 AND player = \"john daly\"", "context": "CREATE TABLE table_name_50 (year_s__won VARCHAR, to_par VARCHAR, player VARCHAR)", "question": "Which Year(s) won has a To par smaller than 12, and a Player of john daly?" }
### QUESTION Which Player has a To par of 12, and a Country of fiji? ### CONTEXT CREATE TABLE table_name_21 (player VARCHAR, to_par VARCHAR, country VARCHAR) ### ANSWER SELECT player FROM table_name_21 WHERE to_par = 12 AND country = "fiji"
{ "answer": "SELECT player FROM table_name_21 WHERE to_par = 12 AND country = \"fiji\"", "context": "CREATE TABLE table_name_21 (player VARCHAR, to_par VARCHAR, country VARCHAR)", "question": "Which Player has a To par of 12, and a Country of fiji?" }
### QUESTION Show the name for regions and the number of storms for each region. ### CONTEXT CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR) ### ANSWER SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id
{ "answer": "SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id", "context": "CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR)", "question": "Show the name for regions and the number of storms for each region." }
### QUESTION List the name for storms and the number of affected regions for each storm. ### CONTEXT CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### ANSWER SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id
{ "answer": "SELECT T1.name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id", "context": "CREATE TABLE affected_region (storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "question": "List the name for storms and the number of affected regions for each storm." }
### QUESTION Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2 ### CONTEXT CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR) ### ANSWER SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million"
{ "answer": "SELECT SUM(rank) FROM table_name_20 WHERE network = \"bbc one\" AND number_of_viewers = \"30.15million\"", "context": "CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)", "question": "Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2" }
### QUESTION What is the storm name and max speed which affected the greatest number of regions? ### CONTEXT CREATE TABLE storm (name VARCHAR, max_speed VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR) ### ANSWER SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.name, T1.max_speed FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE storm (name VARCHAR, max_speed VARCHAR, storm_id VARCHAR); CREATE TABLE affected_region (storm_id VARCHAR)", "question": "What is the storm name and max speed which affected the greatest number of regions?" }
### QUESTION Show storm name with at least two regions and 10 cities affected. ### CONTEXT CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### ANSWER SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10
{ "answer": "SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10", "context": "CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "question": "Show storm name with at least two regions and 10 cities affected." }
### QUESTION What is the Electorate when the term of office was 1955–1972, for Peter Howson? ### CONTEXT CREATE TABLE table_name_16 (electorate VARCHAR, term_of_office VARCHAR, member VARCHAR) ### ANSWER SELECT electorate FROM table_name_16 WHERE term_of_office = "1955–1972" AND member = "peter howson"
{ "answer": "SELECT electorate FROM table_name_16 WHERE term_of_office = \"1955–1972\" AND member = \"peter howson\"", "context": "CREATE TABLE table_name_16 (electorate VARCHAR, term_of_office VARCHAR, member VARCHAR)", "question": "What is the Electorate when the term of office was 1955–1972, for Peter Howson?" }
### QUESTION What are the region names affected by the storm with a number of deaths of least 10? ### CONTEXT CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR) ### ANSWER SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10
{ "answer": "SELECT T2.region_name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T3.number_deaths >= 10", "context": "CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (storm_id VARCHAR, number_deaths VARCHAR)", "question": "What are the region names affected by the storm with a number of deaths of least 10?" }
### QUESTION Show all storm names affecting region "Denmark". ### CONTEXT CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR) ### ANSWER SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'
{ "answer": "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'", "context": "CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)", "question": "Show all storm names affecting region \"Denmark\"." }
### QUESTION Show the region name with at least two storms. ### CONTEXT CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR) ### ANSWER SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING COUNT(*) >= 2
{ "answer": "SELECT T1.region_name FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id HAVING COUNT(*) >= 2", "context": "CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR)", "question": "Show the region name with at least two storms." }