text
stringlengths 146
1.06k
| source
dict |
---|---|
### QUESTION
Show the name and population of the country that has the highest roller coaster.
### CONTEXT
CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)
### ANSWER
SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1 | {
"answer": "SELECT T1.Name, T1.population FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID ORDER BY T2.Height DESC LIMIT 1",
"context": "CREATE TABLE roller_coaster (Country_ID VARCHAR, Height VARCHAR); CREATE TABLE country (Name VARCHAR, population VARCHAR, Country_ID VARCHAR)",
"question": "Show the name and population of the country that has the highest roller coaster."
} |
### QUESTION
What county had 915 third party voters?
### CONTEXT
CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)
### ANSWER
SELECT county FROM table_20278716_2 WHERE others__number = 915 | {
"answer": "SELECT county FROM table_20278716_2 WHERE others__number = 915",
"context": "CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)",
"question": "What county had 915 third party voters?"
} |
### QUESTION
What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?
### CONTEXT
CREATE TABLE table_name_64 (fa_cup VARCHAR, total VARCHAR, play_offs VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(fa_cup) FROM table_name_64 WHERE play_offs = 3 AND name = "mitch cook category:articles with hcards" AND total < 11 | {
"answer": "SELECT COUNT(fa_cup) FROM table_name_64 WHERE play_offs = 3 AND name = \"mitch cook category:articles with hcards\" AND total < 11",
"context": "CREATE TABLE table_name_64 (fa_cup VARCHAR, total VARCHAR, play_offs VARCHAR, name VARCHAR)",
"question": "What's the total number of FA Cup with a Play-offs of 3, and the Name of Mitch Cook Category:Articles with hCards and has a Total thats less than 11?"
} |
### QUESTION
WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?
### CONTEXT
CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)
### ANSWER
SELECT europe FROM table_name_68 WHERE head_coach = "vainauskas , sakalauskas" AND regional_competitions = "nebl finalist" | {
"answer": "SELECT europe FROM table_name_68 WHERE head_coach = \"vainauskas , sakalauskas\" AND regional_competitions = \"nebl finalist\"",
"context": "CREATE TABLE table_name_68 (europe VARCHAR, head_coach VARCHAR, regional_competitions VARCHAR)",
"question": "WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?"
} |
### QUESTION
Name the year with the best female pop vocal album and result of won
### CONTEXT
CREATE TABLE table_name_43 (year VARCHAR, category VARCHAR, result VARCHAR)
### ANSWER
SELECT year FROM table_name_43 WHERE category = "best female pop vocal album" AND result = "won" | {
"answer": "SELECT year FROM table_name_43 WHERE category = \"best female pop vocal album\" AND result = \"won\"",
"context": "CREATE TABLE table_name_43 (year VARCHAR, category VARCHAR, result VARCHAR)",
"question": "Name the year with the best female pop vocal album and result of won"
} |
### QUESTION
What was the to par that goes with the score 68-74-69=211?
### CONTEXT
CREATE TABLE table_name_70 (to_par VARCHAR, score VARCHAR)
### ANSWER
SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211 | {
"answer": "SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211",
"context": "CREATE TABLE table_name_70 (to_par VARCHAR, score VARCHAR)",
"question": "What was the to par that goes with the score 68-74-69=211?"
} |
### QUESTION
Find the first and last name of students who are living in the dorms that have amenity TV Lounge.
### CONTEXT
CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
### ANSWER
SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') | {
"answer": "SELECT T1.fname, T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge')",
"context": "CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE lives_in (stuid VARCHAR, dormid VARCHAR); CREATE TABLE student (fname VARCHAR, lname VARCHAR, stuid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)",
"question": "Find the first and last name of students who are living in the dorms that have amenity TV Lounge."
} |
### QUESTION
Name the payout for espn for music city bowl
### CONTEXT
CREATE TABLE table_24427210_1 (payout___us$__ VARCHAR, tv VARCHAR, bowl_game VARCHAR)
### ANSWER
SELECT payout___us$__ FROM table_24427210_1 WHERE tv = "ESPN" AND bowl_game = "Music City Bowl" | {
"answer": "SELECT payout___us$__ FROM table_24427210_1 WHERE tv = \"ESPN\" AND bowl_game = \"Music City Bowl\"",
"context": "CREATE TABLE table_24427210_1 (payout___us$__ VARCHAR, tv VARCHAR, bowl_game VARCHAR)",
"question": "Name the payout for espn for music city bowl"
} |
### QUESTION
Find the titles of all movies that have no ratings.
### CONTEXT
CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
### ANSWER
SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating) | {
"answer": "SELECT title FROM Movie WHERE NOT mID IN (SELECT mID FROM Rating)",
"context": "CREATE TABLE Rating (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)",
"question": "Find the titles of all movies that have no ratings."
} |
### QUESTION
What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?
### CONTEXT
CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR)
### ANSWER
SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12" | {
"answer": "SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = \"scuderia ferrari\" AND engine = \"ferrari v12\"",
"context": "CREATE TABLE table_name_60 (points INTEGER, engine VARCHAR, year VARCHAR, entrant VARCHAR)",
"question": "What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971?"
} |
### QUESTION
Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?
### CONTEXT
CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR)
### ANSWER
SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = "hadise açıkgöz, yves jongen" AND length = "3:08" | {
"answer": "SELECT producer_s_ FROM table_name_46 WHERE track < 8 AND songwriter_s_ = \"hadise açıkgöz, yves jongen\" AND length = \"3:08\"",
"context": "CREATE TABLE table_name_46 (producer_s_ VARCHAR, length VARCHAR, track VARCHAR, songwriter_s_ VARCHAR)",
"question": "Which Producer(s) has a Track smaller than 8, and a Songwriter(s) of hadise açıkgöz, yves jongen, and a Length of 3:08?"
} |
### QUESTION
If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?
### CONTEXT
CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)
### ANSWER
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)" | {
"answer": "SELECT result FROM table_22577693_1 WHERE runner_up = \"[[|]] 151/8 (50.0 overs)\"",
"context": "CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)",
"question": "If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?"
} |
### QUESTION
What is Japanese Release Date, when Australia Release Date is "2006-03-23"?
### CONTEXT
CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR)
### ANSWER
SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = "2006-03-23" | {
"answer": "SELECT japanese_release_date FROM table_name_34 WHERE australia_release_date = \"2006-03-23\"",
"context": "CREATE TABLE table_name_34 (japanese_release_date VARCHAR, australia_release_date VARCHAR)",
"question": "What is Japanese Release Date, when Australia Release Date is \"2006-03-23\"?"
} |
### QUESTION
What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?
### CONTEXT
CREATE TABLE table_name_95 (tf1__number INTEGER, official__number VARCHAR, air_date__france_ VARCHAR)
### ANSWER
SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = "13 july 2010" | {
"answer": "SELECT MAX(tf1__number) FROM table_name_95 WHERE official__number > 47 AND air_date__france_ = \"13 july 2010\"",
"context": "CREATE TABLE table_name_95 (tf1__number INTEGER, official__number VARCHAR, air_date__france_ VARCHAR)",
"question": "What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?"
} |
### QUESTION
For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?
### CONTEXT
CREATE TABLE table_name_47 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
### ANSWER
SELECT home_team FROM table_name_47 WHERE date = "7 january 1956" AND away_team = "accrington stanley" | {
"answer": "SELECT home_team FROM table_name_47 WHERE date = \"7 january 1956\" AND away_team = \"accrington stanley\"",
"context": "CREATE TABLE table_name_47 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)",
"question": "For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?"
} |
### QUESTION
What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?
### CONTEXT
CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)
### ANSWER
SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0 | {
"answer": "SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0",
"context": "CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR)",
"question": "What is the total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?"
} |
### QUESTION
Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?
### CONTEXT
CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR)
### ANSWER
SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal" | {
"answer": "SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = \"fourth runner-up\" AND hometown = \"makati , rizal\"",
"context": "CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR)",
"question": "Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?"
} |
### QUESTION
What driving wheels are on the m1 original NER class?
### CONTEXT
CREATE TABLE table_name_8 (driving_wheels VARCHAR, original_ner_class VARCHAR)
### ANSWER
SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = "m1" | {
"answer": "SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = \"m1\"",
"context": "CREATE TABLE table_name_8 (driving_wheels VARCHAR, original_ner_class VARCHAR)",
"question": "What driving wheels are on the m1 original NER class?"
} |
### QUESTION
What is the average unit price of tracks that belong to Jazz genre?
### CONTEXT
CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)
### ANSWER
SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz" | {
"answer": "SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Jazz\"",
"context": "CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)",
"question": "What is the average unit price of tracks that belong to Jazz genre?"
} |
### QUESTION
What are the names of the tourist attractions that have parking or shopping as their feature details?
### CONTEXT
CREATE TABLE Tourist_Attraction_Features (tourist_attraction_id VARCHAR, Feature_ID VARCHAR); CREATE TABLE Features (Feature_ID VARCHAR, feature_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, tourist_attraction_id VARCHAR)
### ANSWER
SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping' | {
"answer": "SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'shopping'",
"context": "CREATE TABLE Tourist_Attraction_Features (tourist_attraction_id VARCHAR, Feature_ID VARCHAR); CREATE TABLE Features (Feature_ID VARCHAR, feature_Details VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, tourist_attraction_id VARCHAR)",
"question": "What are the names of the tourist attractions that have parking or shopping as their feature details?"
} |
### QUESTION
When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?
### CONTEXT
CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)
### ANSWER
SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = "1st Class" AND population__2010_ = 318676 | {
"answer": "SELECT area__km²_ FROM table_29289372_1 WHERE income_classification = \"1st Class\" AND population__2010_ = 318676",
"context": "CREATE TABLE table_29289372_1 (area__km²_ VARCHAR, income_classification VARCHAR, population__2010_ VARCHAR)",
"question": "When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?"
} |
### QUESTION
What time was the event k-1 the challenge 1999?
### CONTEXT
CREATE TABLE table_name_1 (time VARCHAR, event VARCHAR)
### ANSWER
SELECT time FROM table_name_1 WHERE event = "k-1 the challenge 1999" | {
"answer": "SELECT time FROM table_name_1 WHERE event = \"k-1 the challenge 1999\"",
"context": "CREATE TABLE table_name_1 (time VARCHAR, event VARCHAR)",
"question": "What time was the event k-1 the challenge 1999?"
} |
### QUESTION
Who was the outgoing manager of the team in 15th position that was sacked?
### CONTEXT
CREATE TABLE table_27374004_4 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
### ANSWER
SELECT outgoing_manager FROM table_27374004_4 WHERE manner_of_departure = "Sacked" AND position_in_table = "15th" | {
"answer": "SELECT outgoing_manager FROM table_27374004_4 WHERE manner_of_departure = \"Sacked\" AND position_in_table = \"15th\"",
"context": "CREATE TABLE table_27374004_4 (outgoing_manager VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)",
"question": "Who was the outgoing manager of the team in 15th position that was sacked?"
} |
### QUESTION
What was 2009, when 2001 was, "not masters series"?
### CONTEXT
CREATE TABLE table_name_5 (Id VARCHAR)
### ANSWER
SELECT 2009 FROM table_name_5 WHERE 2001 = "not masters series" | {
"answer": "SELECT 2009 FROM table_name_5 WHERE 2001 = \"not masters series\"",
"context": "CREATE TABLE table_name_5 (Id VARCHAR)",
"question": "What was 2009, when 2001 was, \"not masters series\"?"
} |
### QUESTION
Find courses that ran in Fall 2009 or in Spring 2010.
### CONTEXT
CREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)
### ANSWER
SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010 | {
"answer": "SELECT course_id FROM SECTION WHERE semester = 'Fall' AND YEAR = 2009 UNION SELECT course_id FROM SECTION WHERE semester = 'Spring' AND YEAR = 2010",
"context": "CREATE TABLE SECTION (course_id VARCHAR, semester VARCHAR, YEAR VARCHAR)",
"question": "Find courses that ran in Fall 2009 or in Spring 2010."
} |
### QUESTION
What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04?
### CONTEXT
CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, edition VARCHAR, compatible_repository VARCHAR)
### ANSWER
SELECT default_desktop_environment FROM table_27329061_2 WHERE edition = "KDE" AND compatible_repository = "Ubuntu 13.04" | {
"answer": "SELECT default_desktop_environment FROM table_27329061_2 WHERE edition = \"KDE\" AND compatible_repository = \"Ubuntu 13.04\"",
"context": "CREATE TABLE table_27329061_2 (default_desktop_environment VARCHAR, edition VARCHAR, compatible_repository VARCHAR)",
"question": "What is the default desktop environment when the edition is kde and the compatible repository is ubuntu 13.04?"
} |
### QUESTION
Find the names and number of works of the three artists who have produced the most songs.
### CONTEXT
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
### ANSWER
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3 | {
"answer": "SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3",
"context": "CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)",
"question": "Find the names and number of works of the three artists who have produced the most songs."
} |
### QUESTION
What is the lowest Population, when Per Capita Income is "$16,330"?
### CONTEXT
CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR)
### ANSWER
SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330" | {
"answer": "SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = \"$16,330\"",
"context": "CREATE TABLE table_name_80 (population INTEGER, per_capita_income VARCHAR)",
"question": "What is the lowest Population, when Per Capita Income is \"$16,330\"?"
} |
### QUESTION
What is the average height of the players from the college named 'Yale University'?
### CONTEXT
CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR); CREATE TABLE player (height INTEGER, player_id VARCHAR); CREATE TABLE college (college_id VARCHAR, name_full VARCHAR)
### ANSWER
SELECT AVG(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University' | {
"answer": "SELECT AVG(T1.height) FROM player AS T1 JOIN player_college AS T2 ON T1.player_id = T2.player_id JOIN college AS T3 ON T3.college_id = T2.college_id WHERE T3.name_full = 'Yale University'",
"context": "CREATE TABLE player_college (player_id VARCHAR, college_id VARCHAR); CREATE TABLE player (height INTEGER, player_id VARCHAR); CREATE TABLE college (college_id VARCHAR, name_full VARCHAR)",
"question": "What is the average height of the players from the college named 'Yale University'?"
} |
### QUESTION
I want the type for host interface of pci saa7146 tmx320av7111
### CONTEXT
CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)
### ANSWER
SELECT type FROM table_name_89 WHERE host_interface = "pci saa7146 tmx320av7111" | {
"answer": "SELECT type FROM table_name_89 WHERE host_interface = \"pci saa7146 tmx320av7111\"",
"context": "CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)",
"question": "I want the type for host interface of pci saa7146 tmx320av7111"
} |
### QUESTION
What is the production code for the episode that had 1.32 million U.S. viewers?
### CONTEXT
CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR)
### ANSWER
SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32" | {
"answer": "SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = \"1.32\"",
"context": "CREATE TABLE table_22347090_6 (production_code VARCHAR, us_viewers__million_ VARCHAR)",
"question": "What is the production code for the episode that had 1.32 million U.S. viewers?"
} |
### QUESTION
What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?
### CONTEXT
CREATE TABLE table_name_88 (total_population__2010_ INTEGER, _percentage_asian_american VARCHAR, asian_american_population__2010_ VARCHAR)
### ANSWER
SELECT MIN(total_population__2010_) FROM table_name_88 WHERE _percentage_asian_american = 5.7 AND asian_american_population__2010_ < 126 OFFSET 965 | {
"answer": "SELECT MIN(total_population__2010_) FROM table_name_88 WHERE _percentage_asian_american = 5.7 AND asian_american_population__2010_ < 126 OFFSET 965",
"context": "CREATE TABLE table_name_88 (total_population__2010_ INTEGER, _percentage_asian_american VARCHAR, asian_american_population__2010_ VARCHAR)",
"question": "What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?"
} |
### QUESTION
how many local title with televbeingion network being tv nova website
### CONTEXT
CREATE TABLE table_13779832_1 (local_title VARCHAR, television_network VARCHAR)
### ANSWER
SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = "TV Nova Website" | {
"answer": "SELECT COUNT(local_title) FROM table_13779832_1 WHERE television_network = \"TV Nova Website\"",
"context": "CREATE TABLE table_13779832_1 (local_title VARCHAR, television_network VARCHAR)",
"question": " how many local title with televbeingion network being tv nova website"
} |
### QUESTION
Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?
### CONTEXT
CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR)
### ANSWER
SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = "dean minors" | {
"answer": "SELECT AVG(average) FROM table_name_77 WHERE rank > 4 AND player = \"dean minors\"",
"context": "CREATE TABLE table_name_77 (average INTEGER, rank VARCHAR, player VARCHAR)",
"question": "Can you tell me the average Average that has the Rank larger than 4, and the Player of dean minors?"
} |
### QUESTION
How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?
### CONTEXT
CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)
### ANSWER
SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129 | {
"answer": "SELECT SUM(long) FROM table_name_58 WHERE loss > 2 AND gain = 157 AND avg_g < 129",
"context": "CREATE TABLE table_name_58 (long INTEGER, avg_g VARCHAR, loss VARCHAR, gain VARCHAR)",
"question": "How much Long has a Loss larger than 2, and a Gain of 157, and an Avg/G smaller than 129?"
} |
### QUESTION
What is the marketing region code that has the most drama workshop groups?
### CONTEXT
CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR)
### ANSWER
SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1 | {
"answer": "SELECT Marketing_Region_Code FROM Drama_Workshop_Groups GROUP BY Marketing_Region_Code ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Drama_Workshop_Groups (Marketing_Region_Code VARCHAR)",
"question": "What is the marketing region code that has the most drama workshop groups?"
} |
### QUESTION
What was the status of joon-hyung park 박준형?
### CONTEXT
CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR)
### ANSWER
SELECT status FROM table_name_58 WHERE name = "joon-hyung park 박준형" | {
"answer": "SELECT status FROM table_name_58 WHERE name = \"joon-hyung park 박준형\"",
"context": "CREATE TABLE table_name_58 (status VARCHAR, name VARCHAR)",
"question": "What was the status of joon-hyung park 박준형?"
} |
### QUESTION
How many countries speak both English and Dutch?
### CONTEXT
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)
### ANSWER
SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "Dutch") | {
"answer": "SELECT COUNT(*) FROM (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"English\" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = \"Dutch\")",
"context": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR)",
"question": "How many countries speak both English and Dutch?"
} |
### QUESTION
Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?
### CONTEXT
CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
### ANSWER
SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = "akira ryō" | {
"answer": "SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = \"akira ryō\"",
"context": "CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)",
"question": "Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?"
} |
### QUESTION
What is the least amount of freight carried when the super b capacity reached was February 26?
### CONTEXT
CREATE TABLE table_12791809_1 (freight_carried_s_tonne INTEGER, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR)
### ANSWER
SELECT MIN(freight_carried_s_tonne) FROM table_12791809_1 WHERE super_b_capacity_reached_[_citation_needed_] = "February 26" | {
"answer": "SELECT MIN(freight_carried_s_tonne) FROM table_12791809_1 WHERE super_b_capacity_reached_[_citation_needed_] = \"February 26\"",
"context": "CREATE TABLE table_12791809_1 (freight_carried_s_tonne INTEGER, super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR)",
"question": "What is the least amount of freight carried when the super b capacity reached was February 26?"
} |
### QUESTION
Name the minimum enrollment for montana tech of the university of montana
### CONTEXT
CREATE TABLE table_15851155_1 (enrollment INTEGER, school VARCHAR)
### ANSWER
SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana" | {
"answer": "SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = \"Montana Tech of the University of Montana\"",
"context": "CREATE TABLE table_15851155_1 (enrollment INTEGER, school VARCHAR)",
"question": "Name the minimum enrollment for montana tech of the university of montana"
} |
### QUESTION
What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?
### CONTEXT
CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR)
### ANSWER
SELECT MIN(retired) FROM table_name_50 WHERE delivery = "1965" AND in_service = "november 1971" AND poaf_serial < 7103 | {
"answer": "SELECT MIN(retired) FROM table_name_50 WHERE delivery = \"1965\" AND in_service = \"november 1971\" AND poaf_serial < 7103",
"context": "CREATE TABLE table_name_50 (retired INTEGER, poaf_serial VARCHAR, delivery VARCHAR, in_service VARCHAR)",
"question": "What is the earliest year retired delivered in 1965 with an in service in November 1971 for the PoAF Serial less than 7103?"
} |
### QUESTION
What are the official languages of the countries of players from Maryland or Duke college?
### CONTEXT
CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, College VARCHAR)
### ANSWER
SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = "Maryland" OR T2.College = "Duke" | {
"answer": "SELECT T1.Official_native_language FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.College = \"Maryland\" OR T2.College = \"Duke\"",
"context": "CREATE TABLE country (Official_native_language VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, College VARCHAR)",
"question": "What are the official languages of the countries of players from Maryland or Duke college?"
} |
### QUESTION
What is the Home team score at junction oval?
### CONTEXT
CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)
### ANSWER
SELECT home_team FROM table_name_19 WHERE venue = "junction oval" | {
"answer": "SELECT home_team FROM table_name_19 WHERE venue = \"junction oval\"",
"context": "CREATE TABLE table_name_19 (home_team VARCHAR, venue VARCHAR)",
"question": "What is the Home team score at junction oval?"
} |
### QUESTION
What kind of Spike has a Name of mia jerkov category:articles with hcards?
### CONTEXT
CREATE TABLE table_name_27 (spike VARCHAR, name VARCHAR)
### ANSWER
SELECT spike FROM table_name_27 WHERE name = "mia jerkov category:articles with hcards" | {
"answer": "SELECT spike FROM table_name_27 WHERE name = \"mia jerkov category:articles with hcards\"",
"context": "CREATE TABLE table_name_27 (spike VARCHAR, name VARCHAR)",
"question": "What kind of Spike has a Name of mia jerkov category:articles with hcards?"
} |
### QUESTION
What is the province where the age of the contestant is 27?
### CONTEXT
CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR)
### ANSWER
SELECT province, _community FROM table_18349697_1 WHERE age = 27 | {
"answer": "SELECT province, _community FROM table_18349697_1 WHERE age = 27",
"context": "CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR)",
"question": "What is the province where the age of the contestant is 27?"
} |
### QUESTION
Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up
### CONTEXT
CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)
### ANSWER
SELECT date FROM table_name_6 WHERE surface = "clay" AND score = "6–1, 6–2" AND outcome = "runner-up" | {
"answer": "SELECT date FROM table_name_6 WHERE surface = \"clay\" AND score = \"6–1, 6–2\" AND outcome = \"runner-up\"",
"context": "CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)",
"question": "Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up"
} |
### QUESTION
Show the customer ids and firstname without a credit card.
### CONTEXT
CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR)
### ANSWER
SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = "Credit" | {
"answer": "SELECT customer_id, customer_first_name FROM Customers EXCEPT SELECT T1.customer_id, T2.customer_first_name FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE card_type_code = \"Credit\"",
"context": "CREATE TABLE Customers_cards (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, card_type_code VARCHAR)",
"question": "Show the customer ids and firstname without a credit card."
} |
### QUESTION
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
### CONTEXT
CREATE TABLE table_name_80 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR)
### ANSWER
SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7 | {
"answer": "SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 7",
"context": "CREATE TABLE table_name_80 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR)",
"question": "What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?"
} |
### QUESTION
How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7?
### CONTEXT
CREATE TABLE table_name_8 (assets__billion_ INTEGER, market_value__billion_$_ VARCHAR, industry VARCHAR, rank VARCHAR)
### ANSWER
SELECT SUM(assets__billion_) AS $_ FROM table_name_8 WHERE industry = "oil and gas" AND rank = 9 AND market_value__billion_$_ > 121.7 | {
"answer": "SELECT SUM(assets__billion_) AS $_ FROM table_name_8 WHERE industry = \"oil and gas\" AND rank = 9 AND market_value__billion_$_ > 121.7",
"context": "CREATE TABLE table_name_8 (assets__billion_ INTEGER, market_value__billion_$_ VARCHAR, industry VARCHAR, rank VARCHAR)",
"question": "How many Assets (billion $) has an Industry of oil and gas, and a Rank of 9, and a Market Value (billion $) larger than 121.7?"
} |
### QUESTION
Who was the opponent in the Women's Cup 0 0 where Brancão Couto 0 is the scorer?
### CONTEXT
CREATE TABLE table_27654988_1 (opponent VARCHAR, competition VARCHAR, scorers VARCHAR)
### ANSWER
SELECT opponent FROM table_27654988_1 WHERE competition = "Women's Cup 0 0" AND scorers = "Brancão Couto 0" | {
"answer": "SELECT opponent FROM table_27654988_1 WHERE competition = \"Women's Cup 0 0\" AND scorers = \"Brancão Couto 0\"",
"context": "CREATE TABLE table_27654988_1 (opponent VARCHAR, competition VARCHAR, scorers VARCHAR)",
"question": "Who was the opponent in the Women's Cup 0 0 where Brancão Couto 0 is the scorer?"
} |
### 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" | {
"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
When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?
### CONTEXT
CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)
### ANSWER
SELECT place FROM table_name_18 WHERE score > 67 AND country = "united states" AND to_par = "e" AND player = "bunky henry" | {
"answer": "SELECT place FROM table_name_18 WHERE score > 67 AND country = \"united states\" AND to_par = \"e\" AND player = \"bunky henry\"",
"context": "CREATE TABLE table_name_18 (place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR)",
"question": "When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?"
} |
### QUESTION
What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?
### CONTEXT
CREATE TABLE table_1304443_2 (others_percentage VARCHAR, bush_percentage VARCHAR)
### ANSWER
SELECT others_percentage FROM table_1304443_2 WHERE bush_percentage = "51.6%" | {
"answer": "SELECT others_percentage FROM table_1304443_2 WHERE bush_percentage = \"51.6%\"",
"context": "CREATE TABLE table_1304443_2 (others_percentage VARCHAR, bush_percentage VARCHAR)",
"question": "What's the percentage of votes for other candidates in the county where Bush got 51.6% of the votes?"
} |
### QUESTION
What is the record of the game with 35 points and pittsburgh as the home team?
### CONTEXT
CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR)
### ANSWER
SELECT record FROM table_name_77 WHERE home = "pittsburgh" AND points = 35 | {
"answer": "SELECT record FROM table_name_77 WHERE home = \"pittsburgh\" AND points = 35",
"context": "CREATE TABLE table_name_77 (record VARCHAR, home VARCHAR, points VARCHAR)",
"question": "What is the record of the game with 35 points and pittsburgh as the home team?"
} |
### QUESTION
What is the average goals for Jimmy Greaves, and matches more than 516?
### CONTEXT
CREATE TABLE table_name_91 (goals INTEGER, name VARCHAR, matches VARCHAR)
### ANSWER
SELECT AVG(goals) FROM table_name_91 WHERE name = "jimmy greaves" AND matches > 516 | {
"answer": "SELECT AVG(goals) FROM table_name_91 WHERE name = \"jimmy greaves\" AND matches > 516",
"context": "CREATE TABLE table_name_91 (goals INTEGER, name VARCHAR, matches VARCHAR)",
"question": "What is the average goals for Jimmy Greaves, and matches more than 516?"
} |
### QUESTION
What is the type of measure that voted on the Power Development Debt Limit Amendment?
### CONTEXT
CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)
### ANSWER
SELECT type FROM table_256286_45 WHERE description = "Power Development Debt Limit Amendment" | {
"answer": "SELECT type FROM table_256286_45 WHERE description = \"Power Development Debt Limit Amendment\"",
"context": "CREATE TABLE table_256286_45 (type VARCHAR, description VARCHAR)",
"question": "What is the type of measure that voted on the Power Development Debt Limit Amendment?"
} |
### QUESTION
What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?
### CONTEXT
CREATE TABLE table_name_30 (games INTEGER, win_percentage VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)
### ANSWER
SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = "1987–1988" AND win_percentage < 0.506 | {
"answer": "SELECT SUM(games) FROM table_name_30 WHERE Pwin_percentage = — AND term_[c_] = \"1987–1988\" AND win_percentage < 0.506",
"context": "CREATE TABLE table_name_30 (games INTEGER, win_percentage VARCHAR, Pwin_percentage VARCHAR, — VARCHAR, term_ VARCHAR, c_ VARCHAR)",
"question": "What is the sum of the game with a PWin% of —, Term [c] of 1987–1988, and Win% less than 0.506?"
} |
### QUESTION
What date was the men's 100m breaststroke in heat 6?
### CONTEXT
CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR)
### ANSWER
SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6" | {
"answer": "SELECT date FROM table_name_74 WHERE event = \"men's 100m breaststroke\" AND heat_semifinal_final = \"heat 6\"",
"context": "CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR)",
"question": "What date was the men's 100m breaststroke in heat 6?"
} |
### QUESTION
Please list the location and the winning aircraft name.
### CONTEXT
CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)
### ANSWER
SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft | {
"answer": "SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft",
"context": "CREATE TABLE MATCH (Location VARCHAR, Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR)",
"question": "Please list the location and the winning aircraft name."
} |
### QUESTION
Who is the second when Mikkel Krause is the third?
### CONTEXT
CREATE TABLE table_name_18 (second VARCHAR, third VARCHAR)
### ANSWER
SELECT second FROM table_name_18 WHERE third = "mikkel krause" | {
"answer": "SELECT second FROM table_name_18 WHERE third = \"mikkel krause\"",
"context": "CREATE TABLE table_name_18 (second VARCHAR, third VARCHAR)",
"question": "Who is the second when Mikkel Krause is the third?"
} |
### QUESTION
Find the name of students who took any class in the years of 2009 and 2010.
### CONTEXT
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (id VARCHAR)
### ANSWER
SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010 | {
"answer": "SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE YEAR = 2009 OR YEAR = 2010",
"context": "CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE takes (id VARCHAR)",
"question": "Find the name of students who took any class in the years of 2009 and 2010."
} |
### QUESTION
Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?
### CONTEXT
CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR)
### ANSWER
SELECT eruptions FROM table_name_51 WHERE location = "pacific ring of fire" AND volcanic_explosivity_index = "6" AND country = "peru" | {
"answer": "SELECT eruptions FROM table_name_51 WHERE location = \"pacific ring of fire\" AND volcanic_explosivity_index = \"6\" AND country = \"peru\"",
"context": "CREATE TABLE table_name_51 (eruptions VARCHAR, country VARCHAR, location VARCHAR, volcanic_explosivity_index VARCHAR)",
"question": "Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru?"
} |
### QUESTION
Find the ids and first names of the 3 teachers that have the most number of assessment notes?
### CONTEXT
CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR)
### ANSWER
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3 | {
"answer": "SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3",
"context": "CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR)",
"question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?"
} |
### QUESTION
What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault
### CONTEXT
CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR)
### ANSWER
SELECT time_retired FROM table_name_38 WHERE constructor = "benetton - renault" AND driver = "johnny herbert" | {
"answer": "SELECT time_retired FROM table_name_38 WHERE constructor = \"benetton - renault\" AND driver = \"johnny herbert\"",
"context": "CREATE TABLE table_name_38 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR)",
"question": "What is the Time/Retired value for Driver Johnny Herbert with Constructor Benetton - Renault"
} |
### QUESTION
Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.
### CONTEXT
CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)
### ANSWER
SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX' | {
"answer": "SELECT name, trade_name FROM medicine EXCEPT SELECT T1.name, T1.trade_name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id JOIN enzyme AS T3 ON T3.id = T2.enzyme_id WHERE T3.product = 'Protoporphyrinogen IX'",
"context": "CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR); CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR, enzyme_id VARCHAR); CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, id VARCHAR); CREATE TABLE enzyme (id VARCHAR, product VARCHAR)",
"question": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'."
} |
### QUESTION
Name the nomination in 2011 that won
### CONTEXT
CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR)
### ANSWER
SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = "won" | {
"answer": "SELECT nomination FROM table_name_59 WHERE year = 2011 AND result = \"won\"",
"context": "CREATE TABLE table_name_59 (nomination VARCHAR, year VARCHAR, result VARCHAR)",
"question": "Name the nomination in 2011 that won"
} |
### QUESTION
Name the least episode for fibre cement siding
### CONTEXT
CREATE TABLE table_15187735_18 (episode INTEGER, segment_d VARCHAR)
### ANSWER
SELECT MIN(episode) FROM table_15187735_18 WHERE segment_d = "Fibre Cement Siding" | {
"answer": "SELECT MIN(episode) FROM table_15187735_18 WHERE segment_d = \"Fibre Cement Siding\"",
"context": "CREATE TABLE table_15187735_18 (episode INTEGER, segment_d VARCHAR)",
"question": "Name the least episode for fibre cement siding"
} |
### QUESTION
Show the names of festivals that have nominated artworks of type "Program Talent Show".
### CONTEXT
CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)
### ANSWER
SELECT T3.Festival_Name 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 WHERE T2.Type = "Program Talent Show" | {
"answer": "SELECT T3.Festival_Name 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 WHERE T2.Type = \"Program Talent Show\"",
"context": "CREATE TABLE nomination (Artwork_ID VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR, Type VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR)",
"question": "Show the names of festivals that have nominated artworks of type \"Program Talent Show\"."
} |
### QUESTION
Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?
### CONTEXT
CREATE TABLE table_name_55 (hh_principal VARCHAR, wr_principal VARCHAR, hs_principal VARCHAR, maplemere_principal VARCHAR)
### ANSWER
SELECT hh_principal FROM table_name_55 WHERE hs_principal = "jim haught" AND maplemere_principal = "charlie taylor" AND wr_principal = "rich auerbach" | {
"answer": "SELECT hh_principal FROM table_name_55 WHERE hs_principal = \"jim haught\" AND maplemere_principal = \"charlie taylor\" AND wr_principal = \"rich auerbach\"",
"context": "CREATE TABLE table_name_55 (hh_principal VARCHAR, wr_principal VARCHAR, hs_principal VARCHAR, maplemere_principal VARCHAR)",
"question": "Who is the h.h. principal with Jim Haught as h.s. principal, Charlie Taylor as maplemere principal, and Rich Auerbach as w.r. principal?"
} |
### QUESTION
Show all headquarters with both a company in banking industry and a company in Oil and gas.
### CONTEXT
CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)
### ANSWER
SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas' | {
"answer": "SELECT headquarters FROM company WHERE main_industry = 'Banking' INTERSECT SELECT headquarters FROM company WHERE main_industry = 'Oil and gas'",
"context": "CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR)",
"question": "Show all headquarters with both a company in banking industry and a company in Oil and gas."
} |
### QUESTION
List the first name and last name of all customers.
### CONTEXT
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)
### ANSWER
SELECT first_name, last_name FROM Customers | {
"answer": "SELECT first_name, last_name FROM Customers",
"context": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR)",
"question": "List the first name and last name of all customers."
} |
### QUESTION
Find the number of amenities for each of the dorms that can accommodate more than 100 students.
### CONTEXT
CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER); CREATE TABLE has_amenity (dormid VARCHAR)
### ANSWER
SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid | {
"answer": "SELECT COUNT(*), T1.dormid FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid WHERE T1.student_capacity > 100 GROUP BY T1.dormid",
"context": "CREATE TABLE dorm (dormid VARCHAR, student_capacity INTEGER); CREATE TABLE has_amenity (dormid VARCHAR)",
"question": "Find the number of amenities for each of the dorms that can accommodate more than 100 students."
} |
### QUESTION
What are the the University of Richmond's school colors?
### CONTEXT
CREATE TABLE table_1221089_1 (colors VARCHAR, institution VARCHAR)
### ANSWER
SELECT colors FROM table_1221089_1 WHERE institution = "University of Richmond" | {
"answer": "SELECT colors FROM table_1221089_1 WHERE institution = \"University of Richmond\"",
"context": "CREATE TABLE table_1221089_1 (colors VARCHAR, institution VARCHAR)",
"question": "What are the the University of Richmond's school colors?"
} |
### QUESTION
What is the location and attendance on October 18?
### CONTEXT
CREATE TABLE table_27713030_3 (location_attendance VARCHAR, date VARCHAR)
### ANSWER
SELECT location_attendance FROM table_27713030_3 WHERE date = "October 18" | {
"answer": "SELECT location_attendance FROM table_27713030_3 WHERE date = \"October 18\"",
"context": "CREATE TABLE table_27713030_3 (location_attendance VARCHAR, date VARCHAR)",
"question": "What is the location and attendance on October 18?"
} |
### QUESTION
Which date was a GTS class on the Mosport International Raceway?
### CONTEXT
CREATE TABLE table_name_98 (date VARCHAR, class VARCHAR, circuit VARCHAR)
### ANSWER
SELECT date FROM table_name_98 WHERE class = "gts" AND circuit = "mosport international raceway" | {
"answer": "SELECT date FROM table_name_98 WHERE class = \"gts\" AND circuit = \"mosport international raceway\"",
"context": "CREATE TABLE table_name_98 (date VARCHAR, class VARCHAR, circuit VARCHAR)",
"question": "Which date was a GTS class on the Mosport International Raceway?"
} |
### QUESTION
What city in the east region in North Carolina was the round where the University of Richmond was the host?
### CONTEXT
CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR)
### ANSWER
SELECT city FROM table_name_20 WHERE region = "east" AND state = "north carolina" AND host = "university of richmond" | {
"answer": "SELECT city FROM table_name_20 WHERE region = \"east\" AND state = \"north carolina\" AND host = \"university of richmond\"",
"context": "CREATE TABLE table_name_20 (city VARCHAR, host VARCHAR, region VARCHAR, state VARCHAR)",
"question": "What city in the east region in North Carolina was the round where the University of Richmond was the host?"
} |
### QUESTION
Which Wins have a Class of 500cc, and a Year smaller than 1975?
### CONTEXT
CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR)
### ANSWER
SELECT wins FROM table_name_46 WHERE class = "500cc" AND year < 1975 | {
"answer": "SELECT wins FROM table_name_46 WHERE class = \"500cc\" AND year < 1975",
"context": "CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR)",
"question": "Which Wins have a Class of 500cc, and a Year smaller than 1975?"
} |
### QUESTION
What is To par, when Total is less than 148, and when Country is "South Africa"?
### CONTEXT
CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)
### ANSWER
SELECT to_par FROM table_name_7 WHERE total < 148 AND country = "south africa" | {
"answer": "SELECT to_par FROM table_name_7 WHERE total < 148 AND country = \"south africa\"",
"context": "CREATE TABLE table_name_7 (to_par VARCHAR, total VARCHAR, country VARCHAR)",
"question": "What is To par, when Total is less than 148, and when Country is \"South Africa\"?"
} |
### QUESTION
What was the outcome in games where the score was 7-5, 2-6, [6-10]?
### CONTEXT
CREATE TABLE table_2259502_2 (outcome VARCHAR, score VARCHAR)
### ANSWER
SELECT outcome FROM table_2259502_2 WHERE score = "7-5, 2-6, [6-10]" | {
"answer": "SELECT outcome FROM table_2259502_2 WHERE score = \"7-5, 2-6, [6-10]\"",
"context": "CREATE TABLE table_2259502_2 (outcome VARCHAR, score VARCHAR)",
"question": "What was the outcome in games where the score was 7-5, 2-6, [6-10]?"
} |
### QUESTION
Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?
### CONTEXT
CREATE TABLE stadium (country VARCHAR, capacity INTEGER)
### ANSWER
SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000 | {
"answer": "SELECT country FROM stadium WHERE capacity > 60000 INTERSECT SELECT country FROM stadium WHERE capacity < 50000",
"context": "CREATE TABLE stadium (country VARCHAR, capacity INTEGER)",
"question": "Which country has both stadiums with capacity greater than 60000 and stadiums with capacity less than 50000?"
} |
### QUESTION
What is the production code of the episode that was watched by 3.81 million U.S. viewers?
### CONTEXT
CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
### ANSWER
SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = "3.81" | {
"answer": "SELECT production_code FROM table_29054902_1 WHERE us_viewers__million_ = \"3.81\"",
"context": "CREATE TABLE table_29054902_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)",
"question": "What is the production code of the episode that was watched by 3.81 million U.S. viewers? "
} |
### QUESTION
What place did R. Wenzel, who was active after 1934, have?
### CONTEXT
CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)
### ANSWER
SELECT SUM(place) FROM table_name_7 WHERE name = "r. wenzel" AND until > 1934 | {
"answer": "SELECT SUM(place) FROM table_name_7 WHERE name = \"r. wenzel\" AND until > 1934",
"context": "CREATE TABLE table_name_7 (place INTEGER, name VARCHAR, until VARCHAR)",
"question": "What place did R. Wenzel, who was active after 1934, have?"
} |
### QUESTION
Show the fleet series of the aircrafts flied by pilots younger than 34
### CONTEXT
CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_ID VARCHAR, Age INTEGER); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)
### ANSWER
SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34 | {
"answer": "SELECT T2.Fleet_Series FROM pilot_record AS T1 JOIN aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN pilot AS T3 ON T1.Pilot_ID = T3.Pilot_ID WHERE T3.Age < 34",
"context": "CREATE TABLE pilot_record (Aircraft_ID VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_ID VARCHAR, Age INTEGER); CREATE TABLE aircraft (Fleet_Series VARCHAR, Aircraft_ID VARCHAR)",
"question": "Show the fleet series of the aircrafts flied by pilots younger than 34"
} |
### QUESTION
What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?
### CONTEXT
CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)
### ANSWER
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0 | {
"answer": "SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = \"ng\" AND points_for_foundation < 0",
"context": "CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)",
"question": "What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?"
} |
### QUESTION
What is the name of the school in Lucas ?
### CONTEXT
CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)
### ANSWER
SELECT location FROM table_25987797_1 WHERE school = "Lucas" | {
"answer": "SELECT location FROM table_25987797_1 WHERE school = \"Lucas\"",
"context": "CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)",
"question": "What is the name of the school in Lucas ? "
} |
### QUESTION
How many assets does each maintenance contract contain? List the number and the contract id.
### CONTEXT
CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)
### ANSWER
SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id | {
"answer": "SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id",
"context": "CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR)",
"question": "How many assets does each maintenance contract contain? List the number and the contract id."
} |
### QUESTION
What is the ICAO for Riyadh, Saudi Arabia?
### CONTEXT
CREATE TABLE table_name_35 (icao VARCHAR, country VARCHAR, city VARCHAR)
### ANSWER
SELECT icao FROM table_name_35 WHERE country = "saudi arabia" AND city = "riyadh" | {
"answer": "SELECT icao FROM table_name_35 WHERE country = \"saudi arabia\" AND city = \"riyadh\"",
"context": "CREATE TABLE table_name_35 (icao VARCHAR, country VARCHAR, city VARCHAR)",
"question": "What is the ICAO for Riyadh, Saudi Arabia?"
} |
### QUESTION
What was the most recent year when a g-force chassis started in 1st?
### CONTEXT
CREATE TABLE table_name_35 (year INTEGER, start VARCHAR, chassis VARCHAR)
### ANSWER
SELECT MAX(year) FROM table_name_35 WHERE start = "1st" AND chassis = "g-force" | {
"answer": "SELECT MAX(year) FROM table_name_35 WHERE start = \"1st\" AND chassis = \"g-force\"",
"context": "CREATE TABLE table_name_35 (year INTEGER, start VARCHAR, chassis VARCHAR)",
"question": "What was the most recent year when a g-force chassis started in 1st?"
} |
### QUESTION
What is the location of the race on 11 November?
### CONTEXT
CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR)
### ANSWER
SELECT location FROM table_name_14 WHERE date = "11 november" | {
"answer": "SELECT location FROM table_name_14 WHERE date = \"11 november\"",
"context": "CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR)",
"question": "What is the location of the race on 11 November?"
} |
### QUESTION
What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?
### CONTEXT
CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR)
### ANSWER
SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = "1995" AND length = "miles (m)" AND state = "illinois" | {
"answer": "SELECT name FROM table_name_9 WHERE opened__closing_date_if_defunct_ = \"1995\" AND length = \"miles (m)\" AND state = \"illinois\"",
"context": "CREATE TABLE table_name_9 (name VARCHAR, state VARCHAR, opened__closing_date_if_defunct_ VARCHAR, length VARCHAR)",
"question": "What is the Name with an Opened (closing date if defunct) of 1995 and has a Length of miles (m), in Illinois?"
} |
### QUESTION
When did the tom smith built train enter service with a number under 7007?
### CONTEXT
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
### ANSWER
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007 | {
"answer": "SELECT AVG(entered_service) FROM table_name_73 WHERE builder = \"tom smith\" AND number < 7007",
"context": "CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)",
"question": "When did the tom smith built train enter service with a number under 7007?"
} |
### QUESTION
Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?
### CONTEXT
CREATE TABLE table_name_78 (second VARCHAR, lead VARCHAR)
### ANSWER
SELECT second FROM table_name_78 WHERE lead = "sarah macintyre (jr) anne laird (w)" | {
"answer": "SELECT second FROM table_name_78 WHERE lead = \"sarah macintyre (jr) anne laird (w)\"",
"context": "CREATE TABLE table_name_78 (second VARCHAR, lead VARCHAR)",
"question": "Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?"
} |
### QUESTION
How many points were there scored on October 27?
### CONTEXT
CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)
### ANSWER
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27" | {
"answer": "SELECT MAX(points) FROM table_23308178_4 WHERE date = \"October 27\"",
"context": "CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)",
"question": "How many points were there scored on October 27?"
} |
### QUESTION
Find the names of scientists who are not working on the project with the highest hours.
### CONTEXT
CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)
### ANSWER
SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects) | {
"answer": "SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)",
"context": "CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)",
"question": "Find the names of scientists who are not working on the project with the highest hours."
} |
### QUESTION
What is the name of the customer who has made the minimum amount of payment in one claim?
### CONTEXT
CREATE TABLE claim_headers (amount_piad INTEGER); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_piad INTEGER)
### ANSWER
SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers) | {
"answer": "SELECT t3.customer_details FROM claim_headers AS t1 JOIN policies AS t2 ON t1.policy_id = t2.policy_id JOIN customers AS t3 ON t2.customer_id = t3.customer_id WHERE t1.amount_piad = (SELECT MIN(amount_piad) FROM claim_headers)",
"context": "CREATE TABLE claim_headers (amount_piad INTEGER); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE policies (policy_id VARCHAR, customer_id VARCHAR); CREATE TABLE claim_headers (policy_id VARCHAR, amount_piad INTEGER)",
"question": "What is the name of the customer who has made the minimum amount of payment in one claim?"
} |
### QUESTION
What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8?
### CONTEXT
CREATE TABLE table_name_28 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR)
### ANSWER
SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8 | {
"answer": "SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = \"28.8%\" AND rank < 8",
"context": "CREATE TABLE table_name_28 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR)",
"question": "What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8?"
} |
### QUESTION
What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar?
### CONTEXT
CREATE TABLE table_name_51 (hydroelectricity INTEGER, total VARCHAR, solar VARCHAR)
### ANSWER
SELECT MIN(hydroelectricity) FROM table_name_51 WHERE total < 116.4 AND solar > 18.637 | {
"answer": "SELECT MIN(hydroelectricity) FROM table_name_51 WHERE total < 116.4 AND solar > 18.637",
"context": "CREATE TABLE table_name_51 (hydroelectricity INTEGER, total VARCHAR, solar VARCHAR)",
"question": "What is the minimum hydroelectricity with a less than 116.4 total, and a greater than 18.637 solar?"
} |
### QUESTION
How many restaurant is the Sandwich type restaurant?
### CONTEXT
CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich' | {
"answer": "SELECT COUNT(*) FROM Restaurant JOIN Type_Of_Restaurant ON Restaurant.ResID = Type_Of_Restaurant.ResID JOIN Restaurant_Type ON Type_Of_Restaurant.ResTypeID = Restaurant_Type.ResTypeID GROUP BY Type_Of_Restaurant.ResTypeID HAVING Restaurant_Type.ResTypeName = 'Sandwich'",
"context": "CREATE TABLE Type_Of_Restaurant (Id VARCHAR); CREATE TABLE Restaurant (Id VARCHAR); CREATE TABLE Restaurant_Type (Id VARCHAR)",
"question": "How many restaurant is the Sandwich type restaurant?"
} |
### QUESTION
How many times did Boston Red Stockings lose in 2009 postseason?
### CONTEXT
CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)
### ANSWER
SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009 | {
"answer": "SELECT COUNT(*) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_loser = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year = 2009",
"context": "CREATE TABLE postseason (team_id_loser VARCHAR, year VARCHAR); CREATE TABLE team (team_id_br VARCHAR, name VARCHAR)",
"question": "How many times did Boston Red Stockings lose in 2009 postseason?"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.