text
stringlengths
146
1.06k
source
dict
### QUESTION When roxanne and daniel are the couple what is the highest rank? ### CONTEXT CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR) ### ANSWER SELECT MAX(rank) FROM table_19744915_18 WHERE couple = "Roxanne and Daniel"
{ "answer": "SELECT MAX(rank) FROM table_19744915_18 WHERE couple = \"Roxanne and Daniel\"", "context": "CREATE TABLE table_19744915_18 (rank INTEGER, couple VARCHAR)", "question": "When roxanne and daniel are the couple what is the highest rank?" }
### QUESTION Show all product names and the number of customers having an order on each product. ### CONTEXT CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR) ### ANSWER SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name
{ "answer": "SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name", "context": "CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)", "question": "Show all product names and the number of customers having an order on each product." }
### QUESTION What is the name of the softball stadium for the school that has Eastern Baseball Stadium? ### CONTEXT CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, baseball_stadium VARCHAR) ### ANSWER SELECT softball_stadium FROM table_1974545_3 WHERE baseball_stadium = "Eastern Baseball Stadium"
{ "answer": "SELECT softball_stadium FROM table_1974545_3 WHERE baseball_stadium = \"Eastern Baseball Stadium\"", "context": "CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, baseball_stadium VARCHAR)", "question": "What is the name of the softball stadium for the school that has Eastern Baseball Stadium?" }
### QUESTION What's the original NFL team when the POS is S and college is Georgia Tech? ### CONTEXT CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR) ### ANSWER SELECT original_nfl_team FROM table_name_31 WHERE pos = "s" AND college = "georgia tech"
{ "answer": "SELECT original_nfl_team FROM table_name_31 WHERE pos = \"s\" AND college = \"georgia tech\"", "context": "CREATE TABLE table_name_31 (original_nfl_team VARCHAR, pos VARCHAR, college VARCHAR)", "question": "What's the original NFL team when the POS is S and college is Georgia Tech?" }
### QUESTION What is the name of UMass Boston's softball stadium? ### CONTEXT CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR) ### ANSWER SELECT softball_stadium FROM table_1974545_3 WHERE school = "UMass Boston"
{ "answer": "SELECT softball_stadium FROM table_1974545_3 WHERE school = \"UMass Boston\"", "context": "CREATE TABLE table_1974545_3 (softball_stadium VARCHAR, school VARCHAR)", "question": "What is the name of UMass Boston's softball stadium?" }
### QUESTION What is the name of the baseball stadium for the school with the Murray Center basketball arena? ### CONTEXT CREATE TABLE table_1974545_3 (baseball_stadium VARCHAR, basketball_arena VARCHAR) ### ANSWER SELECT baseball_stadium FROM table_1974545_3 WHERE basketball_arena = "The Murray Center"
{ "answer": "SELECT baseball_stadium FROM table_1974545_3 WHERE basketball_arena = \"The Murray Center\"", "context": "CREATE TABLE table_1974545_3 (baseball_stadium VARCHAR, basketball_arena VARCHAR)", "question": "What is the name of the baseball stadium for the school with the Murray Center basketball arena?" }
### QUESTION What is the country that has a place of T6 that Eduardo Romero plays for? ### CONTEXT CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR) ### ANSWER SELECT country FROM table_name_73 WHERE place = "t6" AND player = "eduardo romero"
{ "answer": "SELECT country FROM table_name_73 WHERE place = \"t6\" AND player = \"eduardo romero\"", "context": "CREATE TABLE table_name_73 (country VARCHAR, place VARCHAR, player VARCHAR)", "question": "What is the country that has a place of T6 that Eduardo Romero plays for?" }
### QUESTION Show the pair of male and female names in all weddings after year 2014 ### CONTEXT CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR) ### ANSWER SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014
{ "answer": "SELECT T2.name, T3.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id WHERE T1.year > 2014", "context": "CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, year INTEGER); CREATE TABLE people (name VARCHAR, people_id VARCHAR)", "question": "Show the pair of male and female names in all weddings after year 2014" }
### QUESTION What's the most wins of Tatong? ### CONTEXT CREATE TABLE table_name_43 (wins INTEGER, benalla_dfl VARCHAR) ### ANSWER SELECT MAX(wins) FROM table_name_43 WHERE benalla_dfl = "tatong"
{ "answer": "SELECT MAX(wins) FROM table_name_43 WHERE benalla_dfl = \"tatong\"", "context": "CREATE TABLE table_name_43 (wins INTEGER, benalla_dfl VARCHAR)", "question": "What's the most wins of Tatong?" }
### QUESTION Name the total party for north carolina 7 ### CONTEXT CREATE TABLE table_19753079_36 (party VARCHAR, district VARCHAR) ### ANSWER SELECT COUNT(party) FROM table_19753079_36 WHERE district = "North Carolina 7"
{ "answer": "SELECT COUNT(party) FROM table_19753079_36 WHERE district = \"North Carolina 7\"", "context": "CREATE TABLE table_19753079_36 (party VARCHAR, district VARCHAR)", "question": "Name the total party for north carolina 7" }
### QUESTION Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0% ### CONTEXT CREATE TABLE table_19753079_36 (incumbent VARCHAR, candidates VARCHAR) ### ANSWER SELECT incumbent FROM table_19753079_36 WHERE candidates = "Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%"
{ "answer": "SELECT incumbent FROM table_19753079_36 WHERE candidates = \"Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%\"", "context": "CREATE TABLE table_19753079_36 (incumbent VARCHAR, candidates VARCHAR)", "question": "Name the incumbent for sue myrick (r) 69.0% jeff doctor (d) 31.0%" }
### QUESTION Show the names for all females from Canada having a wedding in year 2016. ### CONTEXT CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR) ### ANSWER SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'
{ "answer": "SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada'", "context": "CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR)", "question": "Show the names for all females from Canada having a wedding in year 2016." }
### QUESTION Show the church names for the weddings of all people older than 30. ### CONTEXT CREATE TABLE church (name VARCHAR, church_id VARCHAR); CREATE TABLE people (people_id VARCHAR, age VARCHAR); CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, church_id VARCHAR) ### ANSWER SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30
{ "answer": "SELECT T4.name FROM wedding AS T1 JOIN people AS T2 ON T1.male_id = T2.people_id JOIN people AS T3 ON T1.female_id = T3.people_id JOIN church AS T4 ON T4.church_id = T1.church_id WHERE T2.age > 30 OR T3.age > 30", "context": "CREATE TABLE church (name VARCHAR, church_id VARCHAR); CREATE TABLE people (people_id VARCHAR, age VARCHAR); CREATE TABLE wedding (male_id VARCHAR, female_id VARCHAR, church_id VARCHAR)", "question": "Show the church names for the weddings of all people older than 30." }
### QUESTION How many churches have a wedding in year 2016? ### CONTEXT CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR) ### ANSWER SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016
{ "answer": "SELECT COUNT(DISTINCT church_id) FROM wedding WHERE YEAR = 2016", "context": "CREATE TABLE wedding (church_id VARCHAR, YEAR VARCHAR)", "question": "How many churches have a wedding in year 2016?" }
### QUESTION How many artists are above age 46 and joined after 1990? ### CONTEXT CREATE TABLE artist (age VARCHAR, year_join VARCHAR) ### ANSWER SELECT COUNT(*) FROM artist WHERE age > 46 AND year_join > 1990
{ "answer": "SELECT COUNT(*) FROM artist WHERE age > 46 AND year_join > 1990", "context": "CREATE TABLE artist (age VARCHAR, year_join VARCHAR)", "question": "How many artists are above age 46 and joined after 1990?" }
### QUESTION How many races had #99 gainsco/bob stallings racing in round 10? ### CONTEXT CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR) ### ANSWER SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = "#99 GAINSCO/Bob Stallings Racing"
{ "answer": "SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = \"#99 GAINSCO/Bob Stallings Racing\"", "context": "CREATE TABLE table_19751479_4 (fastest_lap VARCHAR, rnd VARCHAR, pole_position VARCHAR)", "question": "How many races had #99 gainsco/bob stallings racing in round 10?" }
### QUESTION What incumbent was first elected in 2009? ### CONTEXT CREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR) ### ANSWER SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009
{ "answer": "SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009", "context": "CREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR)", "question": "What incumbent was first elected in 2009?" }
### QUESTION what kind of Week 5 that has a Week 1 of mandy ashford? ### CONTEXT CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR) ### ANSWER SELECT week_5 FROM table_name_68 WHERE week_1 = "mandy ashford"
{ "answer": "SELECT week_5 FROM table_name_68 WHERE week_1 = \"mandy ashford\"", "context": "CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR)", "question": "what kind of Week 5 that has a Week 1 of mandy ashford?" }
### QUESTION What is the name and country for the artist with most number of exhibitions? ### CONTEXT CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR) ### ANSWER SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T2.name, T2.country FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE exhibition (artist_id VARCHAR); CREATE TABLE artist (name VARCHAR, country VARCHAR, artist_id VARCHAR)", "question": "What is the name and country for the artist with most number of exhibitions?" }
### QUESTION What is the theme and artist name for the exhibition with a ticket price higher than the average? ### CONTEXT CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR) ### ANSWER SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)
{ "answer": "SELECT T1.theme, T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.ticket_price > (SELECT AVG(ticket_price) FROM exhibition)", "context": "CREATE TABLE exhibition (ticket_price INTEGER); CREATE TABLE exhibition (theme VARCHAR, artist_id VARCHAR, ticket_price INTEGER); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)", "question": "What is the theme and artist name for the exhibition with a ticket price higher than the average?" }
### QUESTION Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009. ### CONTEXT CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER) ### ANSWER SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009
{ "answer": "SELECT AVG(ticket_price), MIN(ticket_price), MAX(ticket_price) FROM exhibition WHERE YEAR < 2009", "context": "CREATE TABLE exhibition (ticket_price INTEGER, YEAR INTEGER)", "question": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009." }
### QUESTION Which station was opened in 2013, with no park & ride lot? ### CONTEXT CREATE TABLE table_name_99 (station_name VARCHAR, opening_year VARCHAR, park_and_ride_lot VARCHAR) ### ANSWER SELECT station_name FROM table_name_99 WHERE opening_year = "2013" AND park_and_ride_lot = "no"
{ "answer": "SELECT station_name FROM table_name_99 WHERE opening_year = \"2013\" AND park_and_ride_lot = \"no\"", "context": "CREATE TABLE table_name_99 (station_name VARCHAR, opening_year VARCHAR, park_and_ride_lot VARCHAR)", "question": "Which station was opened in 2013, with no park & ride lot?" }
### QUESTION What is the theme, date, and attendance for the exhibition in year 2004? ### CONTEXT CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR) ### ANSWER SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004
{ "answer": "SELECT T2.theme, T1.date, T1.attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T2.year = 2004", "context": "CREATE TABLE exhibition_record (date VARCHAR, attendance VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR, year VARCHAR)", "question": "What is the theme, date, and attendance for the exhibition in year 2004?" }
### QUESTION Show all artist names who didn't have an exhibition in 2004. ### CONTEXT CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR) ### ANSWER SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004
{ "answer": "SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004", "context": "CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR)", "question": "Show all artist names who didn't have an exhibition in 2004." }
### QUESTION Show the theme for exhibitions with both records of an attendance below 100 and above 500. ### CONTEXT CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER) ### ANSWER SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500
{ "answer": "SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance < 100 INTERSECT SELECT T2.theme FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 500", "context": "CREATE TABLE exhibition (theme VARCHAR, exhibition_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)", "question": "Show the theme for exhibitions with both records of an attendance below 100 and above 500." }
### QUESTION How many exhibitions have a attendance more than 100 or have a ticket price below 10? ### CONTEXT CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, ticket_price VARCHAR) ### ANSWER SELECT COUNT(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10
{ "answer": "SELECT COUNT(*) FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id WHERE T1.attendance > 100 OR T2.ticket_price < 10", "context": "CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, ticket_price VARCHAR)", "question": "How many exhibitions have a attendance more than 100 or have a ticket price below 10?" }
### QUESTION Show all artist names with an average exhibition attendance over 200. ### CONTEXT CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER) ### ANSWER SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200
{ "answer": "SELECT T3.name FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.exhibition_id = T2.exhibition_id JOIN artist AS T3 ON T3.artist_id = T2.artist_id GROUP BY T3.artist_id HAVING AVG(T1.attendance) > 200", "context": "CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (exhibition_id VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition_record (exhibition_id VARCHAR, attendance INTEGER)", "question": "Show all artist names with an average exhibition attendance over 200." }
### QUESTION What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)? ### CONTEXT CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR) ### ANSWER SELECT surface FROM table_name_86 WHERE score_in_the_final = "5–7, 6–7 (2–7)"
{ "answer": "SELECT surface FROM table_name_86 WHERE score_in_the_final = \"5–7, 6–7 (2–7)\"", "context": "CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR)", "question": "What is the Surface of the match with a Score in the final of 5–7, 6–7 (2–7)?" }
### QUESTION Name the total number of club worl cup for djibril cisse ### CONTEXT CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR) ### ANSWER SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = "Djibril Cisse"
{ "answer": "SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = \"Djibril Cisse\"", "context": "CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR)", "question": "Name the total number of club worl cup for djibril cisse" }
### QUESTION Find the number of items that did not receive any review. ### CONTEXT CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)
{ "answer": "SELECT COUNT(*) FROM item WHERE NOT i_id IN (SELECT i_id FROM review)", "context": "CREATE TABLE review (i_id VARCHAR); CREATE TABLE item (i_id VARCHAR)", "question": "Find the number of items that did not receive any review." }
### QUESTION Find the titles of items that received both a rating higher than 8 and a rating below 5. ### CONTEXT CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER) ### ANSWER SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5
{ "answer": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating > 8 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5", "context": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)", "question": "Find the titles of items that received both a rating higher than 8 and a rating below 5." }
### QUESTION Find the names of items whose rank is higher than 3 and whose average rating is above 5. ### CONTEXT CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rank INTEGER, rating INTEGER) ### ANSWER SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING AVG(T2.rating) > 5
{ "answer": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rank > 3 INTERSECT SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id HAVING AVG(T2.rating) > 5", "context": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rank INTEGER, rating INTEGER)", "question": "Find the names of items whose rank is higher than 3 and whose average rating is above 5." }
### QUESTION On how many different dates was a game against Houston played? ### CONTEXT CREATE TABLE table_19778010_5 (date VARCHAR, opponent VARCHAR) ### ANSWER SELECT COUNT(date) FROM table_19778010_5 WHERE opponent = "Houston"
{ "answer": "SELECT COUNT(date) FROM table_19778010_5 WHERE opponent = \"Houston\"", "context": "CREATE TABLE table_19778010_5 (date VARCHAR, opponent VARCHAR)", "question": "On how many different dates was a game against Houston played?" }
### QUESTION Find the name of the item with the lowest average rating. ### CONTEXT CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER) ### ANSWER SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1
{ "answer": "SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1", "context": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)", "question": "Find the name of the item with the lowest average rating." }
### QUESTION Find the name of the user who gives the most reviews. ### CONTEXT CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR) ### ANSWER SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.name FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)", "question": "Find the name of the user who gives the most reviews." }
### QUESTION Find the name and id of the item with the highest average rating. ### CONTEXT CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER) ### ANSWER SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1
{ "answer": "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1", "context": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)", "question": "Find the name and id of the item with the highest average rating." }
### QUESTION Find the name and id of the good with the highest average rank. ### CONTEXT CREATE TABLE review (i_id VARCHAR, rank INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR) ### ANSWER SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1
{ "answer": "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rank) DESC LIMIT 1", "context": "CREATE TABLE review (i_id VARCHAR, rank INTEGER); CREATE TABLE item (title VARCHAR, i_id VARCHAR)", "question": "Find the name and id of the good with the highest average rank." }
### QUESTION What are all the conjugated forms of the verb where the el/ ella/usted verb is piense? ### CONTEXT CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR) ### ANSWER SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense"
{ "answer": "SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = \"piense\"", "context": "CREATE TABLE table_1977630_2 (nosotros___nosotras VARCHAR, él___ella___usted VARCHAR)", "question": "What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?" }
### QUESTION For each user, find their name and the number of reviews written by them. ### CONTEXT CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR) ### ANSWER SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id
{ "answer": "SELECT T1.name, COUNT(*) FROM useracct AS T1 JOIN review AS T2 ON T1.u_id = T2.u_id GROUP BY T2.u_id", "context": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE review (u_id VARCHAR)", "question": "For each user, find their name and the number of reviews written by them." }
### QUESTION Find the name of the source user with the highest average trust score. ### CONTEXT CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE trust (source_u_id VARCHAR) ### ANSWER SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY AVG(trust) DESC LIMIT 1
{ "answer": "SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.source_u_id GROUP BY T2.source_u_id ORDER BY AVG(trust) DESC LIMIT 1", "context": "CREATE TABLE useracct (name VARCHAR, u_id VARCHAR); CREATE TABLE trust (source_u_id VARCHAR)", "question": "Find the name of the source user with the highest average trust score." }
### QUESTION Find each target user's name and average trust score. ### CONTEXT CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR) ### ANSWER SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id
{ "answer": "SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id", "context": "CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)", "question": "Find each target user's name and average trust score." }
### QUESTION what is the owner of the callsign wliw ### CONTEXT CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR) ### ANSWER SELECT owner FROM table_1979203_1 WHERE callsign = "WLIW"
{ "answer": "SELECT owner FROM table_1979203_1 WHERE callsign = \"WLIW\"", "context": "CREATE TABLE table_1979203_1 (owner VARCHAR, callsign VARCHAR)", "question": "what is the owner of the callsign wliw" }
### QUESTION Please show the most common occupation of players. ### CONTEXT CREATE TABLE player (Occupation VARCHAR) ### ANSWER SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT Occupation FROM player GROUP BY Occupation ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE player (Occupation VARCHAR)", "question": "Please show the most common occupation of players." }
### QUESTION Show the names of players and names of their coaches. ### CONTEXT CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR) ### ANSWER SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID
{ "answer": "SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID", "context": "CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)", "question": "Show the names of players and names of their coaches." }
### QUESTION Name the district for newtown square ### CONTEXT CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR) ### ANSWER SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square"
{ "answer": "SELECT MIN(district) FROM table_1979619_3 WHERE residence = \"Newtown Square\"", "context": "CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR)", "question": "Name the district for newtown square" }
### QUESTION Show the names and genders of players with a coach starting after 2011. ### CONTEXT CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR) ### ANSWER SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011
{ "answer": "SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011", "context": "CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)", "question": "Show the names and genders of players with a coach starting after 2011." }
### QUESTION Show the names of players and names of their coaches in descending order of the votes of players. ### CONTEXT CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR) ### ANSWER SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC
{ "answer": "SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC", "context": "CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR)", "question": "Show the names of players and names of their coaches in descending order of the votes of players." }
### QUESTION Show the names of players coached by the rank 1 coach. ### CONTEXT CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (Coach_ID VARCHAR, Rank VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR) ### ANSWER SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1
{ "answer": "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1", "context": "CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (Coach_ID VARCHAR, Rank VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)", "question": "Show the names of players coached by the rank 1 coach." }
### QUESTION Name the total number of districts for rob teplitz ### CONTEXT CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR) ### ANSWER SELECT COUNT(district) FROM table_1979619_3 WHERE representative = "Rob Teplitz"
{ "answer": "SELECT COUNT(district) FROM table_1979619_3 WHERE representative = \"Rob Teplitz\"", "context": "CREATE TABLE table_1979619_3 (district VARCHAR, representative VARCHAR)", "question": "Name the total number of districts for rob teplitz" }
### QUESTION How many coaches does each club has? List the club id, name and the number of coaches. ### CONTEXT CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR) ### ANSWER SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id
{ "answer": "SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id", "context": "CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR)", "question": "How many coaches does each club has? List the club id, name and the number of coaches." }
### QUESTION How many gold medals has the club with the most coaches won? ### CONTEXT CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR) ### ANSWER SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
{ "answer": "SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1", "context": "CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)", "question": "How many gold medals has the club with the most coaches won?" }
### QUESTION Show the residences that have both a player of gender "M" and a player of gender "F". ### CONTEXT CREATE TABLE player (Residence VARCHAR, gender VARCHAR) ### ANSWER SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"
{ "answer": "SELECT Residence FROM player WHERE gender = \"M\" INTERSECT SELECT Residence FROM player WHERE gender = \"F\"", "context": "CREATE TABLE player (Residence VARCHAR, gender VARCHAR)", "question": "Show the residences that have both a player of gender \"M\" and a player of gender \"F\"." }
### QUESTION What was the result for the contestant whose background was as a business major? ### CONTEXT CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR) ### ANSWER SELECT result FROM table_19810459_1 WHERE background = "Business major"
{ "answer": "SELECT result FROM table_19810459_1 WHERE background = \"Business major\"", "context": "CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR)", "question": "What was the result for the contestant whose background was as a business major?" }
### QUESTION What is the hometown of the contestant whose background is as a financial consultant? ### CONTEXT CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR) ### ANSWER SELECT hometown FROM table_19810459_1 WHERE background = "Financial consultant"
{ "answer": "SELECT hometown FROM table_19810459_1 WHERE background = \"Financial consultant\"", "context": "CREATE TABLE table_19810459_1 (hometown VARCHAR, background VARCHAR)", "question": "What is the hometown of the contestant whose background is as a financial consultant? " }
### QUESTION If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking? ### CONTEXT CREATE TABLE table_19805130_3 (rating VARCHAR, viewers__millions_ VARCHAR) ### ANSWER SELECT rating FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 2.0 / 6 AND viewers__millions_ = "5.14"
{ "answer": "SELECT rating FROM table_19805130_3 WHERE rating / SHARE(18 - 49) = 2.0 / 6 AND viewers__millions_ = \"5.14\"", "context": "CREATE TABLE table_19805130_3 (rating VARCHAR, viewers__millions_ VARCHAR)", "question": "If the amount of viewers is 5.14 million and the rating/share is 2.0/6, what is the ranking?" }
### QUESTION What is the population of Danderyd municipality in Stockholm County with a code lower than 162? ### CONTEXT CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR) ### ANSWER SELECT COUNT(population) FROM table_name_62 WHERE county = "stockholm county" AND municipality = "danderyd municipality" AND code < 162
{ "answer": "SELECT COUNT(population) FROM table_name_62 WHERE county = \"stockholm county\" AND municipality = \"danderyd municipality\" AND code < 162", "context": "CREATE TABLE table_name_62 (population VARCHAR, code VARCHAR, county VARCHAR, municipality VARCHAR)", "question": "What is the population of Danderyd municipality in Stockholm County with a code lower than 162?" }
### QUESTION What is the total point count of the youngest gymnast? ### CONTEXT CREATE TABLE people (People_ID VARCHAR, Age VARCHAR); CREATE TABLE gymnast (Total_Points VARCHAR, Gymnast_ID VARCHAR) ### ANSWER SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1
{ "answer": "SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1", "context": "CREATE TABLE people (People_ID VARCHAR, Age VARCHAR); CREATE TABLE gymnast (Total_Points VARCHAR, Gymnast_ID VARCHAR)", "question": "What is the total point count of the youngest gymnast?" }
### QUESTION What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"? ### CONTEXT CREATE TABLE table_name_74 (trailing_party VARCHAR, votes VARCHAR, party_won VARCHAR) ### ANSWER SELECT trailing_party % votes FROM table_name_74 WHERE party_won = "bharatiya janta party" AND trailing_party = "indian national congress"
{ "answer": "SELECT trailing_party % votes FROM table_name_74 WHERE party_won = \"bharatiya janta party\" AND trailing_party = \"indian national congress\"", "context": "CREATE TABLE table_name_74 (trailing_party VARCHAR, votes VARCHAR, party_won VARCHAR)", "question": "What is Trailing Party % Votes, when Party Won is \"Bharatiya Janta Party\", and when Trailing Party is \"Indian National Congress\"?" }
### QUESTION What are the hometowns that are shared by at least two gymnasts? ### CONTEXT CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR) ### ANSWER SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2
{ "answer": "SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2", "context": "CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)", "question": "What are the hometowns that are shared by at least two gymnasts?" }
### QUESTION Show the hometowns shared by people older than 23 and younger than 20. ### CONTEXT CREATE TABLE people (Hometown VARCHAR, Age INTEGER) ### ANSWER SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
{ "answer": "SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20", "context": "CREATE TABLE people (Hometown VARCHAR, Age INTEGER)", "question": "Show the hometowns shared by people older than 23 and younger than 20." }
### QUESTION Find the total savings balance of all accounts except the account with name ‘Brown’. ### CONTEXT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR) ### ANSWER SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
{ "answer": "SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'", "context": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR)", "question": "Find the total savings balance of all accounts except the account with name ‘Brown’." }
### QUESTION Who held the fastest lap in the race in texas and dario franchitti is the winning driver? ### CONTEXT CREATE TABLE table_19850806_3 (fastest_lap VARCHAR, race VARCHAR, winning_driver VARCHAR) ### ANSWER SELECT fastest_lap FROM table_19850806_3 WHERE race = "Texas" AND winning_driver = "Dario Franchitti"
{ "answer": "SELECT fastest_lap FROM table_19850806_3 WHERE race = \"Texas\" AND winning_driver = \"Dario Franchitti\"", "context": "CREATE TABLE table_19850806_3 (fastest_lap VARCHAR, race VARCHAR, winning_driver VARCHAR)", "question": "Who held the fastest lap in the race in texas and dario franchitti is the winning driver?" }
### QUESTION Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8? ### CONTEXT CREATE TABLE table_name_98 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR) ### ANSWER SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = "kawasaki zx-10r" AND grid = 8
{ "answer": "SELECT rider FROM table_name_98 WHERE laps < 11 AND bike = \"kawasaki zx-10r\" AND grid = 8", "context": "CREATE TABLE table_name_98 (rider VARCHAR, grid VARCHAR, laps VARCHAR, bike VARCHAR)", "question": "Name the Rider which has Laps smaller than 11 and a Bike of kawasaki zx-10r, and a Grid of 8?" }
### QUESTION Find the name and id of accounts whose checking balance is below the maximum checking balance. ### CONTEXT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### ANSWER SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
{ "answer": "SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)", "context": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "question": "Find the name and id of accounts whose checking balance is below the maximum checking balance." }
### QUESTION What is the checking balance of the account whose owner’s name contains the substring ‘ee’? ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR) ### ANSWER SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'
{ "answer": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR)", "question": "What is the checking balance of the account whose owner’s name contains the substring ‘ee’?" }
### QUESTION Find the checking balance and saving balance in the Brown’s account. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR) ### ANSWER SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'
{ "answer": "SELECT T2.balance, T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T1.name = 'Brown'", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)", "question": "Find the checking balance and saving balance in the Brown’s account." }
### QUESTION Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance. ### CONTEXT CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)
{ "answer": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)", "context": "CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance." }
### QUESTION Find the checking balance of the accounts whose savings balance is higher than the average savings balance. ### CONTEXT CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER) ### ANSWER SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))
{ "answer": "SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))", "context": "CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER)", "question": "Find the checking balance of the accounts whose savings balance is higher than the average savings balance." }
### QUESTION Find the name of account that has the lowest total checking and saving balance. ### CONTEXT CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
{ "answer": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1", "context": "CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name of account that has the lowest total checking and saving balance." }
### QUESTION Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. ### CONTEXT CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)
{ "answer": "SELECT T1.name, T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT AVG(balance) FROM savings)", "context": "CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance." }
### QUESTION Find the name and checking balance of the account with the lowest savings balance. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1
{ "answer": "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name and checking balance of the account with the lowest savings balance." }
### QUESTION Find the name of accounts whose checking balance is below the average checking balance. ### CONTEXT CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### ANSWER SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
{ "answer": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)", "context": "CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "question": "Find the name of accounts whose checking balance is below the average checking balance." }
### QUESTION Find the saving balance of the account with the highest checking balance. ### CONTEXT CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR) ### ANSWER SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1
{ "answer": "SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1", "context": "CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR)", "question": "Find the saving balance of the account with the highest checking balance." }
### QUESTION Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
{ "answer": "SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)", "question": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order." }
### QUESTION What is the Statue, when Venue is "Stadio Flaminio , Rome"? ### CONTEXT CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR) ### ANSWER SELECT status FROM table_name_63 WHERE venue = "stadio flaminio , rome"
{ "answer": "SELECT status FROM table_name_63 WHERE venue = \"stadio flaminio , rome\"", "context": "CREATE TABLE table_name_63 (status VARCHAR, venue VARCHAR)", "question": "What is the Statue, when Venue is \"Stadio Flaminio , Rome\"?" }
### QUESTION Find the name, checking balance and saving balance of all accounts in the bank. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid
{ "answer": "SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name, checking balance and saving balance of all accounts in the bank." }
### QUESTION Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. ### CONTEXT CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC
{ "answer": "SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC", "context": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order." }
### QUESTION Find the name of accounts whose checking balance is higher than corresponding saving balance. ### CONTEXT CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### ANSWER SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance
{ "answer": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance", "context": "CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance." }
### QUESTION Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. ### CONTEXT CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance
{ "answer": "SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance", "context": "CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance." }
### QUESTION How many episodes with different season numbers had the Jeans family in them? ### CONTEXT CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR) ### ANSWER SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = "The Jeans Family"
{ "answer": "SELECT COUNT(no_in_season) FROM table_19897294_10 WHERE family_families = \"The Jeans Family\"", "context": "CREATE TABLE table_19897294_10 (no_in_season VARCHAR, family_families VARCHAR)", "question": "How many episodes with different season numbers had the Jeans family in them?" }
### QUESTION Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. ### CONTEXT CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR) ### ANSWER SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3
{ "answer": "SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3", "context": "CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)", "question": "Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order." }
### QUESTION What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ? ### CONTEXT CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR) ### ANSWER SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998
{ "answer": "SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998", "context": "CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)", "question": "What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?" }
### QUESTION When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible? ### CONTEXT CREATE TABLE accelerator_compatible_browser (compatible_since_year VARCHAR, browser_id VARCHAR, accelerator_id VARCHAR); CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR) ### ANSWER SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer'
{ "answer": "SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer'", "context": "CREATE TABLE accelerator_compatible_browser (compatible_since_year VARCHAR, browser_id VARCHAR, accelerator_id VARCHAR); CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR)", "question": "When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?" }
### QUESTION How many different kinds of clients are supported by the web clients accelerators? ### CONTEXT CREATE TABLE web_client_accelerator (client VARCHAR) ### ANSWER SELECT COUNT(DISTINCT client) FROM web_client_accelerator
{ "answer": "SELECT COUNT(DISTINCT client) FROM web_client_accelerator", "context": "CREATE TABLE web_client_accelerator (client VARCHAR)", "question": "How many different kinds of clients are supported by the web clients accelerators?" }
### QUESTION How many accelerators are not compatible with the browsers listed ? ### CONTEXT CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR) ### ANSWER SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)
{ "answer": "SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)", "context": "CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR)", "question": "How many accelerators are not compatible with the browsers listed ?" }
### QUESTION What distinct accelerator names are compatible with the browswers that have market share higher than 15? ### CONTEXT CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER) ### ANSWER SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15
{ "answer": "SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15", "context": "CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER)", "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?" }
### QUESTION List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'. ### CONTEXT CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR) ### ANSWER SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'
{ "answer": "SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'", "context": "CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)", "question": "List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'." }
### QUESTION Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. ### CONTEXT CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR) ### ANSWER SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera'
{ "answer": "SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera'", "context": "CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)", "question": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'." }
### QUESTION how many original air date where family/families is the ryder family and the schwartz family ### CONTEXT CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR) ### ANSWER SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = "The Ryder Family and The Schwartz Family"
{ "answer": "SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = \"The Ryder Family and The Schwartz Family\"", "context": "CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR)", "question": "how many original air date where family/families is the ryder family and the schwartz family" }
### QUESTION give me names of all compatible browsers and accelerators in the descending order of compatible year ### CONTEXT CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR) ### ANSWER SELECT T2.name, T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC
{ "answer": "SELECT T2.name, T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC", "context": "CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)", "question": "give me names of all compatible browsers and accelerators in the descending order of compatible year" }
### QUESTION What is the name of the wrestler with the fewest days held? ### CONTEXT CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR) ### ANSWER SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1
{ "answer": "SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1", "context": "CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)", "question": "What is the name of the wrestler with the fewest days held?" }
### QUESTION How many points were scored by the player who played 363 games? ### CONTEXT CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR) ### ANSWER SELECT points FROM table_name_86 WHERE games = "363"
{ "answer": "SELECT points FROM table_name_86 WHERE games = \"363\"", "context": "CREATE TABLE table_name_86 (points VARCHAR, games VARCHAR)", "question": "How many points were scored by the player who played 363 games?" }
### QUESTION What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? ### CONTEXT CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### ANSWER SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = "end of contract" AND date_of_appointment = "dec. 16, 2008"
{ "answer": "SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = \"end of contract\" AND date_of_appointment = \"dec. 16, 2008\"", "context": "CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR)", "question": "What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008?" }
### QUESTION What are the names of wrestlers and the elimination moves? ### CONTEXT CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR) ### ANSWER SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
{ "answer": "SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID", "context": "CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)", "question": "What are the names of wrestlers and the elimination moves?" }
### QUESTION What kind of Replaced has a Team of gimnasia y esgrima (lp)? ### CONTEXT CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR) ### ANSWER SELECT replaced_by FROM table_name_71 WHERE team = "gimnasia y esgrima (lp)"
{ "answer": "SELECT replaced_by FROM table_name_71 WHERE team = \"gimnasia y esgrima (lp)\"", "context": "CREATE TABLE table_name_71 (replaced_by VARCHAR, team VARCHAR)", "question": "What kind of Replaced has a Team of gimnasia y esgrima (lp)?" }
### QUESTION Show times of elimination of wrestlers with days held more than 50. ### CONTEXT CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR) ### ANSWER SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50
{ "answer": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50", "context": "CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)", "question": "Show times of elimination of wrestlers with days held more than 50." }
### QUESTION Where was the UFC 154 match held? ### CONTEXT CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR) ### ANSWER SELECT location FROM table_name_18 WHERE event = "ufc 154"
{ "answer": "SELECT location FROM table_name_18 WHERE event = \"ufc 154\"", "context": "CREATE TABLE table_name_18 (location VARCHAR, event VARCHAR)", "question": "Where was the UFC 154 match held?" }
### QUESTION For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39? ### CONTEXT CREATE TABLE table_name_60 (wins INTEGER, goals_conceded VARCHAR, club VARCHAR, points VARCHAR, goals_scored VARCHAR) ### ANSWER SELECT MIN(wins) FROM table_name_60 WHERE points < 25 AND goals_scored = 22 AND club = "minija kretinga" AND goals_conceded < 39
{ "answer": "SELECT MIN(wins) FROM table_name_60 WHERE points < 25 AND goals_scored = 22 AND club = \"minija kretinga\" AND goals_conceded < 39", "context": "CREATE TABLE table_name_60 (wins INTEGER, goals_conceded VARCHAR, club VARCHAR, points VARCHAR, goals_scored VARCHAR)", "question": "For the club Minija Kretinga, what's the lowest number of wins with points smaller than 25, goals at 22 and goals conceded below 39?" }
### QUESTION In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )? ### CONTEXT CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR) ### ANSWER SELECT place FROM table_name_50 WHERE silver = "valeri postoianov ( urs )" AND year > 1969 AND bronze = "alexander gazov ( urs )"
{ "answer": "SELECT place FROM table_name_50 WHERE silver = \"valeri postoianov ( urs )\" AND year > 1969 AND bronze = \"alexander gazov ( urs )\"", "context": "CREATE TABLE table_name_50 (place VARCHAR, bronze VARCHAR, silver VARCHAR, year VARCHAR)", "question": "In which Place was the Silver won by valeri postoianov ( urs ) later than 1969 and the Bronze won by alexander gazov ( urs )?" }
### QUESTION Name the rufus guest for 15 december 2008 ### CONTEXT CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, first_broadcast VARCHAR) ### ANSWER SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = "15 December 2008"
{ "answer": "SELECT COUNT(rufus_guest) FROM table_19930660_1 WHERE first_broadcast = \"15 December 2008\"", "context": "CREATE TABLE table_19930660_1 (rufus_guest VARCHAR, first_broadcast VARCHAR)", "question": "Name the rufus guest for 15 december 2008" }