text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
how many times is the home team wollongong hawks?
### CONTEXT
CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)
### ANSWER
SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = "wollongong hawks" | {
"answer": "SELECT COUNT(crowd) FROM table_name_62 WHERE home_team = \"wollongong hawks\"",
"context": "CREATE TABLE table_name_62 (crowd VARCHAR, home_team VARCHAR)",
"question": "how many times is the home team wollongong hawks?"
} |
### QUESTION
What is the time in a heat smaller than 5, in Lane 5, for Vietnam?
### CONTEXT
CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
### ANSWER
SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = "vietnam" | {
"answer": "SELECT time FROM table_name_88 WHERE heat < 5 AND lane = 5 AND nationality = \"vietnam\"",
"context": "CREATE TABLE table_name_88 (time VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)",
"question": "What is the time in a heat smaller than 5, in Lane 5, for Vietnam?"
} |
### QUESTION
What is the sum of week number(s) had an attendance of 61,985?
### CONTEXT
CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR)
### ANSWER
SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985 | {
"answer": "SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985",
"context": "CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR)",
"question": "What is the sum of week number(s) had an attendance of 61,985?"
} |
### QUESTION
What is the id and name of the department store that has both marketing and managing department?
### CONTEXT
CREATE TABLE department_stores (dept_store_id VARCHAR, store_name VARCHAR); CREATE TABLE departments (dept_store_id VARCHAR, department_name VARCHAR)
### ANSWER
SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = "marketing" INTERSECT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = "managing" | {
"answer": "SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"marketing\" INTERSECT SELECT T2.dept_store_id, T2.store_name FROM departments AS T1 JOIN department_stores AS T2 ON T1.dept_store_id = T2.dept_store_id WHERE T1.department_name = \"managing\"",
"context": "CREATE TABLE department_stores (dept_store_id VARCHAR, store_name VARCHAR); CREATE TABLE departments (dept_store_id VARCHAR, department_name VARCHAR)",
"question": "What is the id and name of the department store that has both marketing and managing department?"
} |
### QUESTION
What is the booking status code of the apartment with apartment number "Suite 634"?
### CONTEXT
CREATE TABLE Apartments (apt_id VARCHAR, apt_number VARCHAR); CREATE TABLE Apartment_Bookings (booking_status_code VARCHAR, apt_id VARCHAR)
### ANSWER
SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = "Suite 634" | {
"answer": "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = \"Suite 634\"",
"context": "CREATE TABLE Apartments (apt_id VARCHAR, apt_number VARCHAR); CREATE TABLE Apartment_Bookings (booking_status_code VARCHAR, apt_id VARCHAR)",
"question": "What is the booking status code of the apartment with apartment number \"Suite 634\"?"
} |
### QUESTION
Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?
### CONTEXT
CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)
### ANSWER
SELECT SUM(year) FROM table_name_96 WHERE role = "narrator" AND radio_station_production_company = "bbc audiobooks" AND release_air_date = "13 november 2008" | {
"answer": "SELECT SUM(year) FROM table_name_96 WHERE role = \"narrator\" AND radio_station_production_company = \"bbc audiobooks\" AND release_air_date = \"13 november 2008\"",
"context": "CREATE TABLE table_name_96 (year INTEGER, release_air_date VARCHAR, role VARCHAR, radio_station_production_company VARCHAR)",
"question": "Role of narrator, and a Radio Station/Production Company of bbc audiobooks, and a Release/Air Date of 13 november 2008 is what sum of the year?"
} |
### QUESTION
Name the circuit when the fastest lap was john surtees and the winning driver was john surtees.
### CONTEXT
CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)
### ANSWER
SELECT circuit FROM table_name_53 WHERE fastest_lap = "john surtees" AND winning_driver = "john surtees" | {
"answer": "SELECT circuit FROM table_name_53 WHERE fastest_lap = \"john surtees\" AND winning_driver = \"john surtees\"",
"context": "CREATE TABLE table_name_53 (circuit VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR)",
"question": "Name the circuit when the fastest lap was john surtees and the winning driver was john surtees."
} |
### QUESTION
Where was the game with a higher score than 1 played?
### CONTEXT
CREATE TABLE table_name_85 (venue VARCHAR, scored INTEGER)
### ANSWER
SELECT venue FROM table_name_85 WHERE scored > 1 | {
"answer": "SELECT venue FROM table_name_85 WHERE scored > 1",
"context": "CREATE TABLE table_name_85 (venue VARCHAR, scored INTEGER)",
"question": "Where was the game with a higher score than 1 played?"
} |
### QUESTION
How many times has Ma Long won the men's singles?
### CONTEXT
CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, mens_singles VARCHAR)
### ANSWER
SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = "Ma Long" | {
"answer": "SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = \"Ma Long\"",
"context": "CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, mens_singles VARCHAR)",
"question": "How many times has Ma Long won the men's singles?"
} |
### QUESTION
What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?
### CONTEXT
CREATE TABLE table_name_88 (Id VARCHAR)
### ANSWER
SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658 | {
"answer": "SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658",
"context": "CREATE TABLE table_name_88 (Id VARCHAR)",
"question": "What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?"
} |
### QUESTION
How many attempts did Charley Johnson have?
### CONTEXT
CREATE TABLE table_20906175_3 (attempts VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = "Charley Johnson" | {
"answer": "SELECT COUNT(attempts) FROM table_20906175_3 WHERE name = \"Charley Johnson\"",
"context": "CREATE TABLE table_20906175_3 (attempts VARCHAR, name VARCHAR)",
"question": "How many attempts did Charley Johnson have?"
} |
### QUESTION
What are the notes of the satellite whose nssdc id number is 1959-002a?
### CONTEXT
CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)
### ANSWER
SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A" | {
"answer": "SELECT notes FROM table_191323_2 WHERE nssdc_id_no = \"1959-002A\"",
"context": "CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)",
"question": "What are the notes of the satellite whose nssdc id number is 1959-002a?"
} |
### QUESTION
How many capitals had brest litovsk voivodeship as voivodeship after 1569?
### CONTEXT
CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR)
### ANSWER
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship" | {
"answer": "SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = \"Brest Litovsk Voivodeship\"",
"context": "CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR)",
"question": "How many capitals had brest litovsk voivodeship as voivodeship after 1569?"
} |
### QUESTION
for the name of jamar jackson what is the class?
### CONTEXT
CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR)
### ANSWER
SELECT class FROM table_name_87 WHERE name = "jamar jackson" | {
"answer": "SELECT class FROM table_name_87 WHERE name = \"jamar jackson\"",
"context": "CREATE TABLE table_name_87 (class VARCHAR, name VARCHAR)",
"question": "for the name of jamar jackson what is the class?"
} |
### QUESTION
What is the average year in which Kim was nominated for Thirst as Best Actress at the Baeksang Arts Awards?
### CONTEXT
CREATE TABLE table_name_92 (year INTEGER, group VARCHAR, award VARCHAR, result VARCHAR, film_series VARCHAR)
### ANSWER
SELECT AVG(year) FROM table_name_92 WHERE result = "nominated" AND film_series = "thirst" AND award = "best actress" AND group = "baeksang arts awards" | {
"answer": "SELECT AVG(year) FROM table_name_92 WHERE result = \"nominated\" AND film_series = \"thirst\" AND award = \"best actress\" AND group = \"baeksang arts awards\"",
"context": "CREATE TABLE table_name_92 (year INTEGER, group VARCHAR, award VARCHAR, result VARCHAR, film_series VARCHAR)",
"question": "What is the average year in which Kim was nominated for Thirst as Best Actress at the Baeksang Arts Awards?"
} |
### QUESTION
What is the name of the customer who has the most policies listed?
### CONTEXT
CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)
### ANSWER
SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)",
"question": "What is the name of the customer who has the most policies listed?"
} |
### QUESTION
Which nationality do the Montreal Canadiens belong to with a pick# of 25?
### CONTEXT
CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
### ANSWER
SELECT nationality FROM table_name_55 WHERE nhl_team = "montreal canadiens" AND pick__number = "25" | {
"answer": "SELECT nationality FROM table_name_55 WHERE nhl_team = \"montreal canadiens\" AND pick__number = \"25\"",
"context": "CREATE TABLE table_name_55 (nationality VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)",
"question": "Which nationality do the Montreal Canadiens belong to with a pick# of 25?"
} |
### QUESTION
What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?
### CONTEXT
CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)
### ANSWER
SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat" | {
"answer": "SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = \"state\" AND area = \"macraes flat\"",
"context": "CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)",
"question": "What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?"
} |
### QUESTION
Which event was the opponent jose carlos oliveira?
### CONTEXT
CREATE TABLE table_name_46 (event VARCHAR, opponent VARCHAR)
### ANSWER
SELECT event FROM table_name_46 WHERE opponent = "jose carlos oliveira" | {
"answer": "SELECT event FROM table_name_46 WHERE opponent = \"jose carlos oliveira\"",
"context": "CREATE TABLE table_name_46 (event VARCHAR, opponent VARCHAR)",
"question": "Which event was the opponent jose carlos oliveira?"
} |
### QUESTION
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
### CONTEXT
CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)
### ANSWER
SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair" | {
"answer": "SELECT MIN(year) FROM table_name_65 WHERE nation = \"canada\" AND result = \"silver\" AND championship = \"olympics\" AND event = \"men's coxless pair\"",
"context": "CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)",
"question": "What year did Canada get a silver in the olympics in the Men's Coxless Pair event?"
} |
### QUESTION
What is the highest total when bronze is less than 1 and gold more than 0?
### CONTEXT
CREATE TABLE table_name_65 (total INTEGER, bronze VARCHAR, gold VARCHAR)
### ANSWER
SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0 | {
"answer": "SELECT MAX(total) FROM table_name_65 WHERE bronze < 1 AND gold > 0",
"context": "CREATE TABLE table_name_65 (total INTEGER, bronze VARCHAR, gold VARCHAR)",
"question": "What is the highest total when bronze is less than 1 and gold more than 0?"
} |
### QUESTION
What was the total for united states player phil mickelson?
### CONTEXT
CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)
### ANSWER
SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson" | {
"answer": "SELECT MIN(total) FROM table_name_72 WHERE country = \"united states\" AND player = \"phil mickelson\"",
"context": "CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR)",
"question": "What was the total for united states player phil mickelson?"
} |
### QUESTION
Find the student ID and login name of the student with the most course enrollments
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT T1.student_id, T2.login_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (login_name VARCHAR, student_id VARCHAR)",
"question": "Find the student ID and login name of the student with the most course enrollments"
} |
### QUESTION
What is the visitor team of the game with Rudy Gay (18) as the leading scorer?
### CONTEXT
CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)
### ANSWER
SELECT visitor FROM table_name_96 WHERE leading_scorer = "rudy gay (18)" | {
"answer": "SELECT visitor FROM table_name_96 WHERE leading_scorer = \"rudy gay (18)\"",
"context": "CREATE TABLE table_name_96 (visitor VARCHAR, leading_scorer VARCHAR)",
"question": "What is the visitor team of the game with Rudy Gay (18) as the leading scorer?"
} |
### QUESTION
What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
### CONTEXT
CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
### ANSWER
SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240 | {
"answer": "SELECT COUNT(week) FROM table_name_64 WHERE date = \"november 30, 1958\" AND attendance > 33 OFFSET 240",
"context": "CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)",
"question": "What is the Week number on November 30, 1958 with more than 33,240 in Attendance?"
} |
### QUESTION
In which year are there festivals both inside the 'United States' and outside the 'United States'?
### CONTEXT
CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)
### ANSWER
SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States' | {
"answer": "SELECT YEAR FROM festival_detail WHERE LOCATION = 'United States' INTERSECT SELECT YEAR FROM festival_detail WHERE LOCATION <> 'United States'",
"context": "CREATE TABLE festival_detail (YEAR VARCHAR, LOCATION VARCHAR)",
"question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?"
} |
### QUESTION
Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?
### CONTEXT
CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)
### ANSWER
SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8 | {
"answer": "SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8",
"context": "CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)",
"question": "Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?"
} |
### QUESTION
How many seasons have motopark team?
### CONTEXT
CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR)
### ANSWER
SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark" | {
"answer": "SELECT COUNT(season) FROM table_23338693_1 WHERE team = \"Motopark\"",
"context": "CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR)",
"question": "How many seasons have motopark team?"
} |
### QUESTION
Which Nation has Silver smaller than 16, Bronze larger than 6, and Gold of 2?
### CONTEXT
CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
### ANSWER
SELECT nation FROM table_name_77 WHERE silver < 16 AND bronze > 6 AND gold = 2 | {
"answer": "SELECT nation FROM table_name_77 WHERE silver < 16 AND bronze > 6 AND gold = 2",
"context": "CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)",
"question": "Which Nation has Silver smaller than 16, Bronze larger than 6, and Gold of 2?"
} |
### QUESTION
What is the Version of the CD release on June 12, 2008 in Cyprus?
### CONTEXT
CREATE TABLE table_name_82 (version VARCHAR, region VARCHAR, format VARCHAR, date VARCHAR)
### ANSWER
SELECT version FROM table_name_82 WHERE format = "cd" AND date = "june 12, 2008" AND region = "cyprus" | {
"answer": "SELECT version FROM table_name_82 WHERE format = \"cd\" AND date = \"june 12, 2008\" AND region = \"cyprus\"",
"context": "CREATE TABLE table_name_82 (version VARCHAR, region VARCHAR, format VARCHAR, date VARCHAR)",
"question": "What is the Version of the CD release on June 12, 2008 in Cyprus?"
} |
### QUESTION
What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?
### CONTEXT
CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR)
### ANSWER
SELECT region FROM table_name_46 WHERE label = "emi" AND format = "4 x vinyl" AND catalog_number = "560 6111" | {
"answer": "SELECT region FROM table_name_46 WHERE label = \"emi\" AND format = \"4 x vinyl\" AND catalog_number = \"560 6111\"",
"context": "CREATE TABLE table_name_46 (region VARCHAR, catalog_number VARCHAR, label VARCHAR, format VARCHAR)",
"question": "What is the Region of the EMI 4 x vinyl release bearing Catalog number 560 6111?"
} |
### QUESTION
What's the total number of copies sold for the single that sold 206,030 in the first week?
### CONTEXT
CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)
### ANSWER
SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030 | {
"answer": "SELECT COUNT(copies_sold) FROM table_name_43 WHERE first_week_sales = 206 OFFSET 030",
"context": "CREATE TABLE table_name_43 (copies_sold VARCHAR, first_week_sales VARCHAR)",
"question": "What's the total number of copies sold for the single that sold 206,030 in the first week?"
} |
### QUESTION
What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?
### CONTEXT
CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR)
### ANSWER
SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = "apolo anton ohno" AND best_score > 30 | {
"answer": "SELECT SUM(worst_score) FROM table_name_23 WHERE best_dancer = \"apolo anton ohno\" AND best_score > 30",
"context": "CREATE TABLE table_name_23 (worst_score INTEGER, best_dancer VARCHAR, best_score VARCHAR)",
"question": "What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?"
} |
### QUESTION
Find the student ID and middle name for all the students with at most two enrollments.
### CONTEXT
CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2 | {
"answer": "SELECT T1.student_id, T2.middle_name FROM Student_Course_Enrolment AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id HAVING COUNT(*) <= 2",
"context": "CREATE TABLE Student_Course_Enrolment (student_id VARCHAR); CREATE TABLE Students (middle_name VARCHAR, student_id VARCHAR)",
"question": "Find the student ID and middle name for all the students with at most two enrollments."
} |
### QUESTION
Show the id, name of each festival and the number of artworks it has nominated.
### CONTEXT
CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)
### ANSWER
SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID | {
"answer": "SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID",
"context": "CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)",
"question": "Show the id, name of each festival and the number of artworks it has nominated."
} |
### QUESTION
What height has a floor count less than 25?
### CONTEXT
CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)
### ANSWER
SELECT height FROM table_name_2 WHERE floor_count < 25 | {
"answer": "SELECT height FROM table_name_2 WHERE floor_count < 25",
"context": "CREATE TABLE table_name_2 (height VARCHAR, floor_count INTEGER)",
"question": "What height has a floor count less than 25?"
} |
### QUESTION
What is the home team of the UEFA cup in the 2000-2001 season with a second round?
### CONTEXT
CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)
### ANSWER
SELECT home FROM table_name_93 WHERE competition = "uefa cup" AND season = "2000-2001" AND round = "second round" | {
"answer": "SELECT home FROM table_name_93 WHERE competition = \"uefa cup\" AND season = \"2000-2001\" AND round = \"second round\"",
"context": "CREATE TABLE table_name_93 (home VARCHAR, round VARCHAR, competition VARCHAR, season VARCHAR)",
"question": "What is the home team of the UEFA cup in the 2000-2001 season with a second round?"
} |
### QUESTION
What score in the final has hard as the surface, and june 13, 2011 as the date?
### CONTEXT
CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
### ANSWER
SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011" | {
"answer": "SELECT score_in_the_final FROM table_name_57 WHERE surface = \"hard\" AND date = \"june 13, 2011\"",
"context": "CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)",
"question": "What score in the final has hard as the surface, and june 13, 2011 as the date?"
} |
### QUESTION
Name the best supporting actress for sun honglei for mongol
### CONTEXT
CREATE TABLE table_15301258_1 (best_supporting_actress VARCHAR, best_supporting_actor VARCHAR)
### ANSWER
SELECT best_supporting_actress FROM table_15301258_1 WHERE best_supporting_actor = "Sun Honglei for Mongol" | {
"answer": "SELECT best_supporting_actress FROM table_15301258_1 WHERE best_supporting_actor = \"Sun Honglei for Mongol\"",
"context": "CREATE TABLE table_15301258_1 (best_supporting_actress VARCHAR, best_supporting_actor VARCHAR)",
"question": "Name the best supporting actress for sun honglei for mongol"
} |
### QUESTION
What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?
### CONTEXT
CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)
### ANSWER
SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird" | {
"answer": "SELECT COUNT(mintage) FROM table_name_88 WHERE weight = \"12.61 g\" AND theme = \"ruby-throated hummingbird\"",
"context": "CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)",
"question": "What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?"
} |
### QUESTION
What is Result, when Venue is Götzis , Austria?
### CONTEXT
CREATE TABLE table_name_77 (result VARCHAR, venue VARCHAR)
### ANSWER
SELECT result FROM table_name_77 WHERE venue = "götzis , austria" | {
"answer": "SELECT result FROM table_name_77 WHERE venue = \"götzis , austria\"",
"context": "CREATE TABLE table_name_77 (result VARCHAR, venue VARCHAR)",
"question": "What is Result, when Venue is Götzis , Austria?"
} |
### QUESTION
Find the total amount of loans provided by bank branches in the state of New York.
### CONTEXT
CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)
### ANSWER
SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' | {
"answer": "SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York'",
"context": "CREATE TABLE bank (branch_id VARCHAR, state VARCHAR); CREATE TABLE loan (amount INTEGER, branch_id VARCHAR)",
"question": "Find the total amount of loans provided by bank branches in the state of New York."
} |
### QUESTION
What was the score of the league cup in the 2007-08 season?
### CONTEXT
CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)
### ANSWER
SELECT score FROM table_name_90 WHERE competition = "league cup" AND season = "2007-08" | {
"answer": "SELECT score FROM table_name_90 WHERE competition = \"league cup\" AND season = \"2007-08\"",
"context": "CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)",
"question": "What was the score of the league cup in the 2007-08 season?"
} |
### QUESTION
How many characteristics does the product named "laurel" have?
### CONTEXT
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "laurel" | {
"answer": "SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"laurel\"",
"context": "CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)",
"question": "How many characteristics does the product named \"laurel\" have?"
} |
### QUESTION
What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?
### CONTEXT
CREATE TABLE table_name_99 (market_value__billion_ INTEGER, rank VARCHAR, sales__billion_$_ VARCHAR)
### ANSWER
SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = "02 2" AND sales__billion_$_ > 113.1 | {
"answer": "SELECT MAX(market_value__billion_) AS $_ FROM table_name_99 WHERE rank = \"02 2\" AND sales__billion_$_ > 113.1",
"context": "CREATE TABLE table_name_99 (market_value__billion_ INTEGER, rank VARCHAR, sales__billion_$_ VARCHAR)",
"question": "What is the highest Market Value (billion $), when Rank is 02 2, and when Sales (billion $) is greater than 113.1?"
} |
### QUESTION
What are the full name (first and last name) and salary for all employees who does not have any value for commission?
### CONTEXT
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)
### ANSWER
SELECT first_name, last_name, salary FROM employees WHERE commission_pct = "null" | {
"answer": "SELECT first_name, last_name, salary FROM employees WHERE commission_pct = \"null\"",
"context": "CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR, commission_pct VARCHAR)",
"question": "What are the full name (first and last name) and salary for all employees who does not have any value for commission?"
} |
### QUESTION
What is the tyre of real racing with leon team member koudai tsukakoshi?
### CONTEXT
CREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)
### ANSWER
SELECT tyre FROM table_name_24 WHERE team = "real racing with leon" AND drivers = "koudai tsukakoshi" | {
"answer": "SELECT tyre FROM table_name_24 WHERE team = \"real racing with leon\" AND drivers = \"koudai tsukakoshi\"",
"context": "CREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)",
"question": "What is the tyre of real racing with leon team member koudai tsukakoshi?"
} |
### QUESTION
Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?
### CONTEXT
CREATE TABLE table_name_87 (location VARCHAR, opponent_team VARCHAR, match VARCHAR, tournament VARCHAR)
### ANSWER
SELECT location FROM table_name_87 WHERE match > 1 AND tournament = "friendly" AND opponent_team = "super reds" | {
"answer": "SELECT location FROM table_name_87 WHERE match > 1 AND tournament = \"friendly\" AND opponent_team = \"super reds\"",
"context": "CREATE TABLE table_name_87 (location VARCHAR, opponent_team VARCHAR, match VARCHAR, tournament VARCHAR)",
"question": "Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?"
} |
### QUESTION
What is the area (km²) of Nairnshire county, which has a population less than 11,050?
### CONTEXT
CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR)
### ANSWER
SELECT SUM(area__km²_) FROM table_name_34 WHERE county = "nairnshire" AND population < 11 OFFSET 050 | {
"answer": "SELECT SUM(area__km²_) FROM table_name_34 WHERE county = \"nairnshire\" AND population < 11 OFFSET 050",
"context": "CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR)",
"question": "What is the area (km²) of Nairnshire county, which has a population less than 11,050?"
} |
### QUESTION
What is 2009, when 2000 is 1R, and when 1998 is 3R?
### CONTEXT
CREATE TABLE table_name_1 (Id VARCHAR)
### ANSWER
SELECT 2009 FROM table_name_1 WHERE 2000 = "1r" AND 1998 = "3r" | {
"answer": "SELECT 2009 FROM table_name_1 WHERE 2000 = \"1r\" AND 1998 = \"3r\"",
"context": "CREATE TABLE table_name_1 (Id VARCHAR)",
"question": "What is 2009, when 2000 is 1R, and when 1998 is 3R?"
} |
### QUESTION
What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?
### CONTEXT
CREATE TABLE table_19948664_1 (index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR)
### ANSWER
SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = "United Nations (UNDP)" AND ranking_la__2_ = "2nd" | {
"answer": "SELECT index__year_ FROM table_19948664_1 WHERE author___editor___source = \"United Nations (UNDP)\" AND ranking_la__2_ = \"2nd\"",
"context": "CREATE TABLE table_19948664_1 (index__year_ VARCHAR, author___editor___source VARCHAR, ranking_la__2_ VARCHAR)",
"question": "What index was created by the United Nations (UNDP) and reached 2nd place in the LA Ranking?"
} |
### QUESTION
How many championships have there been with Steffi Graf?
### CONTEXT
CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR)
### ANSWER
SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf" | {
"answer": "SELECT championship FROM table_22858557_1 WHERE opponent_in_final = \"Steffi Graf\"",
"context": "CREATE TABLE table_22858557_1 (championship VARCHAR, opponent_in_final VARCHAR)",
"question": "How many championships have there been with Steffi Graf?"
} |
### QUESTION
Name the votes given for michael russo, genevy dimitrion , manny ortega
### CONTEXT
CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)
### ANSWER
SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = "Michael Russo, Genevy Dimitrion , Manny Ortega" | {
"answer": "SELECT votes_given FROM table_1855841_1 WHERE running_with__in_team_ = \"Michael Russo, Genevy Dimitrion , Manny Ortega\"",
"context": "CREATE TABLE table_1855841_1 (votes_given VARCHAR, running_with__in_team_ VARCHAR)",
"question": "Name the votes given for michael russo, genevy dimitrion , manny ortega"
} |
### QUESTION
Name the interacting settings for co-operate, plan, take care of, help
### CONTEXT
CREATE TABLE table_name_40 (interacting__settings_ VARCHAR, doing__actions_ VARCHAR)
### ANSWER
SELECT interacting__settings_ FROM table_name_40 WHERE doing__actions_ = "co-operate, plan, take care of, help" | {
"answer": "SELECT interacting__settings_ FROM table_name_40 WHERE doing__actions_ = \"co-operate, plan, take care of, help\"",
"context": "CREATE TABLE table_name_40 (interacting__settings_ VARCHAR, doing__actions_ VARCHAR)",
"question": "Name the interacting settings for co-operate, plan, take care of, help"
} |
### QUESTION
Operation start of 2015 has what gross mw?
### CONTEXT
CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR)
### ANSWER
SELECT gross_mw FROM table_name_56 WHERE operation_start = "2015" | {
"answer": "SELECT gross_mw FROM table_name_56 WHERE operation_start = \"2015\"",
"context": "CREATE TABLE table_name_56 (gross_mw VARCHAR, operation_start VARCHAR)",
"question": "Operation start of 2015 has what gross mw?"
} |
### QUESTION
What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?
### CONTEXT
CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)
### ANSWER
SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix" | {
"answer": "SELECT MAX(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = \"Monaco Grand Prix\"",
"context": "CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (raceid VARCHAR, year VARCHAR, name VARCHAR)",
"question": "What is the maximum fastest lap speed in race named 'Monaco Grand Prix' in 2008 ?"
} |
### QUESTION
Name the least season number for two marriage proposals
### CONTEXT
CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)
### ANSWER
SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = "Two marriage proposals" | {
"answer": "SELECT MIN(season__number) FROM table_25363904_2 WHERE title_english = \"Two marriage proposals\"",
"context": "CREATE TABLE table_25363904_2 (season__number INTEGER, title_english VARCHAR)",
"question": "Name the least season number for two marriage proposals"
} |
### QUESTION
What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?
### CONTEXT
CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR)
### ANSWER
SELECT intergiro_classification FROM table_name_16 WHERE points_classification = "paolo bettini" AND trofeo_super_team = "davitamon-lotto" AND mountains_classification = "josé rujano" | {
"answer": "SELECT intergiro_classification FROM table_name_16 WHERE points_classification = \"paolo bettini\" AND trofeo_super_team = \"davitamon-lotto\" AND mountains_classification = \"josé rujano\"",
"context": "CREATE TABLE table_name_16 (intergiro_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR, trofeo_super_team VARCHAR)",
"question": "What is the Intergiro classification when the points classification is Paolo Bettini, Trofeo Super Team is Davitamon-Lotto, and the Mountains classification is José Rujano?"
} |
### QUESTION
What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?
### CONTEXT
CREATE TABLE table_name_98 (loser VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
### ANSWER
SELECT loser FROM table_name_98 WHERE winner = "new york jets" AND year < 1994 AND result = "37–13" | {
"answer": "SELECT loser FROM table_name_98 WHERE winner = \"new york jets\" AND year < 1994 AND result = \"37–13\"",
"context": "CREATE TABLE table_name_98 (loser VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)",
"question": "What team was the lower when the winner was the new york jets, and a Year earlier than 1994, and a Result of 37–13?"
} |
### QUESTION
What is the region 1 release that has july 20, 2009 as the region 2?
### CONTEXT
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
### ANSWER
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" | {
"answer": "SELECT region_1_release FROM table_name_39 WHERE region_2_release = \"july 20, 2009\"",
"context": "CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)",
"question": "What is the region 1 release that has july 20, 2009 as the region 2?"
} |
### QUESTION
Find number of products which Sony does not make.
### CONTEXT
CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)
### ANSWER
SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony') | {
"answer": "SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony')",
"context": "CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR)",
"question": "Find number of products which Sony does not make."
} |
### QUESTION
Which product has been ordered most number of times?
### CONTEXT
CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)
### ANSWER
SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT t2.product_details FROM order_items AS t1 JOIN products AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE products (product_details VARCHAR, product_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR)",
"question": "Which product has been ordered most number of times?"
} |
### QUESTION
What city is the lamar tower 1, ranked above 5?
### CONTEXT
CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR)
### ANSWER
SELECT city FROM table_name_87 WHERE rank < 5 AND name = "lamar tower 1" | {
"answer": "SELECT city FROM table_name_87 WHERE rank < 5 AND name = \"lamar tower 1\"",
"context": "CREATE TABLE table_name_87 (city VARCHAR, rank VARCHAR, name VARCHAR)",
"question": "What city is the lamar tower 1, ranked above 5?"
} |
### QUESTION
What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?
### CONTEXT
CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)
### ANSWER
SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = "offshore" AND country_territory = "saint kitts and nevis" AND degree = "md" AND established < 2000 | {
"answer": "SELECT imed_avicenna_listed FROM table_name_31 WHERE regional_offshore = \"offshore\" AND country_territory = \"saint kitts and nevis\" AND degree = \"md\" AND established < 2000",
"context": "CREATE TABLE table_name_31 (imed_avicenna_listed VARCHAR, established VARCHAR, degree VARCHAR, regional_offshore VARCHAR, country_territory VARCHAR)",
"question": "What is the imed/avicenna listed for a medical school offshore in saint kitts and nevis which was established before 2000 and will give you an MD?"
} |
### QUESTION
What batting partners played in sydney?
### CONTEXT
CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)
### ANSWER
SELECT batting_partners FROM table_1670921_2 WHERE venue = "Sydney" | {
"answer": "SELECT batting_partners FROM table_1670921_2 WHERE venue = \"Sydney\"",
"context": "CREATE TABLE table_1670921_2 (batting_partners VARCHAR, venue VARCHAR)",
"question": "What batting partners played in sydney?"
} |
### QUESTION
What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?
### CONTEXT
CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)
### ANSWER
SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc" | {
"answer": "SELECT SUM(year) FROM table_name_39 WHERE attendance = \"95,000\" AND runner_up = \"dresdner sc\"",
"context": "CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)",
"question": "What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?"
} |
### QUESTION
What is the prime mover of the locomotive with a fa-2 model?
### CONTEXT
CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR)
### ANSWER
SELECT prime_mover FROM table_name_16 WHERE model = "fa-2" | {
"answer": "SELECT prime_mover FROM table_name_16 WHERE model = \"fa-2\"",
"context": "CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR)",
"question": "What is the prime mover of the locomotive with a fa-2 model?"
} |
### QUESTION
What team was Ryan Callahan, who received a penalty for roughing, playing for?
### CONTEXT
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)
### ANSWER
SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan" | {
"answer": "SELECT team FROM table_name_87 WHERE penalty = \"roughing\" AND player = \"ryan callahan\"",
"context": "CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)",
"question": "What team was Ryan Callahan, who received a penalty for roughing, playing for?"
} |
### QUESTION
What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?
### CONTEXT
CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR)
### ANSWER
SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = "Chevrolet Monte Carlo" AND listed_owner_s_ = "Teresa Earnhardt" AND driver_s_ = "Paul Menard" | {
"answer": "SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = \"Chevrolet Monte Carlo\" AND listed_owner_s_ = \"Teresa Earnhardt\" AND driver_s_ = \"Paul Menard\"",
"context": "CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR)",
"question": "What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?"
} |
### QUESTION
what's the primary payload(s) with launch date being july 8, 1994
### CONTEXT
CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR)
### ANSWER
SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = "July 8, 1994" | {
"answer": "SELECT primary_payload_s_ FROM table_14118521_1 WHERE launch_date = \"July 8, 1994\"",
"context": "CREATE TABLE table_14118521_1 (primary_payload_s_ VARCHAR, launch_date VARCHAR)",
"question": "what's the primary payload(s) with launch date being july 8, 1994"
} |
### QUESTION
What is the tournament with a clay surface and sofia shapatava as the opponent?
### CONTEXT
CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)
### ANSWER
SELECT tournament FROM table_name_54 WHERE surface = "clay" AND opponent = "sofia shapatava" | {
"answer": "SELECT tournament FROM table_name_54 WHERE surface = \"clay\" AND opponent = \"sofia shapatava\"",
"context": "CREATE TABLE table_name_54 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)",
"question": "What is the tournament with a clay surface and sofia shapatava as the opponent?"
} |
### QUESTION
Which Population has a County of mississippi, and a Number of households smaller than 17,741?
### CONTEXT
CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
### ANSWER
SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741 | {
"answer": "SELECT SUM(population) FROM table_name_21 WHERE county = \"mississippi\" AND number_of_households < 17 OFFSET 741",
"context": "CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)",
"question": "Which Population has a County of mississippi, and a Number of households smaller than 17,741?"
} |
### QUESTION
What season was herschelle gibbs andrew symonds venugopal rao batsmen?
### CONTEXT
CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)
### ANSWER
SELECT season FROM table_22962745_35 WHERE batsmen = "Herschelle Gibbs Andrew Symonds Venugopal Rao" | {
"answer": "SELECT season FROM table_22962745_35 WHERE batsmen = \"Herschelle Gibbs Andrew Symonds Venugopal Rao\"",
"context": "CREATE TABLE table_22962745_35 (season VARCHAR, batsmen VARCHAR)",
"question": "What season was herschelle gibbs andrew symonds venugopal rao batsmen?"
} |
### QUESTION
What is the model of the engine d5244 t7?
### CONTEXT
CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR)
### ANSWER
SELECT model_name FROM table_1147701_5 WHERE engine_code = "D5244 T7" | {
"answer": "SELECT model_name FROM table_1147701_5 WHERE engine_code = \"D5244 T7\"",
"context": "CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR)",
"question": "What is the model of the engine d5244 t7?"
} |
### QUESTION
What is the smallest number of seats with INC as an election winner and BJP incumbent?
### CONTEXT
CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR)
### ANSWER
SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = "inc" AND incumbent = "bjp" | {
"answer": "SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = \"inc\" AND incumbent = \"bjp\"",
"context": "CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR)",
"question": "What is the smallest number of seats with INC as an election winner and BJP incumbent?"
} |
### QUESTION
How many FA cup goals have Jimmy Nicholson as the name, and league cup goals greater than 0?
### CONTEXT
CREATE TABLE table_name_41 (fa_cup_goals VARCHAR, name VARCHAR, league_cup_goals VARCHAR)
### ANSWER
SELECT COUNT(fa_cup_goals) FROM table_name_41 WHERE name = "jimmy nicholson" AND league_cup_goals > 0 | {
"answer": "SELECT COUNT(fa_cup_goals) FROM table_name_41 WHERE name = \"jimmy nicholson\" AND league_cup_goals > 0",
"context": "CREATE TABLE table_name_41 (fa_cup_goals VARCHAR, name VARCHAR, league_cup_goals VARCHAR)",
"question": "How many FA cup goals have Jimmy Nicholson as the name, and league cup goals greater than 0?"
} |
### QUESTION
What is the Away team score when they played Geelong as the Home team?
### CONTEXT
CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
### ANSWER
SELECT away_team AS score FROM table_name_15 WHERE home_team = "geelong" | {
"answer": "SELECT away_team AS score FROM table_name_15 WHERE home_team = \"geelong\"",
"context": "CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)",
"question": "What is the Away team score when they played Geelong as the Home team?"
} |
### QUESTION
What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?
### CONTEXT
CREATE TABLE table_name_88 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)
### ANSWER
SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = "dave adams category:articles with hcards" AND year > 1963 | {
"answer": "SELECT MIN(pick) FROM table_name_88 WHERE overall > 17 AND player_name = \"dave adams category:articles with hcards\" AND year > 1963",
"context": "CREATE TABLE table_name_88 (pick INTEGER, year VARCHAR, overall VARCHAR, player_name VARCHAR)",
"question": "What is the smallest Pick with Overall larger than 17, a Player name of dave adams category:articles with hcards, and a Year larger than 1963?"
} |
### QUESTION
What engine what in the vehicle when adt champion racing ranked in 1st place?
### CONTEXT
CREATE TABLE table_name_21 (engine VARCHAR, rank VARCHAR, entrant VARCHAR)
### ANSWER
SELECT engine FROM table_name_21 WHERE rank = "1st" AND entrant = "adt champion racing" | {
"answer": "SELECT engine FROM table_name_21 WHERE rank = \"1st\" AND entrant = \"adt champion racing\"",
"context": "CREATE TABLE table_name_21 (engine VARCHAR, rank VARCHAR, entrant VARCHAR)",
"question": "What engine what in the vehicle when adt champion racing ranked in 1st place?"
} |
### QUESTION
Show names of actors that have appeared in musical with name "The Phantom of the Opera".
### CONTEXT
CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Musical_ID VARCHAR, Name VARCHAR)
### ANSWER
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = "The Phantom of the Opera" | {
"answer": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID WHERE T2.Name = \"The Phantom of the Opera\"",
"context": "CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR); CREATE TABLE musical (Musical_ID VARCHAR, Name VARCHAR)",
"question": "Show names of actors that have appeared in musical with name \"The Phantom of the Opera\"."
} |
### QUESTION
What is the air force cross when you recieve the Aerial achievement medal?
### CONTEXT
CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)
### ANSWER
SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = "Aerial Achievement Medal" | {
"answer": "SELECT air_force_cross FROM table_2104176_1 WHERE homeland_security_distinguished_service_medal = \"Aerial Achievement Medal\"",
"context": "CREATE TABLE table_2104176_1 (air_force_cross VARCHAR, homeland_security_distinguished_service_medal VARCHAR)",
"question": "What is the air force cross when you recieve the Aerial achievement medal?"
} |
### QUESTION
Name the venue for margin less than 66 and opponent of north queensland cowboys
### CONTEXT
CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)
### ANSWER
SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = "north queensland cowboys" | {
"answer": "SELECT venue FROM table_name_60 WHERE margin < 66 AND opponent = \"north queensland cowboys\"",
"context": "CREATE TABLE table_name_60 (venue VARCHAR, margin VARCHAR, opponent VARCHAR)",
"question": "Name the venue for margin less than 66 and opponent of north queensland cowboys"
} |
### QUESTION
What is the highest Gold that has a Silver less than 7 and Bronze less than 0
### CONTEXT
CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
### ANSWER
SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0 | {
"answer": "SELECT MAX(gold) FROM table_name_17 WHERE silver < 7 AND bronze < 0",
"context": "CREATE TABLE table_name_17 (gold INTEGER, silver VARCHAR, bronze VARCHAR)",
"question": "What is the highest Gold that has a Silver less than 7 and Bronze less than 0"
} |
### QUESTION
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
### CONTEXT
CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)
### ANSWER
SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards" | {
"answer": "SELECT production FROM table_name_67 WHERE result = \"nominated\" AND year = 2009 AND award_ceremony = \"helpmann awards\"",
"context": "CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)",
"question": "Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?"
} |
### QUESTION
What was the television that was dated December 28, 2009?
### CONTEXT
CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR)
### ANSWER
SELECT television FROM table_23718905_6 WHERE date = "December 28, 2009" | {
"answer": "SELECT television FROM table_23718905_6 WHERE date = \"December 28, 2009\"",
"context": "CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR)",
"question": "What was the television that was dated December 28, 2009?"
} |
### QUESTION
What is the lowest apps for rank 3 and 0% wins?
### CONTEXT
CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)
### ANSWER
SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0 | {
"answer": "SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0",
"context": "CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)",
"question": "What is the lowest apps for rank 3 and 0% wins?"
} |
### QUESTION
What years for the rockets did the player ford, phil phil ford play?
### CONTEXT
CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)
### ANSWER
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Phil Phil Ford" | {
"answer": "SELECT years_for_rockets FROM table_11734041_6 WHERE player = \"Ford, Phil Phil Ford\"",
"context": "CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR)",
"question": "What years for the rockets did the player ford, phil phil ford play?"
} |
### QUESTION
What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?
### CONTEXT
CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
### ANSWER
SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8 | {
"answer": "SELECT SUM(long) FROM table_name_19 WHERE loss > 24 AND gain > 273 AND avg_g = 207.8",
"context": "CREATE TABLE table_name_19 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)",
"question": "What's the total long for more than 24 loss, a gain over 273, and an avg/g of 207.8?"
} |
### QUESTION
What is Phil Taylor's 3-dart average?
### CONTEXT
CREATE TABLE table_20463779_22 (player VARCHAR)
### ANSWER
SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = "Phil Taylor" | {
"answer": "SELECT 3 AS _dart_average FROM table_20463779_22 WHERE player = \"Phil Taylor\"",
"context": "CREATE TABLE table_20463779_22 (player VARCHAR)",
"question": "What is Phil Taylor's 3-dart average?"
} |
### QUESTION
Name the grand prix for casey stoner and circuit of losail
### CONTEXT
CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR)
### ANSWER
SELECT grand_prix FROM table_name_55 WHERE motogp_winner = "casey stoner" AND circuit = "losail" | {
"answer": "SELECT grand_prix FROM table_name_55 WHERE motogp_winner = \"casey stoner\" AND circuit = \"losail\"",
"context": "CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR)",
"question": "Name the grand prix for casey stoner and circuit of losail"
} |
### QUESTION
Which Runner-up has a Winning score of −20 (70-69-64-65=268)?
### CONTEXT
CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)
### ANSWER
SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268) | {
"answer": "SELECT runner_up FROM table_name_69 WHERE winning_score = −20(70 - 69 - 64 - 65 = 268)",
"context": "CREATE TABLE table_name_69 (runner_up VARCHAR, winning_score VARCHAR)",
"question": "Which Runner-up has a Winning score of −20 (70-69-64-65=268)?"
} |
### QUESTION
What group had 29 studio albums?
### CONTEXT
CREATE TABLE table_19439814_1 (girl_group VARCHAR, studio_albums VARCHAR)
### ANSWER
SELECT girl_group FROM table_19439814_1 WHERE studio_albums = 29 | {
"answer": "SELECT girl_group FROM table_19439814_1 WHERE studio_albums = 29",
"context": "CREATE TABLE table_19439814_1 (girl_group VARCHAR, studio_albums VARCHAR)",
"question": "What group had 29 studio albums?"
} |
### QUESTION
What is Home, when Score is 103-93?
### CONTEXT
CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)
### ANSWER
SELECT home FROM table_name_95 WHERE score = "103-93" | {
"answer": "SELECT home FROM table_name_95 WHERE score = \"103-93\"",
"context": "CREATE TABLE table_name_95 (home VARCHAR, score VARCHAR)",
"question": "What is Home, when Score is 103-93?"
} |
### QUESTION
Find the average age of students who are living in the dorm with the largest capacity.
### CONTEXT
CREATE TABLE dorm (student_capacity INTEGER); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER)
### ANSWER
SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm) | {
"answer": "SELECT AVG(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid JOIN dorm AS T3 ON T3.dormid = T2.dormid WHERE T3.student_capacity = (SELECT MAX(student_capacity) FROM dorm)",
"context": "CREATE TABLE dorm (student_capacity INTEGER); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER)",
"question": "Find the average age of students who are living in the dorm with the largest capacity."
} |
### QUESTION
When is the tournament of konica san jose classic?
### CONTEXT
CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR)
### ANSWER
SELECT date FROM table_name_41 WHERE tournament = "konica san jose classic" | {
"answer": "SELECT date FROM table_name_41 WHERE tournament = \"konica san jose classic\"",
"context": "CREATE TABLE table_name_41 (date VARCHAR, tournament VARCHAR)",
"question": "When is the tournament of konica san jose classic?"
} |
### QUESTION
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?
### CONTEXT
CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR)
### ANSWER
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke" | {
"answer": "SELECT original_title FROM table_name_72 WHERE director = \"lene grønlykke and sven grønlykke\"",
"context": "CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR)",
"question": "What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?"
} |
### QUESTION
What was the margin of victory for the win with a score of 71-69-71-70=281?
### CONTEXT
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, winning_score VARCHAR)
### ANSWER
SELECT margin_of_victory FROM table_name_38 WHERE winning_score = 71 - 69 - 71 - 70 = 281 | {
"answer": "SELECT margin_of_victory FROM table_name_38 WHERE winning_score = 71 - 69 - 71 - 70 = 281",
"context": "CREATE TABLE table_name_38 (margin_of_victory VARCHAR, winning_score VARCHAR)",
"question": "What was the margin of victory for the win with a score of 71-69-71-70=281?"
} |
### QUESTION
Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?
### CONTEXT
CREATE TABLE table_name_74 (partner VARCHAR, opponents VARCHAR, outcome VARCHAR, surface VARCHAR)
### ANSWER
SELECT partner FROM table_name_74 WHERE outcome = "runner-up" AND surface = "clay" AND opponents = "marco chiudinelli michael lammer" | {
"answer": "SELECT partner FROM table_name_74 WHERE outcome = \"runner-up\" AND surface = \"clay\" AND opponents = \"marco chiudinelli michael lammer\"",
"context": "CREATE TABLE table_name_74 (partner VARCHAR, opponents VARCHAR, outcome VARCHAR, surface VARCHAR)",
"question": "Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?"
} |
### QUESTION
List the tournament that kent state won?
### CONTEXT
CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR)
### ANSWER
SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = "Kent State" | {
"answer": "SELECT conference AS Tournament FROM table_24348134_3 WHERE tournament_winner = \"Kent State\"",
"context": "CREATE TABLE table_24348134_3 (conference VARCHAR, tournament_winner VARCHAR)",
"question": "List the tournament that kent state won?"
} |
### QUESTION
who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster?
### CONTEXT
CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)
### ANSWER
SELECT reader FROM table_20174050_23 WHERE format = "Download/CD" AND author = "Lidster, Joseph Joseph Lidster" | {
"answer": "SELECT reader FROM table_20174050_23 WHERE format = \"Download/CD\" AND author = \"Lidster, Joseph Joseph Lidster\"",
"context": "CREATE TABLE table_20174050_23 (reader VARCHAR, format VARCHAR, author VARCHAR)",
"question": "who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? "
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.