text
stringlengths 150
1.06k
| source
dict |
---|---|
### QUESTION
where pageant is elite model look and year is bigger than 1993.0, who is the delegate?
### CONTEXT
CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)
### ANSWER
SELECT delegate FROM table_1825751_14 WHERE pageant = "Elite Model Look" AND year > 1993.0</s> | {
"answer": "SELECT delegate FROM table_1825751_14 WHERE pageant = \"Elite Model Look\" AND year > 1993.0",
"context": "CREATE TABLE table_1825751_14 (delegate VARCHAR, pageant VARCHAR, year VARCHAR)",
"question": "where pageant is elite model look and year is bigger than 1993.0, who is the delegate?"
} |
### QUESTION
How many years was the pageant miss globe international and delegate was karen loren medrano agustin?
### CONTEXT
CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)
### ANSWER
SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = "Miss Globe International" AND delegate = "Karen Loren Medrano Agustin"</s> | {
"answer": "SELECT COUNT(year) FROM table_1825751_14 WHERE pageant = \"Miss Globe International\" AND delegate = \"Karen Loren Medrano Agustin\"",
"context": "CREATE TABLE table_1825751_14 (year VARCHAR, pageant VARCHAR, delegate VARCHAR)",
"question": "How many years was the pageant miss globe international and delegate was karen loren medrano agustin?"
} |
### QUESTION
How many pageants were margaret ann awitan bayot the delegate of?
### CONTEXT
CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)
### ANSWER
SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = "Margaret Ann Awitan Bayot"</s> | {
"answer": "SELECT COUNT(pageant) FROM table_1825751_14 WHERE delegate = \"Margaret Ann Awitan Bayot\"",
"context": "CREATE TABLE table_1825751_14 (pageant VARCHAR, delegate VARCHAR)",
"question": "How many pageants were margaret ann awitan bayot the delegate of?"
} |
### QUESTION
What is the average number of employees of the departments whose rank is between 10 and 15?
### CONTEXT
CREATE TABLE department (num_employees INTEGER, ranking INTEGER)
### ANSWER
SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15</s> | {
"answer": "SELECT AVG(num_employees) FROM department WHERE ranking BETWEEN 10 AND 15",
"context": "CREATE TABLE department (num_employees INTEGER, ranking INTEGER)",
"question": "What is the average number of employees of the departments whose rank is between 10 and 15?"
} |
### QUESTION
What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
### CONTEXT
CREATE TABLE department (creation VARCHAR, department_id VARCHAR); CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (head_id VARCHAR, born_state VARCHAR)
### ANSWER
SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'</s> | {
"answer": "SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T3.born_state = 'Alabama'",
"context": "CREATE TABLE department (creation VARCHAR, department_id VARCHAR); CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (head_id VARCHAR, born_state VARCHAR)",
"question": "What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?"
} |
### QUESTION
give the location of subtrate coproporphyrinogen iii
### CONTEXT
CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)
### ANSWER
SELECT location FROM table_182499_1 WHERE substrate = "Coproporphyrinogen III"</s> | {
"answer": "SELECT location FROM table_182499_1 WHERE substrate = \"Coproporphyrinogen III\"",
"context": "CREATE TABLE table_182499_1 (location VARCHAR, substrate VARCHAR)",
"question": "give the location of subtrate coproporphyrinogen iii"
} |
### QUESTION
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
### CONTEXT
CREATE TABLE management (department_id VARCHAR, temporary_acting VARCHAR); CREATE TABLE department (name VARCHAR, num_employees VARCHAR, department_id VARCHAR)
### ANSWER
SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'</s> | {
"answer": "SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'",
"context": "CREATE TABLE management (department_id VARCHAR, temporary_acting VARCHAR); CREATE TABLE department (name VARCHAR, num_employees VARCHAR, department_id VARCHAR)",
"question": "Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?"
} |
### QUESTION
How many departments are led by heads who are not mentioned?
### CONTEXT
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)</s> | {
"answer": "SELECT COUNT(*) FROM department WHERE NOT department_id IN (SELECT department_id FROM management)",
"context": "CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR)",
"question": "How many departments are led by heads who are not mentioned?"
} |
### QUESTION
List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born.
### CONTEXT
CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
### ANSWER
SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'</s> | {
"answer": "SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Treasury' INTERSECT SELECT T3.born_state FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id JOIN head AS T3 ON T2.head_id = T3.head_id WHERE T1.name = 'Homeland Security'",
"context": "CREATE TABLE management (department_id VARCHAR, head_id VARCHAR); CREATE TABLE head (born_state VARCHAR, head_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)",
"question": "List the states where both the secretary of 'Treasury' department and the secretary of 'Homeland Security' were born."
} |
### QUESTION
Which department has more than 1 head at a time? List the id, name and the number of heads.
### CONTEXT
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
### ANSWER
SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1</s> | {
"answer": "SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1",
"context": "CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)",
"question": "Which department has more than 1 head at a time? List the id, name and the number of heads."
} |
### QUESTION
How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?
### CONTEXT
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)
### ANSWER
SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Maria Karla Bautista"</s> | {
"answer": "SELECT COUNT(binibining_pilipinas_international) FROM table_1825751_4 WHERE binibining_pilipinas_world = \"Maria Karla Bautista\"",
"context": "CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, binibining_pilipinas_world VARCHAR)",
"question": "How many winners of binibining pilipinas-International when Maria Karla Bautista won binibining pilipinas-world?"
} |
### QUESTION
What day did the VFL play Punt Road Oval?
### CONTEXT
CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)
### ANSWER
SELECT date FROM table_name_59 WHERE venue = "punt road oval"</s> | {
"answer": "SELECT date FROM table_name_59 WHERE venue = \"punt road oval\"",
"context": "CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR)",
"question": "What day did the VFL play Punt Road Oval?"
} |
### QUESTION
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?
### CONTEXT
CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)
### ANSWER
SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = "Margaret Ann Bayot"</s> | {
"answer": "SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = \"Margaret Ann Bayot\"",
"context": "CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)",
"question": "When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?"
} |
### QUESTION
Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?
### CONTEXT
CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)
### ANSWER
SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = "Gionna Cabrera"</s> | {
"answer": "SELECT binibining_pilipinas_international FROM table_1825751_4 WHERE miss_universe_philippines = \"Gionna Cabrera\"",
"context": "CREATE TABLE table_1825751_4 (binibining_pilipinas_international VARCHAR, miss_universe_philippines VARCHAR)",
"question": "Who was the winner of binibining pilipinas-International wheh Gionna Cabrera won Miss Universe Philippines?"
} |
### QUESTION
What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?
### CONTEXT
CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR)
### ANSWER
SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008</s> | {
"answer": "SELECT serial_no FROM table_name_71 WHERE colour = \"black\" AND pilot_car_no > 2 AND engine_no = 1008",
"context": "CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR)",
"question": "What is the serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008?"
} |
### QUESTION
Show the years and the official names of the host cities of competitions.
### CONTEXT
CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)
### ANSWER
SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID</s> | {
"answer": "SELECT T2.Year, T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID",
"context": "CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR); CREATE TABLE farm_competition (Year VARCHAR, Host_city_ID VARCHAR)",
"question": "Show the years and the official names of the host cities of competitions."
} |
### QUESTION
Show the official names of the cities that have hosted more than one competition.
### CONTEXT
CREATE TABLE farm_competition (Host_city_ID VARCHAR); CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR)
### ANSWER
SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1</s> | {
"answer": "SELECT T1.Official_Name FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY T2.Host_city_ID HAVING COUNT(*) > 1",
"context": "CREATE TABLE farm_competition (Host_city_ID VARCHAR); CREATE TABLE city (Official_Name VARCHAR, City_ID VARCHAR)",
"question": "Show the official names of the cities that have hosted more than one competition."
} |
### QUESTION
Please show the themes of competitions with host cities having populations larger than 1000.
### CONTEXT
CREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR)
### ANSWER
SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000</s> | {
"answer": "SELECT T2.Theme FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID WHERE T1.Population > 1000",
"context": "CREATE TABLE city (City_ID VARCHAR, Population INTEGER); CREATE TABLE farm_competition (Theme VARCHAR, Host_city_ID VARCHAR)",
"question": "Please show the themes of competitions with host cities having populations larger than 1000."
} |
### QUESTION
which course has most number of registered students?
### CONTEXT
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)
### ANSWER
SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.course_name FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_Id GROUP BY T1.course_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_Id VARCHAR)",
"question": "which course has most number of registered students?"
} |
### QUESTION
How many cover dates does the story "Devastation Derby! (part 1)" have?
### CONTEXT
CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR)
### ANSWER
SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = "DEVASTATION DERBY! (Part 1)"</s> | {
"answer": "SELECT COUNT(cover_date) FROM table_18305523_2 WHERE story_title = \"DEVASTATION DERBY! (Part 1)\"",
"context": "CREATE TABLE table_18305523_2 (cover_date VARCHAR, story_title VARCHAR)",
"question": "How many cover dates does the story \"Devastation Derby! (part 1)\" have?"
} |
### QUESTION
List the id of students who never attends courses?
### CONTEXT
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)
### ANSWER
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)</s> | {
"answer": "SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)",
"context": "CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)",
"question": "List the id of students who never attends courses?"
} |
### QUESTION
What are the ids of all students for courses and what are the names of those courses?
### CONTEXT
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)
### ANSWER
SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id</s> | {
"answer": "SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id",
"context": "CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)",
"question": "What are the ids of all students for courses and what are the names of those courses?"
} |
### QUESTION
How many students attend course English?
### CONTEXT
CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English"</s> | {
"answer": "SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"English\"",
"context": "CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)",
"question": "How many students attend course English?"
} |
### QUESTION
What is detail of the student who registered the most number of courses?
### CONTEXT
CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)
### ANSWER
SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT T1.student_details FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE students (student_details VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)",
"question": "What is detail of the student who registered the most number of courses?"
} |
### QUESTION
what is the platform when the frequency (per hour) is 4 and the destination is west croydon?
### CONTEXT
CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)
### ANSWER
SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = "west croydon"</s> | {
"answer": "SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = \"west croydon\"",
"context": "CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR)",
"question": "what is the platform when the frequency (per hour) is 4 and the destination is west croydon?"
} |
### QUESTION
How many registed students do each course have? List course name and the number of their registered students?
### CONTEXT
CREATE TABLE students (student_id VARCHAR); CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
### ANSWER
SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id</s> | {
"answer": "SELECT T3.course_name, COUNT(*) FROM students AS T1 JOIN student_course_registrations AS T2 ON T1.student_id = T2.student_id JOIN courses AS T3 ON T2.course_id = T3.course_id GROUP BY T2.course_id",
"context": "CREATE TABLE students (student_id VARCHAR); CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)",
"question": "How many registed students do each course have? List course name and the number of their registered students?"
} |
### QUESTION
what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?
### CONTEXT
CREATE TABLE table_name_32 (platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR)
### ANSWER
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon"</s> | {
"answer": "SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = \"london overground\" AND destination = \"west croydon\"",
"context": "CREATE TABLE table_name_32 (platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR)",
"question": "what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?"
} |
### QUESTION
Find the cell mobile number of the candidates whose assessment code is "Fail"?
### CONTEXT
CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)
### ANSWER
SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = "Fail"</s> | {
"answer": "SELECT T3.cell_mobile_number FROM candidates AS T1 JOIN candidate_assessments AS T2 ON T1.candidate_id = T2.candidate_id JOIN people AS T3 ON T1.candidate_id = T3.person_id WHERE T2.asessment_outcome_code = \"Fail\"",
"context": "CREATE TABLE candidates (candidate_id VARCHAR); CREATE TABLE people (cell_mobile_number VARCHAR, person_id VARCHAR); CREATE TABLE candidate_assessments (candidate_id VARCHAR, asessment_outcome_code VARCHAR)",
"question": "Find the cell mobile number of the candidates whose assessment code is \"Fail\"?"
} |
### QUESTION
Find distinct cities of addresses of people?
### CONTEXT
CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR)
### ANSWER
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id</s> | {
"answer": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id",
"context": "CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR)",
"question": "Find distinct cities of addresses of people?"
} |
### QUESTION
when does the train arriving at bourne at 11.45 departure
### CONTEXT
CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)
### ANSWER
SELECT departure FROM table_18333678_2 WHERE going_to = "Bourne" AND arrival = "11.45"</s> | {
"answer": "SELECT departure FROM table_18333678_2 WHERE going_to = \"Bourne\" AND arrival = \"11.45\"",
"context": "CREATE TABLE table_18333678_2 (departure VARCHAR, going_to VARCHAR, arrival VARCHAR)",
"question": "when does the train arriving at bourne at 11.45 departure "
} |
### QUESTION
Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?
### CONTEXT
CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)
### ANSWER
SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king"</s> | {
"answer": "SELECT monarch FROM table_name_67 WHERE heir = \"robert curthose\" AND reason = \"father became king\"",
"context": "CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR)",
"question": "Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king?"
} |
### QUESTION
when does the train arriving at stamford east at 11.45 departure
### CONTEXT
CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)
### ANSWER
SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"</s> | {
"answer": "SELECT departure FROM table_18333678_2 WHERE arrival = \"11.45\" AND going_to = \"Stamford East\"",
"context": "CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)",
"question": "when does the train arriving at stamford east at 11.45 departure "
} |
### QUESTION
Find distinct cities of address of students?
### CONTEXT
CREATE TABLE students (student_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR, person_id VARCHAR)
### ANSWER
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id</s> | {
"answer": "SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id",
"context": "CREATE TABLE students (student_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR, person_id VARCHAR)",
"question": "Find distinct cities of address of students?"
} |
### QUESTION
Find the id of courses which are registered or attended by student whose id is 121?
### CONTEXT
CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
### ANSWER
SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121</s> | {
"answer": "SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121",
"context": "CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)",
"question": "Find the id of courses which are registered or attended by student whose id is 121?"
} |
### QUESTION
What are all info of students who registered courses but not attended courses?
### CONTEXT
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)
### ANSWER
SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)</s> | {
"answer": "SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)",
"context": "CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR)",
"question": "What are all info of students who registered courses but not attended courses?"
} |
### QUESTION
List the id of students who registered course statistics in the order of registration date.
### CONTEXT
CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR, registration_date VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
### ANSWER
SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.registration_date</s> | {
"answer": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_registrations AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.registration_date",
"context": "CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR, registration_date VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)",
"question": "List the id of students who registered course statistics in the order of registration date."
} |
### QUESTION
List the id of students who attended statistics courses in the order of attendance date.
### CONTEXT
CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
### ANSWER
SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance</s> | {
"answer": "SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"statistics\" ORDER BY T2.date_of_attendance",
"context": "CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)",
"question": "List the id of students who attended statistics courses in the order of attendance date."
} |
### QUESTION
What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?
### CONTEXT
CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR)
### ANSWER
SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = "10" AND nationality = "england" AND position = "df" AND club_apps = "118"</s> | {
"answer": "SELECT tottenham_hotspur_career FROM table_name_26 WHERE goals = \"10\" AND nationality = \"england\" AND position = \"df\" AND club_apps = \"118\"",
"context": "CREATE TABLE table_name_26 (tottenham_hotspur_career VARCHAR, club_apps VARCHAR, position VARCHAR, goals VARCHAR, nationality VARCHAR)",
"question": "What were the years of the Tottenham Hotspur career for the player with 10 goals, from England, played the df position, and had 118 club apps?"
} |
### QUESTION
For each zip code, return the average mean temperature of August there.
### CONTEXT
CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR)
### ANSWER
SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE "8/%" GROUP BY zip_code</s> | {
"answer": "SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE \"8/%\" GROUP BY zip_code",
"context": "CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR)",
"question": "For each zip code, return the average mean temperature of August there."
} |
### QUESTION
Which school has a state authority and a roll of 318?
### CONTEXT
CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)
### ANSWER
SELECT name FROM table_name_27 WHERE authority = "state" AND roll = 318</s> | {
"answer": "SELECT name FROM table_name_27 WHERE authority = \"state\" AND roll = 318",
"context": "CREATE TABLE table_name_27 (name VARCHAR, authority VARCHAR, roll VARCHAR)",
"question": "Which school has a state authority and a roll of 318?"
} |
### QUESTION
when deland is the fcsl team and 2008 is the year played who is the mlb team?
### CONTEXT
CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR)
### ANSWER
SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand"</s> | {
"answer": "SELECT mlb_team FROM table_18373863_2 WHERE years_played = \"2008\" AND fcsl_team = \"DeLand\"",
"context": "CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR)",
"question": "when deland is the fcsl team and 2008 is the year played who is the mlb team?"
} |
### QUESTION
How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles?
### CONTEXT
CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR)
### ANSWER
SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas"</s> | {
"answer": "SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = \"kansas\"",
"context": "CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR)",
"question": "How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles?"
} |
### QUESTION
Which start station had the most trips starting from August? Give me the name and id of the station.
### CONTEXT
CREATE TABLE trip (start_station_name VARCHAR, start_station_id VARCHAR, start_date VARCHAR)
### ANSWER
SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE "8/%" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT start_station_name, start_station_id FROM trip WHERE start_date LIKE \"8/%\" GROUP BY start_station_name ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE trip (start_station_name VARCHAR, start_station_id VARCHAR, start_date VARCHAR)",
"question": "Which start station had the most trips starting from August? Give me the name and id of the station."
} |
### QUESTION
Which home team played against Geelong?
### CONTEXT
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
### ANSWER
SELECT home_team FROM table_name_39 WHERE away_team = "geelong"</s> | {
"answer": "SELECT home_team FROM table_name_39 WHERE away_team = \"geelong\"",
"context": "CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)",
"question": "Which home team played against Geelong?"
} |
### QUESTION
What are the ids of stations that are located in San Francisco and have average bike availability above 10.
### CONTEXT
CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER)
### ANSWER
SELECT id FROM station WHERE city = "San Francisco" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10</s> | {
"answer": "SELECT id FROM station WHERE city = \"San Francisco\" INTERSECT SELECT station_id FROM status GROUP BY station_id HAVING AVG(bikes_available) > 10",
"context": "CREATE TABLE status (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER); CREATE TABLE station (id VARCHAR, station_id VARCHAR, city VARCHAR, bikes_available INTEGER)",
"question": "What are the ids of stations that are located in San Francisco and have average bike availability above 10."
} |
### QUESTION
What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?
### CONTEXT
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER)
### ANSWER
SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE "12/%"</s> | {
"answer": "SELECT T1.name, T1.id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(T2.bikes_available) > 14 UNION SELECT name, id FROM station WHERE installation_date LIKE \"12/%\"",
"context": "CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE station (name VARCHAR, id VARCHAR, installation_date VARCHAR); CREATE TABLE status (station_id VARCHAR, bikes_available INTEGER)",
"question": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?"
} |
### QUESTION
Name the greek modern for słyszałeś był / słyszałaś była
### CONTEXT
CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR)
### ANSWER
SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = "słyszałeś był / słyszałaś była"</s> | {
"answer": "SELECT greek__modern_ FROM table_1841901_1 WHERE polish__extinct_ = \"słyszałeś był / słyszałaś była\"",
"context": "CREATE TABLE table_1841901_1 (greek__modern_ VARCHAR, polish__extinct_ VARCHAR)",
"question": "Name the greek modern for słyszałeś był / słyszałaś była"
} |
### QUESTION
What is the zip code in which the average mean sea level pressure is the lowest?
### CONTEXT
CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)
### ANSWER
SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1</s> | {
"answer": "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1",
"context": "CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)",
"question": "What is the zip code in which the average mean sea level pressure is the lowest?"
} |
### QUESTION
What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?
### CONTEXT
CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR)
### ANSWER
SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452"</s> | {
"answer": "SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = \"1.452\"",
"context": "CREATE TABLE table_18424435_4 (us_air_date VARCHAR, canadian_viewers__million_ VARCHAR)",
"question": "What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?"
} |
### QUESTION
Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.
### CONTEXT
CREATE TABLE trip (id VARCHAR, zip_code VARCHAR); CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER)
### ANSWER
SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING AVG(T2.mean_temperature_f) > 60</s> | {
"answer": "SELECT T1.id FROM trip AS T1 JOIN weather AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.zip_code HAVING AVG(T2.mean_temperature_f) > 60",
"context": "CREATE TABLE trip (id VARCHAR, zip_code VARCHAR); CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER)",
"question": "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60."
} |
### QUESTION
On which day and in which zip code was the min dew point lower than any day in zip code 94107?
### CONTEXT
CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER)
### ANSWER
SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)</s> | {
"answer": "SELECT date, zip_code FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107)",
"context": "CREATE TABLE weather (date VARCHAR, zip_code VARCHAR, min_dew_point_f INTEGER)",
"question": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?"
} |
### QUESTION
For each trip, return its ending station's installation date.
### CONTEXT
CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)
### ANSWER
SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id</s> | {
"answer": "SELECT T1.id, T2.installation_date FROM trip AS T1 JOIN station AS T2 ON T1.end_station_id = T2.id",
"context": "CREATE TABLE station (installation_date VARCHAR, id VARCHAR); CREATE TABLE trip (id VARCHAR, end_station_id VARCHAR)",
"question": "For each trip, return its ending station's installation date."
} |
### QUESTION
I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56
### CONTEXT
CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)
### ANSWER
SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = "010 12th" AND number_of_seasons_in_ligue_1 > 56</s> | {
"answer": "SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = \"010 12th\" AND number_of_seasons_in_ligue_1 > 56",
"context": "CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)",
"question": "I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56"
} |
### QUESTION
Who wrote the episodes watched by 1.816 million people in Canada?
### CONTEXT
CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)
### ANSWER
SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = "1.816"</s> | {
"answer": "SELECT written_by FROM table_18424435_3 WHERE canadian_viewers__million_ = \"1.816\"",
"context": "CREATE TABLE table_18424435_3 (written_by VARCHAR, canadian_viewers__million_ VARCHAR)",
"question": "Who wrote the episodes watched by 1.816 million people in Canada?"
} |
### QUESTION
For upper Arlington, what was the median household income?
### CONTEXT
CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR)
### ANSWER
SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington"</s> | {
"answer": "SELECT median_house__hold_income FROM table_1840495_2 WHERE place = \"Upper Arlington\"",
"context": "CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR)",
"question": "For upper Arlington, what was the median household income?"
} |
### QUESTION
What are names of stations that have average bike availability above 10 and are not located in San Jose city?
### CONTEXT
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)
### ANSWER
SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = "San Jose"</s> | {
"answer": "SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = \"San Jose\"",
"context": "CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)",
"question": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?"
} |
### QUESTION
If the population is 2188, what was the median household income?
### CONTEXT
CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR)
### ANSWER
SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188</s> | {
"answer": "SELECT median_house__hold_income FROM table_1840495_2 WHERE population = 2188",
"context": "CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, population VARCHAR)",
"question": "If the population is 2188, what was the median household income?"
} |
### QUESTION
What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?
### CONTEXT
CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)
### ANSWER
SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3</s> | {
"answer": "SELECT date, mean_temperature_f, mean_humidity FROM weather ORDER BY max_gust_speed_mph DESC LIMIT 3",
"context": "CREATE TABLE weather (date VARCHAR, mean_temperature_f VARCHAR, mean_humidity VARCHAR, max_gust_speed_mph VARCHAR)",
"question": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?"
} |
### QUESTION
If the median income is $57,407, what is the per capita income?
### CONTEXT
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)
### ANSWER
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407"</s> | {
"answer": "SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = \"$57,407\"",
"context": "CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)",
"question": "If the median income is $57,407, what is the per capita income?"
} |
### QUESTION
For each station, return its longitude and the average duration of trips that started from the station.
### CONTEXT
CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR)
### ANSWER
SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id</s> | {
"answer": "SELECT T1.name, T1.long, AVG(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.start_station_id GROUP BY T2.start_station_id",
"context": "CREATE TABLE station (name VARCHAR, long VARCHAR, id VARCHAR); CREATE TABLE trip (duration INTEGER, start_station_id VARCHAR)",
"question": "For each station, return its longitude and the average duration of trips that started from the station."
} |
### QUESTION
If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?
### CONTEXT
CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR)
### ANSWER
SELECT original_air_date FROM table_18427769_1 WHERE directed_by = "Di Drew"</s> | {
"answer": "SELECT original_air_date FROM table_18427769_1 WHERE directed_by = \"Di Drew\"",
"context": "CREATE TABLE table_18427769_1 (original_air_date VARCHAR, directed_by VARCHAR)",
"question": "If Di Drew is the director, what was the original air date for episode A Whole Lot to Lose?"
} |
### QUESTION
Find all the zip codes in which the max dew point have never reached 70.
### CONTEXT
CREATE TABLE weather (zip_code VARCHAR, max_dew_point_f VARCHAR)
### ANSWER
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70</s> | {
"answer": "SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70",
"context": "CREATE TABLE weather (zip_code VARCHAR, max_dew_point_f VARCHAR)",
"question": "Find all the zip codes in which the max dew point have never reached 70."
} |
### QUESTION
What is the population (2010 census) if s barangay is 51?
### CONTEXT
CREATE TABLE table_184334_2 (population__2010_census_ VARCHAR, s_barangay VARCHAR)
### ANSWER
SELECT COUNT(population__2010_census_) FROM table_184334_2 WHERE s_barangay = 51</s> | {
"answer": "SELECT COUNT(population__2010_census_) FROM table_184334_2 WHERE s_barangay = 51",
"context": "CREATE TABLE table_184334_2 (population__2010_census_ VARCHAR, s_barangay VARCHAR)",
"question": "What is the population (2010 census) if s barangay is 51?"
} |
### QUESTION
When melbourne was the home team what was their score?
### CONTEXT
CREATE TABLE table_name_46 (home_team VARCHAR)
### ANSWER
SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"</s> | {
"answer": "SELECT home_team AS score FROM table_name_46 WHERE home_team = \"melbourne\"",
"context": "CREATE TABLE table_name_46 (home_team VARCHAR)",
"question": "When melbourne was the home team what was their score?"
} |
### QUESTION
Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.
### CONTEXT
CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR)
### ANSWER
SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1</s> | {
"answer": "SELECT date, max_temperature_f - min_temperature_f FROM weather ORDER BY max_temperature_f - min_temperature_f LIMIT 1",
"context": "CREATE TABLE weather (date VARCHAR, max_temperature_f VARCHAR, min_temperature_f VARCHAR)",
"question": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference."
} |
### QUESTION
Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.
### CONTEXT
CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER)
### ANSWER
SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100</s> | {
"answer": "SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100",
"context": "CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER)",
"question": "Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place."
} |
### QUESTION
How many trips started from Mountain View city and ended at Palo Alto city?
### CONTEXT
CREATE TABLE station (city VARCHAR, id VARCHAR); CREATE TABLE trip (end_station_id VARCHAR, id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR); CREATE TABLE trip (start_station_id VARCHAR, id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = "Mountain View" AND T3.city = "Palo Alto"</s> | {
"answer": "SELECT COUNT(*) FROM station AS T1 JOIN trip AS T2 JOIN station AS T3 JOIN trip AS T4 ON T1.id = T2.start_station_id AND T2.id = T4.id AND T3.id = T4.end_station_id WHERE T1.city = \"Mountain View\" AND T3.city = \"Palo Alto\"",
"context": "CREATE TABLE station (city VARCHAR, id VARCHAR); CREATE TABLE trip (end_station_id VARCHAR, id VARCHAR); CREATE TABLE station (id VARCHAR, city VARCHAR); CREATE TABLE trip (start_station_id VARCHAR, id VARCHAR)",
"question": "How many trips started from Mountain View city and ended at Palo Alto city?"
} |
### QUESTION
What is the minimum stations owned since kero-tv?
### CONTEXT
CREATE TABLE table_1847523_2 (owned_since INTEGER, station VARCHAR)
### ANSWER
SELECT MIN(owned_since) FROM table_1847523_2 WHERE station = "KERO-TV"</s> | {
"answer": "SELECT MIN(owned_since) FROM table_1847523_2 WHERE station = \"KERO-TV\"",
"context": "CREATE TABLE table_1847523_2 (owned_since INTEGER, station VARCHAR)",
"question": "What is the minimum stations owned since kero-tv?"
} |
### QUESTION
What is the lyric fm for rnag 93.2?
### CONTEXT
CREATE TABLE table_18475946_2 (lyric_fm__mhz_ VARCHAR, rnag__mhz_ VARCHAR)
### ANSWER
SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "93.2"</s> | {
"answer": "SELECT lyric_fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = \"93.2\"",
"context": "CREATE TABLE table_18475946_2 (lyric_fm__mhz_ VARCHAR, rnag__mhz_ VARCHAR)",
"question": "What is the lyric fm for rnag 93.2?"
} |
### QUESTION
In 2008, what was the world ranking that ranked 5th in L.A.?
### CONTEXT
CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)
### ANSWER
SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"</s> | {
"answer": "SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = \"5th\" AND year_of_publication = \"2008\"",
"context": "CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)",
"question": "In 2008, what was the world ranking that ranked 5th in L.A.?"
} |
### QUESTION
what is the total number of played when the goals for is more than 34 and goals against is more than 63?
### CONTEXT
CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
### ANSWER
SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63</s> | {
"answer": "SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63",
"context": "CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)",
"question": "what is the total number of played when the goals for is more than 34 and goals against is more than 63?"
} |
### QUESTION
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
### CONTEXT
CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)
### ANSWER
SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38</s> | {
"answer": "SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38",
"context": "CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)",
"question": "what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?"
} |
### QUESTION
What was the state (class) where the new successor was formally installed on May 11, 1966?
### CONTEXT
CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)
### ANSWER
SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966"</s> | {
"answer": "SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = \"May 11, 1966\"",
"context": "CREATE TABLE table_1847180_3 (state__class_ VARCHAR, date_of_successors_formal_installation VARCHAR)",
"question": "What was the state (class) where the new successor was formally installed on May 11, 1966?"
} |
### QUESTION
what is the highest gold when the rank is 12 for the nation vietnam?
### CONTEXT
CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR)
### ANSWER
SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam"</s> | {
"answer": "SELECT MAX(gold) FROM table_name_18 WHERE rank = \"12\" AND nation = \"vietnam\"",
"context": "CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR)",
"question": "what is the highest gold when the rank is 12 for the nation vietnam?"
} |
### QUESTION
List the publication dates of publications with 3 lowest prices.
### CONTEXT
CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)
### ANSWER
SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3</s> | {
"answer": "SELECT Publication_Date FROM publication ORDER BY Price LIMIT 3",
"context": "CREATE TABLE publication (Publication_Date VARCHAR, Price VARCHAR)",
"question": "List the publication dates of publications with 3 lowest prices."
} |
### QUESTION
Show the title and publication dates of books.
### CONTEXT
CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR)
### ANSWER
SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID</s> | {
"answer": "SELECT T1.Title, T2.Publication_Date FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID",
"context": "CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR); CREATE TABLE publication (Publication_Date VARCHAR, Book_ID VARCHAR)",
"question": "Show the title and publication dates of books."
} |
### QUESTION
Please show the most common publication date.
### CONTEXT
CREATE TABLE publication (Publication_Date VARCHAR)
### ANSWER
SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1</s> | {
"answer": "SELECT Publication_Date FROM publication GROUP BY Publication_Date ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE publication (Publication_Date VARCHAR)",
"question": "Please show the most common publication date."
} |
### QUESTION
Which Date has an Attendance of 9,535?
### CONTEXT
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
### ANSWER
SELECT date FROM table_name_73 WHERE attendance = "9,535"</s> | {
"answer": "SELECT date FROM table_name_73 WHERE attendance = \"9,535\"",
"context": "CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)",
"question": "Which Date has an Attendance of 9,535?"
} |
### QUESTION
how many people commentated where broadcaster is orf
### CONTEXT
CREATE TABLE table_184803_4 (commentator VARCHAR, broadcaster VARCHAR)
### ANSWER
SELECT COUNT(commentator) FROM table_184803_4 WHERE broadcaster = "ORF"</s> | {
"answer": "SELECT COUNT(commentator) FROM table_184803_4 WHERE broadcaster = \"ORF\"",
"context": "CREATE TABLE table_184803_4 (commentator VARCHAR, broadcaster VARCHAR)",
"question": "how many people commentated where broadcaster is orf"
} |
### QUESTION
Name the team which has high rebounds of smith (10)
### CONTEXT
CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)
### ANSWER
SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"</s> | {
"answer": "SELECT team FROM table_name_96 WHERE high_rebounds = \"smith (10)\"",
"context": "CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)",
"question": "Name the team which has high rebounds of smith (10)"
} |
### QUESTION
What is the broadcast date of the 16mm t/r episode?
### CONTEXT
CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR)
### ANSWER
SELECT broadcast_date FROM table_1849243_1 WHERE archive = "16mm t/r"</s> | {
"answer": "SELECT broadcast_date FROM table_1849243_1 WHERE archive = \"16mm t/r\"",
"context": "CREATE TABLE table_1849243_1 (broadcast_date VARCHAR, archive VARCHAR)",
"question": "What is the broadcast date of the 16mm t/r episode?"
} |
### QUESTION
When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?
### CONTEXT
CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)
### ANSWER
SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23"</s> | {
"answer": "SELECT tyre FROM table_name_51 WHERE rounds = \"14-15\" AND engine = \"ford cosworth dfv 3.0 v8\" AND chassis = \"m23\"",
"context": "CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)",
"question": "When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?"
} |
### QUESTION
state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna
### CONTEXT
CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR)
### ANSWER
SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = "Impreuna pentru totdeauna"</s> | {
"answer": "SELECT el_canal_de_las_estrellas FROM table_18498743_1 WHERE mañana_es_para_siempre = \"Impreuna pentru totdeauna\"",
"context": "CREATE TABLE table_18498743_1 (el_canal_de_las_estrellas VARCHAR, mañana_es_para_siempre VARCHAR)",
"question": "state el canal de las estrellas where mañana es para siempre is impreuna pentru totdeauna"
} |
### QUESTION
Show names of actors in descending order of the year their musical is awarded.
### CONTEXT
CREATE TABLE musical (Musical_ID VARCHAR, Year VARCHAR); CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR)
### ANSWER
SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC</s> | {
"answer": "SELECT T1.Name FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID ORDER BY T2.Year DESC",
"context": "CREATE TABLE musical (Musical_ID VARCHAR, Year VARCHAR); CREATE TABLE actor (Name VARCHAR, Musical_ID VARCHAR)",
"question": "Show names of actors in descending order of the year their musical is awarded."
} |
### QUESTION
What is the series score of the game with Vancouver as the visiting team on April 16?
### CONTEXT
CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR)
### ANSWER
SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16"</s> | {
"answer": "SELECT series FROM table_name_73 WHERE visitor = \"vancouver\" AND date = \"april 16\"",
"context": "CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR)",
"question": "What is the series score of the game with Vancouver as the visiting team on April 16?"
} |
### QUESTION
Name the other for chironius multiventris septentrionalis
### CONTEXT
CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR)
### ANSWER
SELECT other FROM table_1850282_7 WHERE species = "Chironius multiventris septentrionalis"</s> | {
"answer": "SELECT other FROM table_1850282_7 WHERE species = \"Chironius multiventris septentrionalis\"",
"context": "CREATE TABLE table_1850282_7 (other VARCHAR, species VARCHAR)",
"question": "Name the other for chironius multiventris septentrionalis"
} |
### 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"</s> | {
"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 mexico stat where mañana es para siempre is love never dies
### CONTEXT
CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)
### ANSWER
SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = "Love Never Dies"</s> | {
"answer": "SELECT mexico FROM table_18498743_1 WHERE mañana_es_para_siempre = \"Love Never Dies\"",
"context": "CREATE TABLE table_18498743_1 (mexico VARCHAR, mañana_es_para_siempre VARCHAR)",
"question": "what is the mexico stat where mañana es para siempre is love never dies"
} |
### QUESTION
How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?
### CONTEXT
CREATE TABLE table_1850339_2 (season VARCHAR, army___navy_score VARCHAR)
### ANSWER
SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = "10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)"</s> | {
"answer": "SELECT COUNT(season) FROM table_1850339_2 WHERE army___navy_score = \"10 Dec. 2016 at Baltimore, MD (M&T Bank Stadium)\"",
"context": "CREATE TABLE table_1850339_2 (season VARCHAR, army___navy_score VARCHAR)",
"question": "How many different season have an Army - Navy score of 10 dec. 2016 at Baltimore, MD (M&T Bank Stadium)?"
} |
### QUESTION
What is the lowest crowd with home team richmond?
### CONTEXT
CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)
### ANSWER
SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"</s> | {
"answer": "SELECT MIN(crowd) FROM table_name_79 WHERE home_team = \"richmond\"",
"context": "CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)",
"question": "What is the lowest crowd with home team richmond?"
} |
### QUESTION
Name the tourism receipts 2003 for tourism competitiveness 3.26
### CONTEXT
CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR)
### ANSWER
SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = "3.26"</s> | {
"answer": "SELECT COUNT(tourism_receipts__2003___as__percentage_of_exports_) FROM table_18524_6 WHERE tourism_competitiveness__2011___ttci_ = \"3.26\"",
"context": "CREATE TABLE table_18524_6 (tourism_receipts__2003___as__percentage_of_exports_ VARCHAR, tourism_competitiveness__2011___ttci_ VARCHAR)",
"question": "Name the tourism receipts 2003 for tourism competitiveness 3.26"
} |
### QUESTION
Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5
### CONTEXT
CREATE TABLE table_18524_6 (tourism_receipts__2011___us VARCHAR, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR)
### ANSWER
SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "13.5"</s> | {
"answer": "SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = \"13.5\"",
"context": "CREATE TABLE table_18524_6 (tourism_receipts__2011___us VARCHAR, tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR)",
"question": "Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5"
} |
### QUESTION
Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
### CONTEXT
CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)
### ANSWER
SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = "17h59m02.0s"</s> | {
"answer": "SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = \"17h59m02.0s\"",
"context": "CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)",
"question": "Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?"
} |
### QUESTION
Find the names of users whose emails contain ‘superstar’ or ‘edu’.
### CONTEXT
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
### ANSWER
SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'</s> | {
"answer": "SELECT name FROM user_profiles WHERE email LIKE '%superstar%' OR email LIKE '%edu%'",
"context": "CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)",
"question": "Find the names of users whose emails contain ‘superstar’ or ‘edu’."
} |
### QUESTION
Name the date of vacancy for daniel uberti
### CONTEXT
CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
### ANSWER
SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = "Daniel Uberti"</s> | {
"answer": "SELECT date_of_vacancy FROM table_18522916_5 WHERE outgoing_manager = \"Daniel Uberti\"",
"context": "CREATE TABLE table_18522916_5 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)",
"question": "Name the date of vacancy for daniel uberti"
} |
### QUESTION
What's the rank for a team that has a percentage of 56% and a loss smaller than 4?
### CONTEXT
CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)
### ANSWER
SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4</s> | {
"answer": "SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = \"56%\" AND loss < 4",
"context": "CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)",
"question": "What's the rank for a team that has a percentage of 56% and a loss smaller than 4?"
} |
### QUESTION
Find the names of the users whose number of followers is greater than that of the user named "Tyler Swift".
### CONTEXT
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### ANSWER
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')</s> | {
"answer": "SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift')",
"context": "CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)",
"question": "Find the names of the users whose number of followers is greater than that of the user named \"Tyler Swift\"."
} |
### QUESTION
Find the name and email for the users who have more than one follower.
### CONTEXT
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)
### ANSWER
SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1</s> | {
"answer": "SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1",
"context": "CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)",
"question": "Find the name and email for the users who have more than one follower."
} |
### QUESTION
What team does bobby hillin jr. (r) drive a buick regal for?
### CONTEXT
CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR)
### ANSWER
SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)"</s> | {
"answer": "SELECT team FROM table_name_8 WHERE make = \"buick regal\" AND driver = \"bobby hillin jr. (r)\"",
"context": "CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR)",
"question": "What team does bobby hillin jr. (r) drive a buick regal for?"
} |
### QUESTION
Find the id of users who are followed by Mary and Susan.
### CONTEXT
CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)
### ANSWER
SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Mary" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = "Susan"</s> | {
"answer": "SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Mary\" INTERSECT SELECT T2.f1 FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f2 WHERE T1.name = \"Susan\"",
"context": "CREATE TABLE follows (f1 VARCHAR, f2 VARCHAR); CREATE TABLE user_profiles (uid VARCHAR, name VARCHAR)",
"question": "Find the id of users who are followed by Mary and Susan."
} |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 34