text stringlengths 146 1.06k | source dict |
|---|---|
### QUESTION
List first name and last name of customers lived in city Lockmanfurt.
### CONTEXT
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, city VARCHAR)
### ANSWER
SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN ... | {
"answer": "SELECT T1.first_name, T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = \"Lockmanfurt\"",
"context": "CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, customer_address_id VARCHAR); CREATE TABLE Addresses (address_id VARCHAR, c... |
### QUESTION
All players are position mark polak.
### CONTEXT
CREATE TABLE table_1013129_10 (position VARCHAR, player VARCHAR)
### ANSWER
SELECT position FROM table_1013129_10 WHERE player = "Mark Polak" | {
"answer": "SELECT position FROM table_1013129_10 WHERE player = \"Mark Polak\"",
"context": "CREATE TABLE table_1013129_10 (position VARCHAR, player VARCHAR)",
"question": "All players are position mark polak."
} |
### QUESTION
Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?
### CONTEXT
CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)
### ANSWER
SELECT set_3 FROM table_name_86 WHERE score = "3–2" AND set_2 = "25–23" AND time = "19:00" | {
"answer": "SELECT set_3 FROM table_name_86 WHERE score = \"3–2\" AND set_2 = \"25–23\" AND time = \"19:00\"",
"context": "CREATE TABLE table_name_86 (set_3 VARCHAR, time VARCHAR, score VARCHAR, set_2 VARCHAR)",
"question": "Which Set 3 has a Score of 3–2, and a Set 2 of 25–23, and a Time of 19:00?"
} |
### QUESTION
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
### CONTEXT
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
### ANSWER
SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships" | {
"answer": "SELECT event FROM table_name_6 WHERE year = 2002 AND competition = \"european indoor championships\"",
"context": "CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)",
"question": "What is the Event, when Year is 2002, and when Competition is European Indoor Championships?"
... |
### 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
WHich Coat of Cash" Wearing Celebrity has a Episode Number larger than 1 and with amy macdonald ( mr rock & roll )?
### CONTEXT
CREATE TABLE table_name_92 (episode_number VARCHAR, musical_guest__song_performed_ VARCHAR)
### ANSWER
SELECT "coat_of_cash" AS _wearing_celebrity FROM table_name_92 WHERE episo... | {
"answer": "SELECT \"coat_of_cash\" AS _wearing_celebrity FROM table_name_92 WHERE episode_number > 1 AND musical_guest__song_performed_ = \"amy macdonald ( mr rock & roll )\"",
"context": "CREATE TABLE table_name_92 (episode_number VARCHAR, musical_guest__song_performed_ VARCHAR)",
"question": "WHich Coat of Ca... |
### QUESTION
What is the other name for martonoš?
### CONTEXT
CREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)
### ANSWER
SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = "Martonoš" | {
"answer": "SELECT cyrillic_name_other_names FROM table_2562572_33 WHERE settlement = \"Martonoš\"",
"context": "CREATE TABLE table_2562572_33 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)",
"question": "What is the other name for martonoš?"
} |
### QUESTION
What is the english title of the modern drama, episode 20, that airs on 26 sep- 21 oct?
### CONTEXT
CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
### ANSWER
SELECT english_title__chinese_title_ FROM table_name_82 WHERE g... | {
"answer": "SELECT english_title__chinese_title_ FROM table_name_82 WHERE genre = \"modern drama\" AND number_of_episodes = 20 AND airing_date = \"26 sep- 21 oct\"",
"context": "CREATE TABLE table_name_82 (english_title__chinese_title_ VARCHAR, airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)",
"q... |
### QUESTION
List the id of students who never attends courses?
### CONTEXT
CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)
### ANSWER
SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance) | {
"answer": "SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)",
"context": "CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)",
"question": "List the id of students who never attends courses?"
} |
### QUESTION
How many losses have points against greater than 592, with high park demons as the club, and points for greater than 631?
### CONTEXT
CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)
### ANSWER
SELECT COUNT(loses) FROM table_name_45 WHERE points_against... | {
"answer": "SELECT COUNT(loses) FROM table_name_45 WHERE points_against > 592 AND club = \"high park demons\" AND points_for > 631",
"context": "CREATE TABLE table_name_45 (loses VARCHAR, points_for VARCHAR, points_against VARCHAR, club VARCHAR)",
"question": "How many losses have points against greater than 592... |
### QUESTION
What are the first name and last name of the professionals who have done treatment with cost below average?
### CONTEXT
CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CREATE TABLE Treatments (Id VARCHAR)
### ANSWER
SELECT DISTINCT ... | {
"answer": "SELECT DISTINCT T1.first_name, T1.last_name FROM Professionals AS T1 JOIN Treatments AS T2 WHERE cost_of_treatment < (SELECT AVG(cost_of_treatment) FROM Treatments)",
"context": "CREATE TABLE Treatments (cost_of_treatment INTEGER); CREATE TABLE Professionals (first_name VARCHAR, last_name VARCHAR); CRE... |
### QUESTION
Find the minimum grade of students who have no friends.
### CONTEXT
CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)
### ANSWER
SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T... | {
"answer": "SELECT MIN(grade) FROM Highschooler WHERE NOT id IN (SELECT T1.student_id FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id)",
"context": "CREATE TABLE Highschooler (id VARCHAR); CREATE TABLE Friend (student_id VARCHAR); CREATE TABLE Highschooler (grade INTEGER, id VARCHAR)",
"questi... |
### QUESTION
What is Opponents In The Final, when Surface is "Carpet", and when Tournament is "Milan , Italy"?
### CONTEXT
CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)
### ANSWER
SELECT opponents_in_the_final FROM table_name_61 WHERE surface = "carpet" AND tournamen... | {
"answer": "SELECT opponents_in_the_final FROM table_name_61 WHERE surface = \"carpet\" AND tournament = \"milan , italy\"",
"context": "CREATE TABLE table_name_61 (opponents_in_the_final VARCHAR, surface VARCHAR, tournament VARCHAR)",
"question": "What is Opponents In The Final, when Surface is \"Carpet\", and ... |
### QUESTION
what is the pick when the school is jasper hs (jasper, texas)?
### CONTEXT
CREATE TABLE table_name_63 (pick VARCHAR, school VARCHAR)
### ANSWER
SELECT pick FROM table_name_63 WHERE school = "jasper hs (jasper, texas)" | {
"answer": "SELECT pick FROM table_name_63 WHERE school = \"jasper hs (jasper, texas)\"",
"context": "CREATE TABLE table_name_63 (pick VARCHAR, school VARCHAR)",
"question": "what is the pick when the school is jasper hs (jasper, texas)?"
} |
### QUESTION
What is the sum of all the rounds when a Florida State player was drafted?
### CONTEXT
CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)
### ANSWER
SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state" | {
"answer": "SELECT COUNT(round) FROM table_name_8 WHERE college = \"florida state\"",
"context": "CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)",
"question": "What is the sum of all the rounds when a Florida State player was drafted?"
} |
### QUESTION
What's the duration of the Archers with Norman Painting as an actor?
### CONTEXT
CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
### ANSWER
SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting" | {
"answer": "SELECT duration FROM table_name_98 WHERE soap_opera = \"the archers\" AND actor = \"norman painting\"",
"context": "CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)",
"question": "What's the duration of the Archers with Norman Painting as an actor?"
} |
### QUESTION
What is the latest number of the guard position from the Wake Forest school team?
### CONTEXT
CREATE TABLE table_15621965_17 (no INTEGER, position VARCHAR, school_club_team VARCHAR)
### ANSWER
SELECT MAX(no) FROM table_15621965_17 WHERE position = "Guard" AND school_club_team = "Wake Forest" | {
"answer": "SELECT MAX(no) FROM table_15621965_17 WHERE position = \"Guard\" AND school_club_team = \"Wake Forest\"",
"context": "CREATE TABLE table_15621965_17 (no INTEGER, position VARCHAR, school_club_team VARCHAR)",
"question": "What is the latest number of the guard position from the Wake Forest school team... |
### QUESTION
What is the transfer window for Christian Nerlinger?
### CONTEXT
CREATE TABLE table_name_23 (transfer_window VARCHAR, name VARCHAR)
### ANSWER
SELECT transfer_window FROM table_name_23 WHERE name = "christian nerlinger" | {
"answer": "SELECT transfer_window FROM table_name_23 WHERE name = \"christian nerlinger\"",
"context": "CREATE TABLE table_name_23 (transfer_window VARCHAR, name VARCHAR)",
"question": "What is the transfer window for Christian Nerlinger?"
} |
### QUESTION
Name the successor for vacant and december 3, 1862
### CONTEXT
CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)
### ANSWER
SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862" | {
"answer": "SELECT successor FROM table_2417330_4 WHERE reason_for_change = \"Vacant\" AND date_successor_seated = \"December 3, 1862\"",
"context": "CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)",
"question": "Name the successor for vacant and decembe... |
### QUESTION
What are the names of parties that have both delegates on "Appropriations" committee and
### CONTEXT
CREATE TABLE election (Party VARCHAR, Committee VARCHAR); CREATE TABLE party (Party VARCHAR, Party_ID VARCHAR)
### ANSWER
SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHE... | {
"answer": "SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Appropriations\" INTERSECT SELECT T2.Party FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID WHERE T1.Committee = \"Economic Matters\"",
"context": "CREATE TABLE election (Party VARCHAR, C... |
### QUESTION
What is the total number of games at Toronto with less than 31 points?
### CONTEXT
CREATE TABLE table_name_87 (game VARCHAR, location VARCHAR, points VARCHAR)
### ANSWER
SELECT COUNT(game) FROM table_name_87 WHERE location = "toronto" AND points < 31 | {
"answer": "SELECT COUNT(game) FROM table_name_87 WHERE location = \"toronto\" AND points < 31",
"context": "CREATE TABLE table_name_87 (game VARCHAR, location VARCHAR, points VARCHAR)",
"question": "What is the total number of games at Toronto with less than 31 points?"
} |
### QUESTION
For the ship that was a brig and located in the English Channel, what was the disposition of ship?
### CONTEXT
CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)
### ANSWER
SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = "brig" AND location = "en... | {
"answer": "SELECT disposition_of_ship FROM table_name_57 WHERE ship_type = \"brig\" AND location = \"english channel\"",
"context": "CREATE TABLE table_name_57 (disposition_of_ship VARCHAR, ship_type VARCHAR, location VARCHAR)",
"question": "For the ship that was a brig and located in the English Channel, what ... |
### QUESTION
In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol perform?
### CONTEXT
CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)
### ANSWER
SELECT year FROM table_name_56 WHERE band = "snow patrol" AND lifetime_achievement_award = "aslan" | {
"answer": "SELECT year FROM table_name_56 WHERE band = \"snow patrol\" AND lifetime_achievement_award = \"aslan\"",
"context": "CREATE TABLE table_name_56 (year VARCHAR, band VARCHAR, lifetime_achievement_award VARCHAR)",
"question": "In what year did Aslan receive a Lifetime Achievement Award and Snow Patrol p... |
### QUESTION
What was the final venue whene England hasted the competition and the runner-up record is [[|]] 4 points and the winner record is [[|]] 6 points?
### CONTEXT
CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR)
### ANSWER
SELECT final_venue FROM t... | {
"answer": "SELECT final_venue FROM table_28601467_1 WHERE host_nation_s_ = \"England\" AND runner_up = \"[[|]] 4 points\" AND winner = \"[[|]] 6 points\"",
"context": "CREATE TABLE table_28601467_1 (final_venue VARCHAR, winner VARCHAR, host_nation_s_ VARCHAR, runner_up VARCHAR)",
"question": "What was the final... |
### QUESTION
What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?
### CONTEXT
CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)
### ANSWER
SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0 | {
"answer": "SELECT MIN(rank) FROM table_name_69 WHERE bronze = 0 AND silver = 1 AND gold > 0",
"context": "CREATE TABLE table_name_69 (rank INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR)",
"question": "What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?"
} |
### QUESTION
Who was a linebacker at Tennessee?
### CONTEXT
CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)
### ANSWER
SELECT player_name FROM table_name_64 WHERE position = "linebacker" AND college = "tennessee" | {
"answer": "SELECT player_name FROM table_name_64 WHERE position = \"linebacker\" AND college = \"tennessee\"",
"context": "CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)",
"question": "Who was a linebacker at Tennessee?"
} |
### QUESTION
What are the name, phone number and email address of the customer who made the largest number of orders?
### CONTEXT
CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR)
### ANSWER
SELECT T1... | {
"answer": "SELECT T1.customer_name, T1.customer_phone, T1.customer_email FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_email VAR... |
### QUESTION
What are the names of countries that have both players with position forward and players with position defender?
### CONTEXT
CREATE TABLE country (Country_name VARCHAR, Country_id VARCHAR); CREATE TABLE match_season (Country VARCHAR, Position VARCHAR)
### ANSWER
SELECT T1.Country_name FROM country AS T1 ... | {
"answer": "SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Forward\" INTERSECT SELECT T1.Country_name FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T2.Position = \"Defender\"",
"context": "CREATE TABLE country (... |
### QUESTION
Name the highest 3rd place for nation of perak fa
### CONTEXT
### ANSWER
SELECT MAX(*) FROM table_name_65 WHERE nation = "perak fa" AND place = 3 | {
"answer": "SELECT MAX(*) FROM table_name_65 WHERE nation = \"perak fa\" AND place = 3",
"context": "",
"question": "Name the highest 3rd place for nation of perak fa"
} |
### QUESTION
Which engineer has visited the most times? Show the engineer id, first name and last name.
### CONTEXT
CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Engineer_Visits (Id VARCHAR)
### ANSWER
SELECT T1.engineer_id, T1.first_name, T1.last_name F... | {
"answer": "SELECT T1.engineer_id, T1.first_name, T1.last_name FROM Maintenance_Engineers AS T1 JOIN Engineer_Visits AS T2 GROUP BY T1.engineer_id ORDER BY COUNT(*) DESC LIMIT 1",
"context": "CREATE TABLE Maintenance_Engineers (engineer_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Engineer_Visi... |
### QUESTION
How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
### CONTEXT
CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)
### ANSWER
SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND t... | {
"answer": "SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34",
"context": "CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)",
"question": "How many numbers were recorded under max speed for 1 USAF space f... |
### QUESTION
Which Lead has a Third of randy ferbey (skip), a Second of scott pfeifer, and a Season of 2009–10?
### CONTEXT
CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR)
### ANSWER
SELECT lead FROM table_name_21 WHERE third = "randy ferbey (skip)" AND second = "scott pfeifer... | {
"answer": "SELECT lead FROM table_name_21 WHERE third = \"randy ferbey (skip)\" AND second = \"scott pfeifer\" AND season = \"2009–10\"",
"context": "CREATE TABLE table_name_21 (lead VARCHAR, season VARCHAR, third VARCHAR, second VARCHAR)",
"question": "Which Lead has a Third of randy ferbey (skip), a Second of... |
### QUESTION
Which yard has a Completion of 64.9%?
### CONTEXT
CREATE TABLE table_name_26 (yards VARCHAR, completion__percentage VARCHAR)
### ANSWER
SELECT yards FROM table_name_26 WHERE completion__percentage = "64.9%" | {
"answer": "SELECT yards FROM table_name_26 WHERE completion__percentage = \"64.9%\"",
"context": "CREATE TABLE table_name_26 (yards VARCHAR, completion__percentage VARCHAR)",
"question": "Which yard has a Completion of 64.9%?"
} |
### QUESTION
What player is from France?
### CONTEXT
CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR)
### ANSWER
SELECT player FROM table_name_63 WHERE country = "france" | {
"answer": "SELECT player FROM table_name_63 WHERE country = \"france\"",
"context": "CREATE TABLE table_name_63 (player VARCHAR, country VARCHAR)",
"question": "What player is from France?"
} |
### 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
Who was the winning driver when pole position was jenson button, the fastest lap was michael schumacher and the car was ferrari?
### CONTEXT
CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)
### ANSWER
SELECT winning_driver FROM table_nam... | {
"answer": "SELECT winning_driver FROM table_name_13 WHERE fastest_lap = \"michael schumacher\" AND constructor = \"ferrari\" AND pole_position = \"jenson button\"",
"context": "CREATE TABLE table_name_13 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR, constructor VARCHAR)",
"question": "Who... |
### QUESTION
What day in January was the game greater than 49 and had @ Montreal Canadiens as opponents?
### CONTEXT
CREATE TABLE table_name_70 (january INTEGER, opponent VARCHAR, game VARCHAR)
### ANSWER
SELECT SUM(january) FROM table_name_70 WHERE opponent = "@ montreal canadiens" AND game > 49 | {
"answer": "SELECT SUM(january) FROM table_name_70 WHERE opponent = \"@ montreal canadiens\" AND game > 49",
"context": "CREATE TABLE table_name_70 (january INTEGER, opponent VARCHAR, game VARCHAR)",
"question": "What day in January was the game greater than 49 and had @ Montreal Canadiens as opponents?"
} |
### QUESTION
What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?
### CONTEXT
CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR)
### ANSWER
SELECT MAX(total_forei... | {
"answer": "SELECT MAX(total_foreign_born__1000_) FROM table_name_53 WHERE born_in_a_non_eu_state__1000_ = 685 AND total_population__1000_ > 10 OFFSET 666",
"context": "CREATE TABLE table_name_53 (total_foreign_born__1000_ INTEGER, born_in_a_non_eu_state__1000_ VARCHAR, total_population__1000_ VARCHAR)",
"questi... |
### QUESTION
Name the score for the mariners opponent on may 10
### CONTEXT
CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### ANSWER
SELECT score FROM table_name_20 WHERE opponent = "mariners" AND date = "may 10" | {
"answer": "SELECT score FROM table_name_20 WHERE opponent = \"mariners\" AND date = \"may 10\"",
"context": "CREATE TABLE table_name_20 (score VARCHAR, opponent VARCHAR, date VARCHAR)",
"question": "Name the score for the mariners opponent on may 10"
} |
### QUESTION
What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?
### CONTEXT
CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)
### ANSWER
SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = "4.4% 4 seats" | {
"answer": "SELECT social_democratic FROM table_name_86 WHERE democratic_and_social_centre = \"4.4% 4 seats\"",
"context": "CREATE TABLE table_name_86 (social_democratic VARCHAR, democratic_and_social_centre VARCHAR)",
"question": "What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats?"
} |
### QUESTION
Name number of stellar classification for 3 neptune planets < 1 au
### CONTEXT
CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)
### ANSWER
SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU" | {
"answer": "SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = \"3 Neptune planets < 1 AU\"",
"context": "CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)",
"question": "Name number of stellar classification for 3 neptune planets < 1 au"
} |
### QUESTION
What's the lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08?
### CONTEXT
CREATE TABLE table_name_92 (code INTEGER, area__km_2__ VARCHAR, most_spoken_language VARCHAR, place VARCHAR)
### ANSWER
SELECT MIN(code) FROM ... | {
"answer": "SELECT MIN(code) FROM table_name_92 WHERE most_spoken_language = \"xhosa\" AND place = \"addo elephant national park\" AND area__km_2__ < 1.08",
"context": "CREATE TABLE table_name_92 (code INTEGER, area__km_2__ VARCHAR, most_spoken_language VARCHAR, place VARCHAR)",
"question": "What's the lowest Co... |
### QUESTION
What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?
### CONTEXT
CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)
### ANSWER
SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND dat... | {
"answer": "SELECT congress FROM table_name_92 WHERE _number_of_cosponsors < 23 AND date_introduced = \"june 30, 2005\"",
"context": "CREATE TABLE table_name_92 (congress VARCHAR, _number_of_cosponsors VARCHAR, date_introduced VARCHAR)",
"question": "What Congress had less than 23 cosponsors and had June 30, 200... |
### QUESTION
What is the time when ss12 is stage?
### CONTEXT
CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR)
### ANSWER
SELECT time FROM table_21578303_2 WHERE stage = "SS12" | {
"answer": "SELECT time FROM table_21578303_2 WHERE stage = \"SS12\"",
"context": "CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR)",
"question": "What is the time when ss12 is stage?"
} |
### QUESTION
Are the customers holding coupons with amount 500 bad or good?
### CONTEXT
CREATE TABLE discount_coupons (coupon_id VARCHAR, coupon_amount VARCHAR); CREATE TABLE customers (good_or_bad_customer VARCHAR, coupon_id VARCHAR)
### ANSWER
SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupon... | {
"answer": "SELECT T1.good_or_bad_customer FROM customers AS T1 JOIN discount_coupons AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.coupon_amount = 500",
"context": "CREATE TABLE discount_coupons (coupon_id VARCHAR, coupon_amount VARCHAR); CREATE TABLE customers (good_or_bad_customer VARCHAR, coupon_id VARCHAR)",
... |
### QUESTION
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
### CONTEXT
CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)
### ANSWER
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND ... | {
"answer": "SELECT guns FROM table_name_63 WHERE class = \"third-rate ship of the line\" AND rank = \"vice-admiral\" AND year = \"1802\"",
"context": "CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)",
"question": "Tell me the guns for third-rate ship of the line and rank of v... |
### QUESTION
How many # were written by david hoselton?
### CONTEXT
CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)
### ANSWER
SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = "David Hoselton" | {
"answer": "SELECT MAX(_number) FROM table_22904752_1 WHERE written_by = \"David Hoselton\"",
"context": "CREATE TABLE table_22904752_1 (_number INTEGER, written_by VARCHAR)",
"question": "How many # were written by david hoselton?"
} |
### QUESTION
WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?
### CONTEXT
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
### ANSWER
SELECT away_team FROM table_name_33 WHERE home_team = "leicester city" | {
"answer": "SELECT away_team FROM table_name_33 WHERE home_team = \"leicester city\"",
"context": "CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)",
"question": "WHAT IS THE AWAY TEAM WITH HOME OF LEICESTER CITY?"
} |
### QUESTION
What's the wold ranking of the index by Transparency International?
### CONTEXT
CREATE TABLE table_19948664_1 (world_ranking__1_ VARCHAR, author___editor___source VARCHAR)
### ANSWER
SELECT world_ranking__1_ FROM table_19948664_1 WHERE author___editor___source = "Transparency International" | {
"answer": "SELECT world_ranking__1_ FROM table_19948664_1 WHERE author___editor___source = \"Transparency International\"",
"context": "CREATE TABLE table_19948664_1 (world_ranking__1_ VARCHAR, author___editor___source VARCHAR)",
"question": "What's the wold ranking of the index by Transparency International?"
... |
### QUESTION
What was the senior status for the judge who was terminated because of death, with a Chief Judge entry of —?
### CONTEXT
CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR)
### ANSWER
SELECT senior_status FROM table_name_22 WHERE reason_for_termination ... | {
"answer": "SELECT senior_status FROM table_name_22 WHERE reason_for_termination = \"death\" AND chief_judge = \"—\"",
"context": "CREATE TABLE table_name_22 (senior_status VARCHAR, reason_for_termination VARCHAR, chief_judge VARCHAR)",
"question": "What was the senior status for the judge who was terminated bec... |
### QUESTION
Which Year(s) won has a To par smaller than 12, and a Player of john daly?
### CONTEXT
CREATE TABLE table_name_50 (year_s__won VARCHAR, to_par VARCHAR, player VARCHAR)
### ANSWER
SELECT year_s__won FROM table_name_50 WHERE to_par < 12 AND player = "john daly" | {
"answer": "SELECT year_s__won FROM table_name_50 WHERE to_par < 12 AND player = \"john daly\"",
"context": "CREATE TABLE table_name_50 (year_s__won VARCHAR, to_par VARCHAR, player VARCHAR)",
"question": "Which Year(s) won has a To par smaller than 12, and a Player of john daly?"
} |
### QUESTION
Which team has an up/down of + 3479?
### CONTEXT
CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR)
### ANSWER
SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479" | {
"answer": "SELECT team FROM table_2472711_31 WHERE up_down = \"+ 3479\"",
"context": "CREATE TABLE table_2472711_31 (team VARCHAR, up_down VARCHAR)",
"question": "Which team has an up/down of + 3479?"
} |
### QUESTION
Which city is the headquarter of the store named "Blackville" in?
### CONTEXT
CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_city VARCHAR, district_id VARCHAR); CREATE TABLE store_district (store_id VARCHAR, district_id VARCHAR)
### ANSWER
SELECT t3.headqu... | {
"answer": "SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = \"Blackville\"",
"context": "CREATE TABLE store (store_id VARCHAR, store_name VARCHAR); CREATE TABLE district (headquartered_... |
### QUESTION
How many events did not have any participants?
### CONTEXT
CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)
### ANSWER
SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events) | {
"answer": "SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN (SELECT event_id FROM Participants_in_Events)",
"context": "CREATE TABLE EVENTS (event_id VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR)",
"question": "How many events did not have any participants?"
} |
### QUESTION
list in alphabetic order all course names and their instructors' names in year 2008.
### CONTEXT
CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE teaches (course_id VARCHAR, id VARCHAR); CREATE TABLE instructor (name VARCHAR, id VARCHAR)
### ANSWER
SELECT T1.title, T3.name FROM course... | {
"answer": "SELECT T1.title, T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.id = T3.id WHERE YEAR = 2008 ORDER BY T1.title",
"context": "CREATE TABLE course (title VARCHAR, course_id VARCHAR); CREATE TABLE teaches (course_id VARCHAR, id VARCHAR); CREATE TABL... |
### QUESTION
What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and when Tournament is Joburg Open 1?
### CONTEXT
CREATE TABLE table_name_51 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### ANSWER
SELECT runner_s__up FROM table_name_51 WHERE margin_of_victory = "1 stroke" AND tournamen... | {
"answer": "SELECT runner_s__up FROM table_name_51 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"joburg open 1\"",
"context": "CREATE TABLE table_name_51 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"question": "What is Runner(s)-Up, when Margin of Victory is 1 Stroke, and ... |
### QUESTION
What game has a platform(s) of playstation 3, when the genre is platform game?
### CONTEXT
CREATE TABLE table_name_33 (game VARCHAR, platform_s_ VARCHAR, genre VARCHAR)
### ANSWER
SELECT game FROM table_name_33 WHERE platform_s_ = "playstation 3" AND genre = "platform game" | {
"answer": "SELECT game FROM table_name_33 WHERE platform_s_ = \"playstation 3\" AND genre = \"platform game\"",
"context": "CREATE TABLE table_name_33 (game VARCHAR, platform_s_ VARCHAR, genre VARCHAR)",
"question": "What game has a platform(s) of playstation 3, when the genre is platform game?"
} |
### QUESTION
What is the molecular target of bacterium?
### CONTEXT
CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_α VARCHAR)
### ANSWER
SELECT molecular_target FROM table_name_10 WHERE marine_organism_α = "bacterium" | {
"answer": "SELECT molecular_target FROM table_name_10 WHERE marine_organism_α = \"bacterium\"",
"context": "CREATE TABLE table_name_10 (molecular_target VARCHAR, marine_organism_α VARCHAR)",
"question": "What is the molecular target of bacterium?"
} |
### QUESTION
Does the S90i model have bluetooth?
### CONTEXT
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
### ANSWER
SELECT bluetooth FROM table_name_31 WHERE model = "s90i" | {
"answer": "SELECT bluetooth FROM table_name_31 WHERE model = \"s90i\"",
"context": "CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)",
"question": "Does the S90i model have bluetooth?"
} |
### QUESTION
In the game held at Arden Street Oval, what was the score of the home team?
### CONTEXT
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
### ANSWER
SELECT home_team AS score FROM table_name_23 WHERE venue = "arden street oval" | {
"answer": "SELECT home_team AS score FROM table_name_23 WHERE venue = \"arden street oval\"",
"context": "CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)",
"question": "In the game held at Arden Street Oval, what was the score of the home team?"
} |
### QUESTION
In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?
### CONTEXT
CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
### ANSWER
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th... | {
"answer": "SELECT original_title FROM table_name_66 WHERE result = \"not nominated\" AND year__ceremony_ = \"2012 (85th)\"",
"context": "CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)",
"question": "In the 2012 (85th) Ceremony, what was the Original title of the fil... |
### QUESTION
What grand prixs did Daijiro Hiura win?
### CONTEXT
CREATE TABLE table_18303274_1 (grand_prix VARCHAR, race_winner VARCHAR)
### ANSWER
SELECT grand_prix FROM table_18303274_1 WHERE race_winner = "Daijiro Hiura" | {
"answer": "SELECT grand_prix FROM table_18303274_1 WHERE race_winner = \"Daijiro Hiura\"",
"context": "CREATE TABLE table_18303274_1 (grand_prix VARCHAR, race_winner VARCHAR)",
"question": "What grand prixs did Daijiro Hiura win? "
} |
### QUESTION
What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?
### CONTEXT
CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR)
### ANSWER
SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = "$120" | {
"answer": "SELECT fy08_$millions FROM table_25438110_5 WHERE fy07_$millions = \"$120\"",
"context": "CREATE TABLE table_25438110_5 (fy08_$millions VARCHAR, fy07_$millions VARCHAR)",
"question": "What is the FY2008 $mil value associated with a FY2007 $mil value of exactly $120?"
} |
### QUESTION
How many Ties have Years of 1919–1925, and a Pct larger than 0.734?
### CONTEXT
CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)
### ANSWER
SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734 | {
"answer": "SELECT SUM(ties) FROM table_name_75 WHERE years = \"1919–1925\" AND pct > 0.734",
"context": "CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)",
"question": "How many Ties have Years of 1919–1925, and a Pct larger than 0.734?"
} |
### QUESTION
Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed".
### CONTEXT
CREATE TABLE Apartment_Bookings (guest_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Guests (guest_first_name VARCHAR, guest_last_name VARCHAR, guest_id VARCHAR)
### ANSWE... | {
"answer": "SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = \"Confirmed\"",
"context": "CREATE TABLE Apartment_Bookings (guest_id VARCHAR, booking_status_code VARCHAR); CREATE TABLE Guests (guest_first_name V... |
### QUESTION
What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?
### CONTEXT
CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)
### ANSWER
SELECT end_date FROM table_name_8 WHERE governor = "richard j. oglesby" AND term = "1885–1889" | {
"answer": "SELECT end_date FROM table_name_8 WHERE governor = \"richard j. oglesby\" AND term = \"1885–1889\"",
"context": "CREATE TABLE table_name_8 (end_date VARCHAR, governor VARCHAR, term VARCHAR)",
"question": "What is the end date of the term for Governor of richard j. oglesby, and a Term of 1885–1889?"
} |
### QUESTION
What was the Purse for Owner Harold A. Allen prior to 2009?
### CONTEXT
CREATE TABLE table_name_41 (purse VARCHAR, year VARCHAR, owner VARCHAR)
### ANSWER
SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = "harold a. allen" | {
"answer": "SELECT purse FROM table_name_41 WHERE year < 2009 AND owner = \"harold a. allen\"",
"context": "CREATE TABLE table_name_41 (purse VARCHAR, year VARCHAR, owner VARCHAR)",
"question": "What was the Purse for Owner Harold A. Allen prior to 2009?"
} |
### QUESTION
Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?
### CONTEXT
CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR)
### ANSWER
SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "f... | {
"answer": "SELECT name FROM table_name_70 WHERE aafc_team = \"los angeles dons\" AND position = \"fb\" AND college = \"oklahoma a&m\"",
"context": "CREATE TABLE table_name_70 (name VARCHAR, college VARCHAR, aafc_team VARCHAR, position VARCHAR)",
"question": "Which Name has a AAFC Team of los angeles dons, and a... |
### QUESTION
How many films are there in each category? List the genre name, genre id and the count.
### CONTEXT
CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)
### ANSWER
SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ... | {
"answer": "SELECT T2.name, T1.category_id, COUNT(*) FROM film_category AS T1 JOIN category AS T2 ON T1.category_id = T2.category_id GROUP BY T1.category_id",
"context": "CREATE TABLE film_category (category_id VARCHAR); CREATE TABLE category (name VARCHAR, category_id VARCHAR)",
"question": "How many films are ... |
### QUESTION
List the names of phones that are not on any market.
### CONTEXT
CREATE TABLE phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR)
### ANSWER
SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market) | {
"answer": "SELECT Name FROM phone WHERE NOT Phone_id IN (SELECT Phone_ID FROM phone_market)",
"context": "CREATE TABLE phone (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR); CREATE TABLE phone_market (Name VARCHAR, Phone_id VARCHAR, Phone_ID VARCHAR)",
"question": "List the names of phones that are not on an... |
### QUESTION
what's the incumbent with district being massachusetts 2
### CONTEXT
CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR)
### ANSWER
SELECT incumbent FROM table_1341604_22 WHERE district = "Massachusetts 2" | {
"answer": "SELECT incumbent FROM table_1341604_22 WHERE district = \"Massachusetts 2\"",
"context": "CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR)",
"question": "what's the incumbent with district being massachusetts 2"
} |
### QUESTION
What season has a runner-up of waseda, and a title of 47th?
### CONTEXT
CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)
### ANSWER
SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th" | {
"answer": "SELECT season FROM table_name_25 WHERE runner_up = \"waseda\" AND title = \"47th\"",
"context": "CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)",
"question": "What season has a runner-up of waseda, and a title of 47th?"
} |
### QUESTION
What is the least round number for Jon Olinger, who was picked before pick # 24?
### CONTEXT
CREATE TABLE table_name_3 (round INTEGER, name VARCHAR, pick__number VARCHAR)
### ANSWER
SELECT MIN(round) FROM table_name_3 WHERE name = "jon olinger" AND pick__number < 24 | {
"answer": "SELECT MIN(round) FROM table_name_3 WHERE name = \"jon olinger\" AND pick__number < 24",
"context": "CREATE TABLE table_name_3 (round INTEGER, name VARCHAR, pick__number VARCHAR)",
"question": "What is the least round number for Jon Olinger, who was picked before pick # 24?"
} |
### QUESTION
Which Points Classification Navy Blue Jersey that has a Jersey of Graeme Brown
### CONTEXT
CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR)
### ANSWER
SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_cla... | {
"answer": "SELECT points_classification_navy_blue_jersey FROM table_name_8 WHERE general_classification_yellow_jersey = \"graeme brown\"",
"context": "CREATE TABLE table_name_8 (points_classification_navy_blue_jersey VARCHAR, general_classification_yellow_jersey VARCHAR)",
"question": "Which Points Classificati... |
### QUESTION
Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses?
### CONTEXT
CREATE TABLE table_name_77 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR)
### ANSWER
SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = "cd cartagena" AND lo... | {
"answer": "SELECT MAX(goal_difference) FROM table_name_77 WHERE points = 28 AND club = \"cd cartagena\" AND losses > 15",
"context": "CREATE TABLE table_name_77 (goal_difference INTEGER, losses VARCHAR, points VARCHAR, club VARCHAR)",
"question": "Which Goal Difference has 28 Points, and a Club of cd cartagena,... |
### QUESTION
What is the Date with an Opponent that is flavia pennetta?
### CONTEXT
CREATE TABLE table_name_53 (date VARCHAR, opponent VARCHAR)
### ANSWER
SELECT date FROM table_name_53 WHERE opponent = "flavia pennetta" | {
"answer": "SELECT date FROM table_name_53 WHERE opponent = \"flavia pennetta\"",
"context": "CREATE TABLE table_name_53 (date VARCHAR, opponent VARCHAR)",
"question": "What is the Date with an Opponent that is flavia pennetta?"
} |
### QUESTION
Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wörishofen?
### CONTEXT
CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)
### ANSWER
SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen" | {
"answer": "SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = \"ev bad wörishofen\"",
"context": "CREATE TABLE table_name_24 (points INTEGER, name VARCHAR, drawn VARCHAR, lost VARCHAR)",
"question": "Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad wör... |
### QUESTION
Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Question 2
### CONTEXT
CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)
### ANSWER
SELECT SUM(rank) FROM table_name_20 WHERE network = "bbc one" AND number_of_viewers = "30.15million" | {
"answer": "SELECT SUM(rank) FROM table_name_20 WHERE network = \"bbc one\" AND number_of_viewers = \"30.15million\"",
"context": "CREATE TABLE table_name_20 (rank INTEGER, network VARCHAR, number_of_viewers VARCHAR)",
"question": "Which Rank has a Network of bbc one, and a Number of Viewers of 30.15million? Que... |
### QUESTION
What's the engine capacity when the mpg-UK urban is less than 12.2, the mpg-UK extra urban is less than 18.8 and the mpg-US turban is less than 7.2?
### CONTEXT
CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)
### ANSWER
S... | {
"answer": "SELECT SUM(engine_capacity) FROM table_name_53 WHERE mpg_uk_urban__cold_ < 12.2 AND mpg_uk_extra_urban < 18.8 AND mpg_us_urban < 7.2",
"context": "CREATE TABLE table_name_53 (engine_capacity INTEGER, mpg_us_urban VARCHAR, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR)",
"question": "What's ... |
### QUESTION
What was the record on April 8?
### CONTEXT
CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)
### ANSWER
SELECT record FROM table_name_53 WHERE date = "april 8" | {
"answer": "SELECT record FROM table_name_53 WHERE date = \"april 8\"",
"context": "CREATE TABLE table_name_53 (record VARCHAR, date VARCHAR)",
"question": "What was the record on April 8?"
} |
### QUESTION
What is the number of staterooms when guests was larger than 210?
### CONTEXT
CREATE TABLE table_name_28 (staterooms INTEGER, guests INTEGER)
### ANSWER
SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210 | {
"answer": "SELECT AVG(staterooms) FROM table_name_28 WHERE guests > 210",
"context": "CREATE TABLE table_name_28 (staterooms INTEGER, guests INTEGER)",
"question": "What is the number of staterooms when guests was larger than 210?"
} |
### QUESTION
What is the lowest against score for Twickenham, London with the status of Five Nations against Ireland?
### CONTEXT
CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)
### ANSWER
SELECT MIN(against) FROM table_name_16 WHERE venue = "twickenham, london" AND... | {
"answer": "SELECT MIN(against) FROM table_name_16 WHERE venue = \"twickenham, london\" AND status = \"five nations\" AND opposing_teams = \"ireland\"",
"context": "CREATE TABLE table_name_16 (against INTEGER, opposing_teams VARCHAR, venue VARCHAR, status VARCHAR)",
"question": "What is the lowest against score ... |
### QUESTION
What is the high cap total for a lock with the vicenza rangers?
### CONTEXT
CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)
### ANSWER
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers" | {
"answer": "SELECT MAX(caps) FROM table_name_55 WHERE position = \"lock\" AND club_province = \"vicenza rangers\"",
"context": "CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)",
"question": "What is the high cap total for a lock with the vicenza rangers?"
} |
### QUESTION
What television service is in italy and is in english?
### CONTEXT
CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR)
### ANSWER
SELECT television_service FROM table_15887683_15 WHERE country = "Italy" AND language = "English" | {
"answer": "SELECT television_service FROM table_15887683_15 WHERE country = \"Italy\" AND language = \"English\"",
"context": "CREATE TABLE table_15887683_15 (television_service VARCHAR, country VARCHAR, language VARCHAR)",
"question": "What television service is in italy and is in english?"
} |
### QUESTION
How many staff live in state Georgia?
### CONTEXT
CREATE TABLE Addresses (state_province_county VARCHAR)
### ANSWER
SELECT COUNT(*) FROM Addresses WHERE state_province_county = "Georgia" | {
"answer": "SELECT COUNT(*) FROM Addresses WHERE state_province_county = \"Georgia\"",
"context": "CREATE TABLE Addresses (state_province_county VARCHAR)",
"question": "How many staff live in state Georgia?"
} |
### QUESTION
Return the ids of all products that were ordered more than three times or supplied more than 80000.
### CONTEXT
CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Suppliers (product_id VARCHAR, total_amount_purchased INTEGER)
### ANSWER
SELECT product_id F... | {
"answer": "SELECT product_id FROM Order_Items GROUP BY product_id HAVING COUNT(*) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING SUM(total_amount_purchased) > 80000",
"context": "CREATE TABLE Order_Items (product_id VARCHAR, total_amount_purchased INTEGER); CREATE TABLE Product_Supp... |
### QUESTION
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8%
### CONTEXT
CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR)
### ANSWER
SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = "Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%" | {
"answer": "SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = \"Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%\"",
"context": "CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR)",
"question": " how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) ... |
### QUESTION
What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0?
### CONTEXT
CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR)
### ANSWER
SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading... | {
"answer": "SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = \"224.0.0.0\"",
"context": "CREATE TABLE table_name_12 (size_of_rest_bit_field VARCHAR, leading_bits VARCHAR, start_address VARCHAR)",
"question": "What is the size of the rest bit field when the leading bit... |
### QUESTION
Tell me the average spectators for 2006-06-21 and time more than 21
### CONTEXT
CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)
### ANSWER
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21 | {
"answer": "SELECT AVG(spectators) FROM table_name_56 WHERE date = \"2006-06-21\" AND time_cet_ > 21",
"context": "CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)",
"question": "Tell me the average spectators for 2006-06-21 and time more than 21"
} |
### QUESTION
How many bronze numbers had a total of more than 4 when the rank is less than four, germany is involved, and there's less than 5 silver?
### CONTEXT
CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)
### ANSWER
SELECT COUNT(bronze) FROM table_name_67 ... | {
"answer": "SELECT COUNT(bronze) FROM table_name_67 WHERE total > 4 AND rank < 4 AND nation = \"germany\" AND silver < 5",
"context": "CREATE TABLE table_name_67 (bronze VARCHAR, silver VARCHAR, nation VARCHAR, total VARCHAR, rank VARCHAR)",
"question": "How many bronze numbers had a total of more than 4 when th... |
### QUESTION
Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .
### CONTEXT
CREATE TABLE car_makers (id VARCHAR, maker VARCHAR); CREATE TABLE model_list (maker VARCHAR, model VARCHAR); CREATE TABLE car_names (model VARCHAR)
### ANSWER
SELECT t1.id, t1.mak... | {
"answer": "SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker GROUP BY t1.id HAVING COUNT(*) >= 2 INTERSECT SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_names AS t3 ON t2.model = t3.model GROUP BY t1.id HAVING COUNT(*) > 3",
"c... |
### QUESTION
What is the lowest number of National University of Ireland that has a Cultural and Educational Panel of 0, and a Labour Panel smaller than 1?
### CONTEXT
CREATE TABLE table_name_49 (national_university_of_ireland INTEGER, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR)
### ANSWER
SELECT MI... | {
"answer": "SELECT MIN(national_university_of_ireland) FROM table_name_49 WHERE cultural_and_educational_panel = 0 AND labour_panel < 1",
"context": "CREATE TABLE table_name_49 (national_university_of_ireland INTEGER, cultural_and_educational_panel VARCHAR, labour_panel VARCHAR)",
"question": "What is the lowest... |
### QUESTION
What original air date has 5.85 u.s. viewers (million)?
### CONTEXT
CREATE TABLE table_27117365_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### ANSWER
SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = "5.85" | {
"answer": "SELECT original_air_date FROM table_27117365_1 WHERE us_viewers__million_ = \"5.85\"",
"context": "CREATE TABLE table_27117365_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)",
"question": "What original air date has 5.85 u.s. viewers (million)?"
} |
### QUESTION
What is the train name of the rail with a daily frequency and Jammutawi as the destination?
### CONTEXT
CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)
### ANSWER
SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = "daily" A... | {
"answer": "SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = \"daily\" AND destination = \"jammutawi\"",
"context": "CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR)",
"question": "What is the train name of the rail with a daily f... |
### QUESTION
What was the nominated work after 2006, that was awarded the Drama Desk award and the Outstanding featured actor in a musical?
### CONTEXT
CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)
### ANSWER
SELECT nominated_work FROM table_name_68 WHERE year > 20... | {
"answer": "SELECT nominated_work FROM table_name_68 WHERE year > 2006 AND award = \"drama desk award\" AND category = \"outstanding featured actor in a musical\"",
"context": "CREATE TABLE table_name_68 (nominated_work VARCHAR, category VARCHAR, year VARCHAR, award VARCHAR)",
"question": "What was the nominated... |
### QUESTION
Name the name for when overs bowled is 31.2
### CONTEXT
CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR)
### ANSWER
SELECT name FROM table_15700367_2 WHERE overs_bowled = "31.2" | {
"answer": "SELECT name FROM table_15700367_2 WHERE overs_bowled = \"31.2\"",
"context": "CREATE TABLE table_15700367_2 (name VARCHAR, overs_bowled VARCHAR)",
"question": "Name the name for when overs bowled is 31.2"
} |
### QUESTION
If the round is the semi-finals, what are the new entries this round?
### CONTEXT
CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)
### ANSWER
SELECT new_entries_this_round FROM table_1859269_1 WHERE round = "Semi-finals" | {
"answer": "SELECT new_entries_this_round FROM table_1859269_1 WHERE round = \"Semi-finals\"",
"context": "CREATE TABLE table_1859269_1 (new_entries_this_round VARCHAR, round VARCHAR)",
"question": "If the round is the semi-finals, what are the new entries this round?"
} |
### QUESTION
display the employee ID and job name for all those jobs in department 80.
### CONTEXT
CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, department_id VARCHAR)
### ANSWER
SELECT T1.employee_id, T2.job_title FROM employees AS T1 JOIN jobs AS... | {
"answer": "SELECT T1.employee_id, T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80",
"context": "CREATE TABLE jobs (job_title VARCHAR, job_id VARCHAR); CREATE TABLE employees (employee_id VARCHAR, job_id VARCHAR, department_id VARCHAR)",
"question": "display... |
### QUESTION
Who was the constitutional ticket when william karlin was the socialist ticket?
### CONTEXT
CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR)
### ANSWER
SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = "william karlin" | {
"answer": "SELECT constitutional_ticket FROM table_name_95 WHERE socialist_ticket = \"william karlin\"",
"context": "CREATE TABLE table_name_95 (constitutional_ticket VARCHAR, socialist_ticket VARCHAR)",
"question": "Who was the constitutional ticket when william karlin was the socialist ticket?"
} |
### QUESTION
What is Population, when Total Congregations is less than 4, and when % LDS is 0.54%?
### CONTEXT
CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)
### ANSWER
SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = "0.54... | {
"answer": "SELECT population FROM table_name_83 WHERE total_congregations < 4 AND _percentage_lds = \"0.54%\"",
"context": "CREATE TABLE table_name_83 (population VARCHAR, total_congregations VARCHAR, _percentage_lds VARCHAR)",
"question": "What is Population, when Total Congregations is less than 4, and when %... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.