text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
What year did the Cosworth v8 engine participate in?
### CONTEXT
CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR)
### ANSWER
SELECT AVG(year) FROM table_name_37 WHERE engine = "cosworth v8" | {
"answer": "SELECT AVG(year) FROM table_name_37 WHERE engine = \"cosworth v8\"",
"context": "CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR)",
"question": "What year did the Cosworth v8 engine participate in?"
} |
### QUESTION
What was the home team's score when Geelong was the away team?
### CONTEXT
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
### ANSWER
SELECT home_team AS score FROM table_name_1 WHERE away_team = "geelong" | {
"answer": "SELECT home_team AS score FROM table_name_1 WHERE away_team = \"geelong\"",
"context": "CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)",
"question": "What was the home team's score when Geelong was the away team?"
} |
### QUESTION
Show invoice dates and order id and details for all invoices.
### CONTEXT
CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)
### ANSWER
SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id | {
"answer": "SELECT T1.invoice_date, T1.order_id, T2.order_details FROM Invoices AS T1 JOIN Orders AS T2 ON T1.order_id = T2.order_id",
"context": "CREATE TABLE Invoices (invoice_date VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_details VARCHAR, order_id VARCHAR)",
"question": "Show invoice dates and order id and details for all invoices."
} |
### QUESTION
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
### CONTEXT
CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)
### ANSWER
SELECT award FROM table_name_39 WHERE group = "césar awards" AND result = "nominated" AND year > 2001 AND film = "8 women (8 femmes)" | {
"answer": "SELECT award FROM table_name_39 WHERE group = \"césar awards\" AND result = \"nominated\" AND year > 2001 AND film = \"8 women (8 femmes)\"",
"context": "CREATE TABLE table_name_39 (award VARCHAR, film VARCHAR, year VARCHAR, group VARCHAR, result VARCHAR)",
"question": "Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?"
} |
### QUESTION
Who had the most points in game 4?
### CONTEXT
CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR)
### ANSWER
SELECT high_points FROM table_17190012_12 WHERE game = 4 | {
"answer": "SELECT high_points FROM table_17190012_12 WHERE game = 4",
"context": "CREATE TABLE table_17190012_12 (high_points VARCHAR, game VARCHAR)",
"question": "Who had the most points in game 4?"
} |
### QUESTION
What day has a callback Venue of total tickets to hollywood? Question
### CONTEXT
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)
### ANSWER
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood" | {
"answer": "SELECT date FROM table_name_73 WHERE callback_venue = \"total tickets to hollywood\"",
"context": "CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)",
"question": "What day has a callback Venue of total tickets to hollywood? Question"
} |
### QUESTION
In 2014, what are the id and rank of the team that has the largest average number of attendance?
### CONTEXT
CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER)
### ANSWER
SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1 | {
"answer": "SELECT T2.team_id, T2.rank FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id WHERE T1.year = 2014 GROUP BY T1.team_id ORDER BY AVG(T1.attendance) DESC LIMIT 1",
"context": "CREATE TABLE team (team_id VARCHAR, rank VARCHAR); CREATE TABLE home_game (team_id VARCHAR, year VARCHAR, attendance INTEGER)",
"question": "In 2014, what are the id and rank of the team that has the largest average number of attendance?"
} |
### QUESTION
Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?
### CONTEXT
CREATE TABLE table_name_2 (third_member VARCHAR, second_member VARCHAR, second_party VARCHAR, third_party VARCHAR)
### ANSWER
SELECT third_member FROM table_name_2 WHERE second_party = "liberal" AND third_party = "conservative" AND second_member = "humphrey mildmay" | {
"answer": "SELECT third_member FROM table_name_2 WHERE second_party = \"liberal\" AND third_party = \"conservative\" AND second_member = \"humphrey mildmay\"",
"context": "CREATE TABLE table_name_2 (third_member VARCHAR, second_member VARCHAR, second_party VARCHAR, third_party VARCHAR)",
"question": "Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?"
} |
### QUESTION
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
### CONTEXT
CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)
### ANSWER
SELECT opponent FROM table_name_25 WHERE outcome = "runner-up" AND date = "19 september 1994" | {
"answer": "SELECT opponent FROM table_name_25 WHERE outcome = \"runner-up\" AND date = \"19 september 1994\"",
"context": "CREATE TABLE table_name_25 (opponent VARCHAR, outcome VARCHAR, date VARCHAR)",
"question": "What is the opponent with the outcome of runner-up with a date of 19 september 1994?"
} |
### 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
Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.
### CONTEXT
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
### ANSWER
SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') | {
"answer": "SELECT T1.fname, T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE NOT T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')",
"context": "CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE student (fname VARCHAR, age VARCHAR, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)",
"question": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge."
} |
### QUESTION
State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?
### CONTEXT
CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)
### ANSWER
SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "2%" | {
"answer": "SELECT investment_income FROM table_name_67 WHERE state_pensions = \"7%\" AND self_employed = \"7%\" AND other_income_sources = \"2%\"",
"context": "CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)",
"question": "State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?"
} |
### QUESTION
What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2?
### CONTEXT
CREATE TABLE table_name_4 (wins VARCHAR, losses VARCHAR, goals_for VARCHAR, team VARCHAR)
### ANSWER
SELECT COUNT(wins) FROM table_name_4 WHERE goals_for > 35 AND team = "montreal hockey club" AND losses < 2 | {
"answer": "SELECT COUNT(wins) FROM table_name_4 WHERE goals_for > 35 AND team = \"montreal hockey club\" AND losses < 2",
"context": "CREATE TABLE table_name_4 (wins VARCHAR, losses VARCHAR, goals_for VARCHAR, team VARCHAR)",
"question": "What is the sum of wins when the goals for number was bigger than 35, the team was the Montreal Hockey Club, and the number of losses was less than 2?"
} |
### QUESTION
What was the earliest release-year of the first charted record of Abba?
### CONTEXT
CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR)
### ANSWER
SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = "abba" | {
"answer": "SELECT MIN(release_year_of_first_charted_record) FROM table_name_88 WHERE artist = \"abba\"",
"context": "CREATE TABLE table_name_88 (release_year_of_first_charted_record INTEGER, artist VARCHAR)",
"question": "What was the earliest release-year of the first charted record of Abba?"
} |
### QUESTION
Which college was the wide receiver whose pick was less than 130.0 picked from?
### CONTEXT
CREATE TABLE table_14649522_1 (college VARCHAR, position VARCHAR, pick__number VARCHAR)
### ANSWER
SELECT college FROM table_14649522_1 WHERE position = "Wide Receiver" AND pick__number < 130.0 | {
"answer": "SELECT college FROM table_14649522_1 WHERE position = \"Wide Receiver\" AND pick__number < 130.0",
"context": "CREATE TABLE table_14649522_1 (college VARCHAR, position VARCHAR, pick__number VARCHAR)",
"question": "Which college was the wide receiver whose pick was less than 130.0 picked from?"
} |
### QUESTION
What was the largest crowd when South Melbourne was the away team?
### CONTEXT
CREATE TABLE table_name_89 (crowd INTEGER, away_team VARCHAR)
### ANSWER
SELECT MAX(crowd) FROM table_name_89 WHERE away_team = "south melbourne" | {
"answer": "SELECT MAX(crowd) FROM table_name_89 WHERE away_team = \"south melbourne\"",
"context": "CREATE TABLE table_name_89 (crowd INTEGER, away_team VARCHAR)",
"question": "What was the largest crowd when South Melbourne was the away team?"
} |
### QUESTION
What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29?
### CONTEXT
CREATE TABLE table_name_99 (nominated_by_the_taoiseach INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR, administrative_panel VARCHAR)
### ANSWER
SELECT AVG(nominated_by_the_taoiseach) FROM table_name_99 WHERE industrial_and_commercial_panel < 9 AND administrative_panel > 0 AND cultural_and_educational_panel > 2 AND total < 29 | {
"answer": "SELECT AVG(nominated_by_the_taoiseach) FROM table_name_99 WHERE industrial_and_commercial_panel < 9 AND administrative_panel > 0 AND cultural_and_educational_panel > 2 AND total < 29",
"context": "CREATE TABLE table_name_99 (nominated_by_the_taoiseach INTEGER, total VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR, administrative_panel VARCHAR)",
"question": "What is the average nominated of the composition nominated by Taioseach with an Industrial and Commercial panel less than 9, an administrative panel greater than 0, a cultural and educational panel greater than 2, and a total less than 29?"
} |
### QUESTION
How many Drawn does the team Portuguesa Santista have?
### CONTEXT
CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)
### ANSWER
SELECT drawn FROM table_15352382_1 WHERE team = "Portuguesa Santista" | {
"answer": "SELECT drawn FROM table_15352382_1 WHERE team = \"Portuguesa Santista\"",
"context": "CREATE TABLE table_15352382_1 (drawn VARCHAR, team VARCHAR)",
"question": "How many Drawn does the team Portuguesa Santista have?"
} |
### QUESTION
What record was set when the result/game was montreal 20 @ ottawa 10?
### CONTEXT
CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR)
### ANSWER
SELECT type_of_record FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" | {
"answer": "SELECT type_of_record FROM table_21436373_8 WHERE result_games = \"Montreal 20 @ Ottawa 10\"",
"context": "CREATE TABLE table_21436373_8 (type_of_record VARCHAR, result_games VARCHAR)",
"question": "What record was set when the result/game was montreal 20 @ ottawa 10?"
} |
### QUESTION
What is the name of the nurse has the most appointments?
### CONTEXT
CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)
### ANSWER
SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR)",
"question": "What is the name of the nurse has the most appointments?"
} |
### QUESTION
What are the names of customers using the most popular payment method?
### CONTEXT
CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)
### ANSWER
SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1) | {
"answer": "SELECT customer_name FROM customers WHERE payment_method = (SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1)",
"context": "CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR)",
"question": "What are the names of customers using the most popular payment method?"
} |
### QUESTION
What Airport's IATA is SEA?
### CONTEXT
CREATE TABLE table_name_56 (airport VARCHAR, iata VARCHAR)
### ANSWER
SELECT airport FROM table_name_56 WHERE iata = "sea" | {
"answer": "SELECT airport FROM table_name_56 WHERE iata = \"sea\"",
"context": "CREATE TABLE table_name_56 (airport VARCHAR, iata VARCHAR)",
"question": "What Airport's IATA is SEA?"
} |
### QUESTION
Find the physicians who are trained in a procedure that costs more than 5000.
### CONTEXT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER)
### ANSWER
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000 | {
"answer": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T3.cost > 5000",
"context": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost INTEGER)",
"question": "Find the physicians who are trained in a procedure that costs more than 5000."
} |
### QUESTION
how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchi
### CONTEXT
CREATE TABLE table_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__japanese_ VARCHAR)
### ANSWER
SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = "Shinobu Satouchi" | {
"answer": "SELECT COUNT(voice_actor__english_1998___pioneer_) FROM table_1410384_1 WHERE voice_actor__japanese_ = \"Shinobu Satouchi\"",
"context": "CREATE TABLE table_1410384_1 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__japanese_ VARCHAR)",
"question": " how many voice actor (englbeingh 1998 / pioneer) with voice actor (japanese) being shinobu satouchi"
} |
### QUESTION
For the group name European Progressive Democrats what is the French abbr?
### CONTEXT
CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR)
### ANSWER
SELECT french_abbr FROM table_name_23 WHERE group_name = "european progressive democrats" | {
"answer": "SELECT french_abbr FROM table_name_23 WHERE group_name = \"european progressive democrats\"",
"context": "CREATE TABLE table_name_23 (french_abbr VARCHAR, group_name VARCHAR)",
"question": "For the group name European Progressive Democrats what is the French abbr?"
} |
### QUESTION
Year of 2006-07 had what studio host?
### CONTEXT
CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)
### ANSWER
SELECT studio_host FROM table_name_10 WHERE year = "2006-07" | {
"answer": "SELECT studio_host FROM table_name_10 WHERE year = \"2006-07\"",
"context": "CREATE TABLE table_name_10 (studio_host VARCHAR, year VARCHAR)",
"question": "Year of 2006-07 had what studio host?"
} |
### QUESTION
What is the customer id, first and last name with most number of accounts.
### CONTEXT
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
### ANSWER
SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.customer_id, T2.customer_first_name, T2.customer_last_name FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)",
"question": "What is the customer id, first and last name with most number of accounts."
} |
### QUESTION
What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes?
### CONTEXT
CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR)
### ANSWER
SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1 | {
"answer": "SELECT wins FROM table_name_68 WHERE finishes < 7 AND starts > 1 AND points = 1",
"context": "CREATE TABLE table_name_68 (wins VARCHAR, points VARCHAR, finishes VARCHAR, starts VARCHAR)",
"question": "What is the number of wins associated with 1 point, more than 1 start, and under 7 finishes?"
} |
### QUESTION
what's the date of completion where deadline for completion is september 30, 2007
### CONTEXT
CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR)
### ANSWER
SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = "September 30, 2007" | {
"answer": "SELECT date_of_completion FROM table_12078626_1 WHERE deadline_for_completion = \"September 30, 2007\"",
"context": "CREATE TABLE table_12078626_1 (date_of_completion VARCHAR, deadline_for_completion VARCHAR)",
"question": " what's the date of completion where deadline for completion is september 30, 2007"
} |
### QUESTION
List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.
### CONTEXT
CREATE TABLE school (School_name VARCHAR, Mascot VARCHAR, IHSAA_Football_Class VARCHAR, school_id VARCHAR); CREATE TABLE budget (school_id VARCHAR, total_budget_percent_invested VARCHAR, total_budget_percent_budgeted VARCHAR)
### ANSWER
SELECT T1.School_name, T1.Mascot, T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested, T2.total_budget_percent_budgeted | {
"answer": "SELECT T1.School_name, T1.Mascot, T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested, T2.total_budget_percent_budgeted",
"context": "CREATE TABLE school (School_name VARCHAR, Mascot VARCHAR, IHSAA_Football_Class VARCHAR, school_id VARCHAR); CREATE TABLE budget (school_id VARCHAR, total_budget_percent_invested VARCHAR, total_budget_percent_budgeted VARCHAR)",
"question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget."
} |
### QUESTION
Who is the player who won in 1994?
### CONTEXT
CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR)
### ANSWER
SELECT player FROM table_name_91 WHERE year_s__won = "1994" | {
"answer": "SELECT player FROM table_name_91 WHERE year_s__won = \"1994\"",
"context": "CREATE TABLE table_name_91 (player VARCHAR, year_s__won VARCHAR)",
"question": "Who is the player who won in 1994?"
} |
### QUESTION
When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement?
### CONTEXT
CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)
### ANSWER
SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = "Orthodox Christianity" AND type = "village" AND cyrillic_name_other_names = "Ратково" | {
"answer": "SELECT settlement FROM table_2562572_25 WHERE dominant_religion__2002_ = \"Orthodox Christianity\" AND type = \"village\" AND cyrillic_name_other_names = \"Ратково\"",
"context": "CREATE TABLE table_2562572_25 (settlement VARCHAR, cyrillic_name_other_names VARCHAR, dominant_religion__2002_ VARCHAR, type VARCHAR)",
"question": "When ратково is cyrillic name other names and village is the type and orthodox Christianity is the dominant religion of 2002 what is the settlement? "
} |
### QUESTION
Which club had football at Mitchel Athletic Field?
### CONTEXT
CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR)
### ANSWER
SELECT club FROM table_name_43 WHERE sport = "football" AND venue = "mitchel athletic field" | {
"answer": "SELECT club FROM table_name_43 WHERE sport = \"football\" AND venue = \"mitchel athletic field\"",
"context": "CREATE TABLE table_name_43 (club VARCHAR, sport VARCHAR, venue VARCHAR)",
"question": "Which club had football at Mitchel Athletic Field?"
} |
### QUESTION
display the department name and number of employees in each of the department.
### CONTEXT
CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)
### ANSWER
SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name | {
"answer": "SELECT department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name",
"context": "CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR)",
"question": "display the department name and number of employees in each of the department."
} |
### QUESTION
What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?
### CONTEXT
CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR)
### ANSWER
SELECT MIN(first_elected) FROM table_name_19 WHERE party = "republican" AND district = "minnesota 1" | {
"answer": "SELECT MIN(first_elected) FROM table_name_19 WHERE party = \"republican\" AND district = \"minnesota 1\"",
"context": "CREATE TABLE table_name_19 (first_elected INTEGER, party VARCHAR, district VARCHAR)",
"question": "What is the lowest First Elected, when Party is \"Republican\", and when District is \"Minnesota 1\"?"
} |
### QUESTION
What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?
### CONTEXT
CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR)
### ANSWER
SELECT score FROM table_name_39 WHERE winner = "sanyo wild knights" AND runner_up = "suntory sungoliath" | {
"answer": "SELECT score FROM table_name_39 WHERE winner = \"sanyo wild knights\" AND runner_up = \"suntory sungoliath\"",
"context": "CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR)",
"question": "What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?"
} |
### QUESTION
Name the record for verizon center 20,173
### CONTEXT
CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR)
### ANSWER
SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173" | {
"answer": "SELECT record FROM table_17288845_8 WHERE location_attendance = \"Verizon Center 20,173\"",
"context": "CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR)",
"question": "Name the record for verizon center 20,173"
} |
### QUESTION
Show the apartment numbers of apartments with unit status availability of both 0 and 1.
### CONTEXT
CREATE TABLE View_Unit_Status (apt_id VARCHAR, available_yn VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)
### ANSWER
SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1 | {
"answer": "SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 0 INTERSECT SELECT T1.apt_number FROM Apartments AS T1 JOIN View_Unit_Status AS T2 ON T1.apt_id = T2.apt_id WHERE T2.available_yn = 1",
"context": "CREATE TABLE View_Unit_Status (apt_id VARCHAR, available_yn VARCHAR); CREATE TABLE Apartments (apt_number VARCHAR, apt_id VARCHAR)",
"question": "Show the apartment numbers of apartments with unit status availability of both 0 and 1."
} |
### QUESTION
Find all the songs produced by artists with first name "Marianne".
### CONTEXT
CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)
### ANSWER
SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = "Marianne" | {
"answer": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = \"Marianne\"",
"context": "CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)",
"question": "Find all the songs produced by artists with first name \"Marianne\"."
} |
### QUESTION
What area shows % Hindu of statistics from the bbc in depth report.?
### CONTEXT
CREATE TABLE table_name_71 (area VARCHAR, _percentage_hindu VARCHAR)
### ANSWER
SELECT area FROM table_name_71 WHERE _percentage_hindu = "statistics from the bbc in depth report." | {
"answer": "SELECT area FROM table_name_71 WHERE _percentage_hindu = \"statistics from the bbc in depth report.\"",
"context": "CREATE TABLE table_name_71 (area VARCHAR, _percentage_hindu VARCHAR)",
"question": "What area shows % Hindu of statistics from the bbc in depth report.?"
} |
### QUESTION
What is the 2011 population if the headquarters is Chittorgarh?
### CONTEXT
CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR)
### ANSWER
SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh" | {
"answer": "SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = \"Chittorgarh\"",
"context": "CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR)",
"question": "What is the 2011 population if the headquarters is Chittorgarh?"
} |
### QUESTION
Name the year for is my magic
### CONTEXT
CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
### ANSWER
SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = "My Magic" | {
"answer": "SELECT year__ceremony_ FROM table_21790203_1 WHERE film_title_used_in_nomination = \"My Magic\"",
"context": "CREATE TABLE table_21790203_1 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)",
"question": "Name the year for is my magic"
} |
### QUESTION
Find the states which do not have any employee in their record.
### CONTEXT
CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)
### ANSWER
SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees) | {
"answer": "SELECT state_province_county FROM addresses WHERE NOT address_id IN (SELECT employee_address_id FROM Employees)",
"context": "CREATE TABLE Employees (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR); CREATE TABLE addresses (state_province_county VARCHAR, address_id VARCHAR, employee_address_id VARCHAR)",
"question": "Find the states which do not have any employee in their record."
} |
### QUESTION
What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?
### CONTEXT
CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR)
### ANSWER
SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = "chaguaramas" | {
"answer": "SELECT SUM(top_division_titles) FROM table_name_90 WHERE founded < 1975 AND location = \"chaguaramas\"",
"context": "CREATE TABLE table_name_90 (top_division_titles INTEGER, founded VARCHAR, location VARCHAR)",
"question": "What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?"
} |
### QUESTION
How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?
### CONTEXT
CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)
### ANSWER
SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = "4.4%" | {
"answer": "SELECT COUNT(south_asians_2001) FROM table_1717824_1 WHERE _percentage_2011 = \"4.4%\"",
"context": "CREATE TABLE table_1717824_1 (south_asians_2001 VARCHAR, _percentage_2011 VARCHAR)",
"question": "How many figures are given for total number of South Asians in 2001 for the area where they were 4.4% of population in 2011?"
} |
### QUESTION
Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?
### CONTEXT
CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)
### ANSWER
SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869 | {
"answer": "SELECT MAX(altitude__mslm_) FROM table_name_20 WHERE area__km_2__ < 13.01 AND population = 74536 AND density__inhabitants_km_2__ > 5869",
"context": "CREATE TABLE table_name_20 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, area__km_2__ VARCHAR, population VARCHAR)",
"question": "Which Altitude (mslm) is the highest one that has an Area (km 2) smaller than 13.01, and a Population of 74536, and a Density (inhabitants/km 2) larger than 5869?"
} |
### QUESTION
What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed?
### CONTEXT
CREATE TABLE table_name_56 (most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR)
### ANSWER
SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992 | {
"answer": "SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = \"2770\" AND first_time_as_hc_climb < 1992",
"context": "CREATE TABLE table_name_56 (most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR)",
"question": "What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed?"
} |
### QUESTION
Which Advisor has most of students? List advisor and the number of students.
### CONTEXT
CREATE TABLE Student (Advisor VARCHAR)
### ANSWER
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1 | {
"answer": "SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1",
"context": "CREATE TABLE Student (Advisor VARCHAR)",
"question": "Which Advisor has most of students? List advisor and the number of students."
} |
### QUESTION
How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?
### CONTEXT
CREATE TABLE table_name_83 (tonnage___grt__ INTEGER, deaths VARCHAR, date VARCHAR, fate VARCHAR, flag VARCHAR)
### ANSWER
SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = "sunk" AND flag = "great britain" AND date = "26 september 1940" AND deaths = 2 | {
"answer": "SELECT SUM(tonnage___grt__) FROM table_name_83 WHERE fate = \"sunk\" AND flag = \"great britain\" AND date = \"26 september 1940\" AND deaths = 2",
"context": "CREATE TABLE table_name_83 (tonnage___grt__ INTEGER, deaths VARCHAR, date VARCHAR, fate VARCHAR, flag VARCHAR)",
"question": "How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?"
} |
### QUESTION
What is the current account balance for an export volume of goods and service value of -4.2?
### CONTEXT
CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, export_volume_of_goods_and_services__percent_change_ VARCHAR)
### ANSWER
SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE export_volume_of_goods_and_services__percent_change_ = "-4.2" | {
"answer": "SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE export_volume_of_goods_and_services__percent_change_ = \"-4.2\"",
"context": "CREATE TABLE table_30133_1 (current_account_balance__percent_of_gdp_ VARCHAR, export_volume_of_goods_and_services__percent_change_ VARCHAR)",
"question": "What is the current account balance for an export volume of goods and service value of -4.2?"
} |
### QUESTION
What is the elevator when elevated is May 16, 1288, and cardinalatial title shows Deacon of S. Adriano?
### CONTEXT
CREATE TABLE table_name_21 (elevator VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)
### ANSWER
SELECT elevator FROM table_name_21 WHERE elevated = "may 16, 1288" AND cardinalatial_title = "deacon of s. adriano" | {
"answer": "SELECT elevator FROM table_name_21 WHERE elevated = \"may 16, 1288\" AND cardinalatial_title = \"deacon of s. adriano\"",
"context": "CREATE TABLE table_name_21 (elevator VARCHAR, elevated VARCHAR, cardinalatial_title VARCHAR)",
"question": "What is the elevator when elevated is May 16, 1288, and cardinalatial title shows Deacon of S. Adriano?"
} |
### QUESTION
What is the Away captain when the Result was draw, and a Venue of lord's?
### CONTEXT
CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR)
### ANSWER
SELECT away_captain FROM table_name_72 WHERE result = "draw" AND venue = "lord's" | {
"answer": "SELECT away_captain FROM table_name_72 WHERE result = \"draw\" AND venue = \"lord's\"",
"context": "CREATE TABLE table_name_72 (away_captain VARCHAR, result VARCHAR, venue VARCHAR)",
"question": "What is the Away captain when the Result was draw, and a Venue of lord's?"
} |
### QUESTION
Find the name of services that have been used for more than 2 times in first notification of loss.
### CONTEXT
CREATE TABLE services (service_name VARCHAR, service_id VARCHAR); CREATE TABLE first_notification_of_loss (service_id VARCHAR)
### ANSWER
SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2 | {
"answer": "SELECT t2.service_name FROM first_notification_of_loss AS t1 JOIN services AS t2 ON t1.service_id = t2.service_id GROUP BY t1.service_id HAVING COUNT(*) > 2",
"context": "CREATE TABLE services (service_name VARCHAR, service_id VARCHAR); CREATE TABLE first_notification_of_loss (service_id VARCHAR)",
"question": "Find the name of services that have been used for more than 2 times in first notification of loss."
} |
### QUESTION
What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?
### CONTEXT
CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, sport VARCHAR, bronze VARCHAR, total VARCHAR)
### ANSWER
SELECT MIN(silver) FROM table_name_90 WHERE bronze < 20 AND total = 1 AND sport = "water polo" AND gold < 0 | {
"answer": "SELECT MIN(silver) FROM table_name_90 WHERE bronze < 20 AND total = 1 AND sport = \"water polo\" AND gold < 0",
"context": "CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, sport VARCHAR, bronze VARCHAR, total VARCHAR)",
"question": "What is the smallest number of silvers associated with bronzes under 20, totals of 1, golds of 0, and in Water Polo?"
} |
### QUESTION
What is the general classification with riccardo riccò as the young rider classification?
### CONTEXT
CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR)
### ANSWER
SELECT general_classification FROM table_name_37 WHERE young_rider_classification = "riccardo riccò" | {
"answer": "SELECT general_classification FROM table_name_37 WHERE young_rider_classification = \"riccardo riccò\"",
"context": "CREATE TABLE table_name_37 (general_classification VARCHAR, young_rider_classification VARCHAR)",
"question": "What is the general classification with riccardo riccò as the young rider classification?"
} |
### QUESTION
What was the crowd size for the away team footscray?
### CONTEXT
CREATE TABLE table_name_59 (crowd VARCHAR, away_team VARCHAR)
### ANSWER
SELECT crowd FROM table_name_59 WHERE away_team = "footscray" | {
"answer": "SELECT crowd FROM table_name_59 WHERE away_team = \"footscray\"",
"context": "CREATE TABLE table_name_59 (crowd VARCHAR, away_team VARCHAR)",
"question": "What was the crowd size for the away team footscray?"
} |
### QUESTION
Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?
### CONTEXT
CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)
### ANSWER
SELECT home_team FROM table_name_81 WHERE tie_no = "replay" AND away_team = "bolton wanderers" | {
"answer": "SELECT home_team FROM table_name_81 WHERE tie_no = \"replay\" AND away_team = \"bolton wanderers\"",
"context": "CREATE TABLE table_name_81 (home_team VARCHAR, tie_no VARCHAR, away_team VARCHAR)",
"question": "Who was the home team that had a replay of Tie Number and played against the Bolton Wanderers?"
} |
### QUESTION
Name the number of players when starter is no and touchdowns is 1 for right halfback
### CONTEXT
CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR)
### ANSWER
SELECT COUNT(player) FROM table_14342592_4 WHERE starter = "No" AND touchdowns = 1 AND position = "Right halfback" | {
"answer": "SELECT COUNT(player) FROM table_14342592_4 WHERE starter = \"No\" AND touchdowns = 1 AND position = \"Right halfback\"",
"context": "CREATE TABLE table_14342592_4 (player VARCHAR, position VARCHAR, starter VARCHAR, touchdowns VARCHAR)",
"question": "Name the number of players when starter is no and touchdowns is 1 for right halfback"
} |
### QUESTION
How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?
### CONTEXT
CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)
### ANSWER
SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81 | {
"answer": "SELECT COUNT(lecturers) FROM table_name_71 WHERE assistant_professors > 8 AND professors > 14 AND associate_professors < 35 AND total > 81",
"context": "CREATE TABLE table_name_71 (lecturers VARCHAR, total VARCHAR, associate_professors VARCHAR, assistant_professors VARCHAR, professors VARCHAR)",
"question": "How may lecturers are there in the case when there are more than 8 assistant professors, fewer than 35 associate professors, more than 14 professors and total of more than 81?"
} |
### QUESTION
What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?
### CONTEXT
CREATE TABLE table_name_51 (wins INTEGER, byes VARCHAR, against VARCHAR, losses VARCHAR)
### ANSWER
SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 2 | {
"answer": "SELECT AVG(wins) FROM table_name_51 WHERE against < 1786 AND losses < 4 AND byes < 2",
"context": "CREATE TABLE table_name_51 (wins INTEGER, byes VARCHAR, against VARCHAR, losses VARCHAR)",
"question": "What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?"
} |
### QUESTION
What are the total number of Domestic Passengers of airports that contain the word "London".
### CONTEXT
CREATE TABLE airport (Domestic_Passengers INTEGER, Airport_Name VARCHAR)
### ANSWER
SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE "%London%" | {
"answer": "SELECT SUM(Domestic_Passengers) FROM airport WHERE Airport_Name LIKE \"%London%\"",
"context": "CREATE TABLE airport (Domestic_Passengers INTEGER, Airport_Name VARCHAR)",
"question": "What are the total number of Domestic Passengers of airports that contain the word \"London\"."
} |
### QUESTION
Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?
### CONTEXT
CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)
### ANSWER
SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)",
"question": "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?"
} |
### QUESTION
What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
### CONTEXT
CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)
### ANSWER
SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001 | {
"answer": "SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = \"chch-tv\" AND year_of_affiliation > 2001",
"context": "CREATE TABLE table_name_31 (year_of_disaffiliation INTEGER, station VARCHAR, year_of_affiliation VARCHAR)",
"question": "What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?"
} |
### QUESTION
What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?
### CONTEXT
CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)
### ANSWER
SELECT song_title FROM table_21500850_1 WHERE genre = "Rock" AND original_game = "Guitar Hero" AND artist = "Queens of the Stone Age" | {
"answer": "SELECT song_title FROM table_21500850_1 WHERE genre = \"Rock\" AND original_game = \"Guitar Hero\" AND artist = \"Queens of the Stone Age\"",
"context": "CREATE TABLE table_21500850_1 (song_title VARCHAR, artist VARCHAR, genre VARCHAR, original_game VARCHAR)",
"question": "What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age?"
} |
### QUESTION
What are the ids and names of the battles that led to more than 10 people killed in total.
### CONTEXT
CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10 | {
"answer": "SELECT T1.id, T1.name FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle JOIN death AS T3 ON T2.id = T3.caused_by_ship_id GROUP BY T1.id HAVING SUM(T3.killed) > 10",
"context": "CREATE TABLE death (caused_by_ship_id VARCHAR, killed INTEGER); CREATE TABLE battle (id VARCHAR, name VARCHAR); CREATE TABLE ship (lost_in_battle VARCHAR, id VARCHAR)",
"question": "What are the ids and names of the battles that led to more than 10 people killed in total."
} |
### QUESTION
How many episodes have a series number of 35?
### CONTEXT
CREATE TABLE table_13505192_3 (episode_title VARCHAR, series_number VARCHAR)
### ANSWER
SELECT COUNT(episode_title) FROM table_13505192_3 WHERE series_number = 35 | {
"answer": "SELECT COUNT(episode_title) FROM table_13505192_3 WHERE series_number = 35",
"context": "CREATE TABLE table_13505192_3 (episode_title VARCHAR, series_number VARCHAR)",
"question": "How many episodes have a series number of 35?"
} |
### QUESTION
Location of the school with the nickname Mountaineers
### CONTEXT
CREATE TABLE table_16432543_1 (location VARCHAR, nickname VARCHAR)
### ANSWER
SELECT location FROM table_16432543_1 WHERE nickname = "Mountaineers" | {
"answer": "SELECT location FROM table_16432543_1 WHERE nickname = \"Mountaineers\"",
"context": "CREATE TABLE table_16432543_1 (location VARCHAR, nickname VARCHAR)",
"question": "Location of the school with the nickname Mountaineers"
} |
### QUESTION
What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
### CONTEXT
CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)
### ANSWER
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.8%" | {
"answer": "SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = \"0.8%\"",
"context": "CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)",
"question": "What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?"
} |
### QUESTION
what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?
### CONTEXT
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR)
### ANSWER
SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002 | {
"answer": "SELECT venue FROM table_name_93 WHERE competition = \"asian games\" AND event = \"4x400 m relay\" AND year = 2002",
"context": "CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR)",
"question": "what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?"
} |
### QUESTION
What nation are carolina hermann / daniel hermann from?
### CONTEXT
CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)
### ANSWER
SELECT nation FROM table_name_64 WHERE name = "carolina hermann / daniel hermann" | {
"answer": "SELECT nation FROM table_name_64 WHERE name = \"carolina hermann / daniel hermann\"",
"context": "CREATE TABLE table_name_64 (nation VARCHAR, name VARCHAR)",
"question": "What nation are carolina hermann / daniel hermann from?"
} |
### QUESTION
Show the names of buildings except for those having an institution founded in 2003.
### CONTEXT
CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR)
### ANSWER
SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003 | {
"answer": "SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003",
"context": "CREATE TABLE building (name VARCHAR, building_id VARCHAR); CREATE TABLE building (name VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded VARCHAR)",
"question": "Show the names of buildings except for those having an institution founded in 2003."
} |
### QUESTION
WHAT IS THE TO PAR FOR ERNIE ELS?
### CONTEXT
CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR)
### ANSWER
SELECT to_par FROM table_name_3 WHERE player = "ernie els" | {
"answer": "SELECT to_par FROM table_name_3 WHERE player = \"ernie els\"",
"context": "CREATE TABLE table_name_3 (to_par VARCHAR, player VARCHAR)",
"question": "WHAT IS THE TO PAR FOR ERNIE ELS?"
} |
### QUESTION
What is the most households with a median household income of $54,086 with less than 231,236 in population?
### CONTEXT
CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)
### ANSWER
SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = "$54,086" AND population < 231 OFFSET 236 | {
"answer": "SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = \"$54,086\" AND population < 231 OFFSET 236",
"context": "CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR)",
"question": "What is the most households with a median household income of $54,086 with less than 231,236 in population?"
} |
### QUESTION
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
### CONTEXT
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
### ANSWER
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192" | {
"answer": "SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = \"2192\"",
"context": "CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)",
"question": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192."
} |
### QUESTION
Name the distance for Course of vittorio veneto to marina romea
### CONTEXT
CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)
### ANSWER
SELECT distance FROM table_name_3 WHERE course = "vittorio veneto to marina romea" | {
"answer": "SELECT distance FROM table_name_3 WHERE course = \"vittorio veneto to marina romea\"",
"context": "CREATE TABLE table_name_3 (distance VARCHAR, course VARCHAR)",
"question": "Name the distance for Course of vittorio veneto to marina romea"
} |
### QUESTION
Name the wininng yacht for 14 entries
### CONTEXT
CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR)
### ANSWER
SELECT winning_yacht FROM table_256862_1 WHERE entries = "14" | {
"answer": "SELECT winning_yacht FROM table_256862_1 WHERE entries = \"14\"",
"context": "CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR)",
"question": "Name the wininng yacht for 14 entries"
} |
### QUESTION
What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?
### CONTEXT
CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)
### ANSWER
SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = "new bandon" | {
"answer": "SELECT MAX(population) FROM table_name_97 WHERE area_km_2 > 326.76 AND official_name = \"new bandon\"",
"context": "CREATE TABLE table_name_97 (population INTEGER, area_km_2 VARCHAR, official_name VARCHAR)",
"question": "What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?"
} |
### QUESTION
What year did the Nashville Metros have the Regular Season 2nd, central?
### CONTEXT
CREATE TABLE table_name_74 (year VARCHAR, regular_season VARCHAR)
### ANSWER
SELECT year FROM table_name_74 WHERE regular_season = "2nd, central" | {
"answer": "SELECT year FROM table_name_74 WHERE regular_season = \"2nd, central\"",
"context": "CREATE TABLE table_name_74 (year VARCHAR, regular_season VARCHAR)",
"question": "What year did the Nashville Metros have the Regular Season 2nd, central?"
} |
### QUESTION
Return the names of songs for which format is mp3 and resolution is below 1000.
### CONTEXT
CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)
### ANSWER
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 | {
"answer": "SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = \"mp3\" INTERSECT SELECT song_name FROM song WHERE resolution < 1000",
"context": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE files (f_id VARCHAR, formats VARCHAR)",
"question": "Return the names of songs for which format is mp3 and resolution is below 1000."
} |
### QUESTION
How many items are listed under caps when burnley is the club team?
### CONTEXT
CREATE TABLE table_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR)
### ANSWER
SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = "Burnley" | {
"answer": "SELECT COUNT(cap_s_) FROM table_28286776_12 WHERE club_s_ = \"Burnley\"",
"context": "CREATE TABLE table_28286776_12 (cap_s_ VARCHAR, club_s_ VARCHAR)",
"question": "How many items are listed under caps when burnley is the club team?"
} |
### QUESTION
Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?
### CONTEXT
CREATE TABLE table_name_61 (tv_season VARCHAR, season VARCHAR, households__in_millions_ VARCHAR)
### ANSWER
SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = "15.92 (17.1 rating)" | {
"answer": "SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = \"15.92 (17.1 rating)\"",
"context": "CREATE TABLE table_name_61 (tv_season VARCHAR, season VARCHAR, households__in_millions_ VARCHAR)",
"question": "Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?"
} |
### QUESTION
Who is the winning driver of the race with no race as the winning manufacturer?
### CONTEXT
CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR)
### ANSWER
SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = "no race" | {
"answer": "SELECT winning_driver FROM table_name_66 WHERE winning_manufacturer = \"no race\"",
"context": "CREATE TABLE table_name_66 (winning_driver VARCHAR, winning_manufacturer VARCHAR)",
"question": "Who is the winning driver of the race with no race as the winning manufacturer?"
} |
### QUESTION
What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?
### CONTEXT
CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR)
### ANSWER
SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = "spain" AND rank = 19 AND debt_as__percentageof_value > 159 | {
"answer": "SELECT COUNT(value__) AS $m_ FROM table_name_54 WHERE country = \"spain\" AND rank = 19 AND debt_as__percentageof_value > 159",
"context": "CREATE TABLE table_name_54 (value__ VARCHAR, debt_as__percentageof_value VARCHAR, country VARCHAR, rank VARCHAR)",
"question": "What was the total amount of Value ($M), when the Country was Spain, the Rank was 19, and the Debt as % of value was larger than 159?"
} |
### QUESTION
How many episodes aired on 25 october 2012?
### CONTEXT
CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)
### ANSWER
SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012" | {
"answer": "SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = \"25 October 2012\"",
"context": "CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)",
"question": "How many episodes aired on 25 october 2012?"
} |
### QUESTION
Name the feb 2010 for january 2010 for 6.2%
### CONTEXT
CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR)
### ANSWER
SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = "6.2%" | {
"answer": "SELECT february_2010 FROM table_25256368_1 WHERE january_2010 = \"6.2%\"",
"context": "CREATE TABLE table_25256368_1 (february_2010 VARCHAR, january_2010 VARCHAR)",
"question": "Name the feb 2010 for january 2010 for 6.2%"
} |
### QUESTION
Who appointed the representative that had a Presentation of Credentials on March 25, 1976?
### CONTEXT
CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)
### ANSWER
SELECT appointed_by FROM table_name_72 WHERE presentation_of_credentials = "march 25, 1976" | {
"answer": "SELECT appointed_by FROM table_name_72 WHERE presentation_of_credentials = \"march 25, 1976\"",
"context": "CREATE TABLE table_name_72 (appointed_by VARCHAR, presentation_of_credentials VARCHAR)",
"question": "Who appointed the representative that had a Presentation of Credentials on March 25, 1976?"
} |
### QUESTION
What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?
### CONTEXT
CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)
### ANSWER
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open' | {
"answer": "SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'WTA Championships' INTERSECT SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN matches AS T2 ON T1.player_id = T2.winner_id WHERE T2.tourney_name = 'Australian Open'",
"context": "CREATE TABLE matches (winner_id VARCHAR, tourney_name VARCHAR); CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR)",
"question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?"
} |
### QUESTION
Name the total number of reason for change for not filled this congress
### CONTEXT
CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
### ANSWER
SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = "Not filled this congress" | {
"answer": "SELECT COUNT(reason_for_change) FROM table_225200_4 WHERE date_successor_seated = \"Not filled this congress\"",
"context": "CREATE TABLE table_225200_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)",
"question": "Name the total number of reason for change for not filled this congress"
} |
### QUESTION
How many times is keauna mclaughlin / rockne brubaker ranked?
### CONTEXT
CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(rank) FROM table_23938357_6 WHERE name = "Keauna McLaughlin / Rockne Brubaker" | {
"answer": "SELECT COUNT(rank) FROM table_23938357_6 WHERE name = \"Keauna McLaughlin / Rockne Brubaker\"",
"context": "CREATE TABLE table_23938357_6 (rank VARCHAR, name VARCHAR)",
"question": "How many times is keauna mclaughlin / rockne brubaker ranked?"
} |
### QUESTION
What position does the player who is 6-10 play?
### CONTEXT
CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR)
### ANSWER
SELECT position FROM table_name_16 WHERE height_in_ft = "6-10" | {
"answer": "SELECT position FROM table_name_16 WHERE height_in_ft = \"6-10\"",
"context": "CREATE TABLE table_name_16 (position VARCHAR, height_in_ft VARCHAR)",
"question": "What position does the player who is 6-10 play?"
} |
### QUESTION
What was the score on February 14, 1999?
### CONTEXT
CREATE TABLE table_name_32 (score_in_final VARCHAR, date VARCHAR)
### ANSWER
SELECT score_in_final FROM table_name_32 WHERE date = "february 14, 1999" | {
"answer": "SELECT score_in_final FROM table_name_32 WHERE date = \"february 14, 1999\"",
"context": "CREATE TABLE table_name_32 (score_in_final VARCHAR, date VARCHAR)",
"question": "What was the score on February 14, 1999?"
} |
### QUESTION
What is the last name of the musician that has been at the back position the most?
### CONTEXT
CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)
### ANSWER
SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = "back" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T2.lastname FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id WHERE stageposition = \"back\" GROUP BY lastname ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Band (lastname VARCHAR, id VARCHAR); CREATE TABLE Performance (bandmate VARCHAR)",
"question": "What is the last name of the musician that has been at the back position the most?"
} |
### QUESTION
how many mean elevation with lowest point being gulf of mexico and state being texas
### CONTEXT
CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR)
### ANSWER
SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = "Gulf of Mexico" AND state = "Texas" | {
"answer": "SELECT COUNT(mean_elevation) FROM table_1416612_1 WHERE lowest_point = \"Gulf of Mexico\" AND state = \"Texas\"",
"context": "CREATE TABLE table_1416612_1 (mean_elevation VARCHAR, lowest_point VARCHAR, state VARCHAR)",
"question": " how many mean elevation with lowest point being gulf of mexico and state being texas"
} |
### QUESTION
What is the shortest length of a track in Norway that has a maximum grade of 15% and a vertical drop less than 122.22 m?
### CONTEXT
CREATE TABLE table_name_72 (length__m_ INTEGER, country VARCHAR, maximum_grade___percentage_ VARCHAR, vertical_drop__m_ VARCHAR)
### ANSWER
SELECT MIN(length__m_) FROM table_name_72 WHERE maximum_grade___percentage_ = "15" AND vertical_drop__m_ < 122.22 AND country = "norway" | {
"answer": "SELECT MIN(length__m_) FROM table_name_72 WHERE maximum_grade___percentage_ = \"15\" AND vertical_drop__m_ < 122.22 AND country = \"norway\"",
"context": "CREATE TABLE table_name_72 (length__m_ INTEGER, country VARCHAR, maximum_grade___percentage_ VARCHAR, vertical_drop__m_ VARCHAR)",
"question": "What is the shortest length of a track in Norway that has a maximum grade of 15% and a vertical drop less than 122.22 m?"
} |
### QUESTION
in the detroit team who made the high points
### CONTEXT
CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR)
### ANSWER
SELECT high_points FROM table_30049462_5 WHERE team = "Detroit" | {
"answer": "SELECT high_points FROM table_30049462_5 WHERE team = \"Detroit\"",
"context": "CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR)",
"question": "in the detroit team who made the high points"
} |
### QUESTION
Find the number of songs in all the studio albums.
### CONTEXT
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "Studio" | {
"answer": "SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = \"Studio\"",
"context": "CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)",
"question": "Find the number of songs in all the studio albums."
} |
### QUESTION
Name the total number of episodes for coat of cash wearing celebrity is matt di angelo
### CONTEXT
CREATE TABLE table_1590967_6 (episode_number VARCHAR, coat_of_cash_wearing_celebrity VARCHAR)
### ANSWER
SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = "Matt Di Angelo" | {
"answer": "SELECT COUNT(episode_number) FROM table_1590967_6 WHERE coat_of_cash_wearing_celebrity = \"Matt Di Angelo\"",
"context": "CREATE TABLE table_1590967_6 (episode_number VARCHAR, coat_of_cash_wearing_celebrity VARCHAR)",
"question": "Name the total number of episodes for coat of cash wearing celebrity is matt di angelo"
} |
### QUESTION
Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?
### CONTEXT
CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR)
### ANSWER
SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = "smyslov; kasparov" AND position = 5 | {
"answer": "SELECT best_3_year_period FROM table_name_61 WHERE best_15_year_period = \"smyslov; kasparov\" AND position = 5",
"context": "CREATE TABLE table_name_61 (best_3_year_period VARCHAR, best_15_year_period VARCHAR, position VARCHAR)",
"question": "Which best 3-year period has a best 15-year period of smyslov; kasparov, and a Position of 5?"
} |
### QUESTION
I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3
### CONTEXT
CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR)
### ANSWER
SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = "wushu" AND silver > 3 | {
"answer": "SELECT AVG(gold) FROM table_name_2 WHERE total < 12 AND bronze < 1 AND sport = \"wushu\" AND silver > 3",
"context": "CREATE TABLE table_name_2 (gold INTEGER, silver VARCHAR, sport VARCHAR, total VARCHAR, bronze VARCHAR)",
"question": "I want to know the average Gold for total smaller 12 and bronze less than 1 and wushu with silver more than 3"
} |
### QUESTION
I want the driver for grid of 9
### CONTEXT
CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)
### ANSWER
SELECT driver FROM table_name_59 WHERE grid = 9 | {
"answer": "SELECT driver FROM table_name_59 WHERE grid = 9",
"context": "CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR)",
"question": "I want the driver for grid of 9"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.