answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT circuit FROM table_29686983_1 WHERE fastest_lap = "Sam Lowes" AND winning_rider = "Luca Scassa"
what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?
CREATE TABLE table_29686983_1 (circuit VARCHAR, fastest_lap VARCHAR, winning_rider VARCHAR)
SELECT score FROM table_name_43 WHERE surface = "carpet (i)" AND outcome = "winner" AND championship = "rotterdam, netherlands"
what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?
CREATE TABLE table_name_43 (score VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR)
SELECT area_km_2 FROM table_170958_2 WHERE official_name = "Hopewell"
What is the land area of Hopewell parish in km2?
CREATE TABLE table_170958_2 (area_km_2 VARCHAR, official_name VARCHAR)
SELECT MAX(year) FROM table_name_23 WHERE record = "18-12"
What's the highest Year with the Record of 18-12?
CREATE TABLE table_name_23 (year INTEGER, record VARCHAR)
SELECT region FROM table_name_5 WHERE name = "tv uskana"
What is the region for tv uskana?
CREATE TABLE table_name_5 (region VARCHAR, name VARCHAR)
SELECT COUNT(top_10) FROM table_name_61 WHERE top_25 > 6 AND wins < 2
How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?
CREATE TABLE table_name_61 (top_10 VARCHAR, top_25 VARCHAR, wins VARCHAR)
SELECT home_team AS score FROM table_name_87 WHERE away_team = "north melbourne"
What is the home teams score when north melbourne is the away team?
CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR)
SELECT playoffs FROM table_name_38 WHERE reg_season = "4th, central"
What was the Rampage's result in the playoffs in the year that their regular season resulted in 4th, central?
CREATE TABLE table_name_38 (playoffs VARCHAR, reg_season VARCHAR)
SELECT crude_death_rate FROM table_21258_1 WHERE deaths = "106 000"
Among deaths 106 000 how many is crude rate.
CREATE TABLE table_21258_1 (crude_death_rate VARCHAR, deaths VARCHAR)
SELECT province FROM table_1193568_1 WHERE member = "Dingley Brittin Category:Articles with hCards"
what's the province where member is dingley brittin category:articles with hcards
CREATE TABLE table_1193568_1 (province VARCHAR, member VARCHAR)
SELECT decision FROM table_27537518_9 WHERE record = "29-28-12"
Who made the decision on the game where the record was 29-28-12?
CREATE TABLE table_27537518_9 (decision VARCHAR, record VARCHAR)
SELECT tie_no FROM table_name_37 WHERE away_team = "crystal palace"
What is the Tie no when Crystal Palace is the Away team?
CREATE TABLE table_name_37 (tie_no VARCHAR, away_team VARCHAR)
SELECT collaboration FROM table_name_5 WHERE indication = "non-hodgkin lymphoma"
What company collaborated with non-hodgkin lymphoma?
CREATE TABLE table_name_5 (collaboration VARCHAR, indication VARCHAR)
SELECT COUNT(november_3) FROM table_25235489_2 WHERE january_15_16 = "January 15, 1991"
How many times does November 3rd occur when January 15, 1991 does?
CREATE TABLE table_25235489_2 (november_3 VARCHAR, january_15_16 VARCHAR)
SELECT label FROM table_name_39 WHERE format = "digital download" AND edition_s_ = "bonus tracks version"
Tell me the label for digital download for bonus tracks version
CREATE TABLE table_name_39 (label VARCHAR, format VARCHAR, edition_s_ VARCHAR)
SELECT venue FROM table_name_52 WHERE date = "21st"
Which Venue is listed under the Date of 21st?
CREATE TABLE table_name_52 (venue VARCHAR, date VARCHAR)
SELECT record_set FROM table_name_9 WHERE superlative = "youngest nominee"
Who set the record for youngest nominee?
CREATE TABLE table_name_9 (record_set VARCHAR, superlative VARCHAR)
SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval"
What is the score of the team that plays in lake oval?
CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR)
SELECT gold_coast FROM table_name_73 WHERE melbourne = "yes" AND perth = "no" AND adelaide = "yes"
What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no?
CREATE TABLE table_name_73 (gold_coast VARCHAR, adelaide VARCHAR, melbourne VARCHAR, perth VARCHAR)
SELECT MIN(laps) FROM table_name_45 WHERE time = "42:31.153" AND grid > 1
What is the fewest amount of laps when the grid was larger than 1 and 42:31.153?
CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT song FROM table_name_18 WHERE artist = "aleko berdzenishvili"
What is the name of Aleko Berdzenishvili's song?
CREATE TABLE table_name_18 (song VARCHAR, artist VARCHAR)
SELECT constructor FROM table_name_94 WHERE grid < 6 AND laps < 49
Who built the under grid 6 car with under 49 laps?
CREATE TABLE table_name_94 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT COUNT(attendance) FROM table_name_92 WHERE score = "1:2"
What is the total attendance of the match with a 1:2 score?
CREATE TABLE table_name_92 (attendance VARCHAR, score VARCHAR)
SELECT int_yds FROM table_name_68 WHERE team = "new orleans saints" AND sacks > 0 AND solo = 71
What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71?
CREATE TABLE table_name_68 (int_yds VARCHAR, solo VARCHAR, team VARCHAR, sacks VARCHAR)
SELECT COUNT(steals) FROM table_22824324_2 WHERE player = "Andy Kaufmann"
How many steals were the in games that andy kaufmann played?
CREATE TABLE table_22824324_2 (steals VARCHAR, player VARCHAR)
SELECT winner FROM table_name_92 WHERE city___state = "mallala , south australia" AND team = "elfin sports cars"
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?
CREATE TABLE table_name_92 (winner VARCHAR, city___state VARCHAR, team VARCHAR)
SELECT MAX(bronze) FROM table_name_13 WHERE nation = "united states" AND silver > 1
What is the highest number of bronze for the United States with more than 1 silver?
CREATE TABLE table_name_13 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT winners FROM table_name_29 WHERE venue = "vojens"
Who took the winning slot at the Vojens venue?
CREATE TABLE table_name_29 (winners VARCHAR, venue VARCHAR)
SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 7" AND game > 1
Where date is october 7 and game greater than 1, what is the highest attendance?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR, game VARCHAR)
SELECT MAX(year) FROM table_name_92 WHERE film_series = "over the rainbow"
What is the highest year that Kim was nominated for Over the Rainbow?
CREATE TABLE table_name_92 (year INTEGER, film_series VARCHAR)
SELECT away_team AS score FROM table_name_26 WHERE home_team = "hawthorn"
What was the away team score at Hawthorn?
CREATE TABLE table_name_26 (away_team VARCHAR, home_team VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE home_team = "footscray"
What was Footscray's score as the home team?
CREATE TABLE table_name_15 (home_team VARCHAR)
SELECT opponent FROM table_name_33 WHERE score = "35-14"
Who was the opponent at the game with a score of 35-14?
CREATE TABLE table_name_33 (opponent VARCHAR, score VARCHAR)
SELECT message FROM table_name_75 WHERE designation_hd = "hd 186408"
What message has hd 186408 as a designation HD?
CREATE TABLE table_name_75 (message VARCHAR, designation_hd VARCHAR)
SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'
Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.
CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR)
SELECT COUNT(average) FROM table_name_99 WHERE matches < 52 AND runs < 4564 AND wickets < 265
Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52
CREATE TABLE table_name_99 (average VARCHAR, wickets VARCHAR, matches VARCHAR, runs VARCHAR)
SELECT winning_score FROM table_name_55 WHERE tournament = "mynavi abc championship"
What was the Winning score for the Mynavi ABC Championship Tournament?
CREATE TABLE table_name_55 (winning_score VARCHAR, tournament VARCHAR)
SELECT MAX(population) FROM table_170958_2 WHERE area_km_2 = "276.84"
What is the maximum population of the land with an area of 276.84 km2?
CREATE TABLE table_170958_2 (population INTEGER, area_km_2 VARCHAR)
SELECT place FROM table_name_46 WHERE to_par = "e"
What place has a to par of E?
CREATE TABLE table_name_46 (place VARCHAR, to_par VARCHAR)
SELECT record FROM table_1233808_2 WHERE opponent = "Aylesbury United"
What records are hit where the opponent is Aylesbury United?
CREATE TABLE table_1233808_2 (record VARCHAR, opponent VARCHAR)
SELECT crowd FROM table_name_2 WHERE venue = "lake oval"
How many people were in the crowd at Lake Oval?
CREATE TABLE table_name_2 (crowd VARCHAR, venue VARCHAR)
SELECT barony FROM table_30120605_1 WHERE townland = "Mountcotton"
What is the barony of mountcotton?
CREATE TABLE table_30120605_1 (barony VARCHAR, townland VARCHAR)
SELECT event FROM table_name_88 WHERE date = 2009 AND opponent = "leonardo chocolate"
What was the event with leonardo chocolate in 2009?
CREATE TABLE table_name_88 (event VARCHAR, date VARCHAR, opponent VARCHAR)
SELECT team FROM table_name_37 WHERE qual_1 = "59.372"
What team has 59.372 for qual 1?
CREATE TABLE table_name_37 (team VARCHAR, qual_1 VARCHAR)
SELECT visitor FROM table_name_59 WHERE date = "march 16"
Who is the Visitor on march 16?
CREATE TABLE table_name_59 (visitor VARCHAR, date VARCHAR)
SELECT MAX(revenue__) AS €million_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.19"
Name the revenue for eps being 1.19
CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR)
SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "4"
Which date has a Terrain of plain stage, and a Stage of 4?
CREATE TABLE table_name_34 (date VARCHAR, terrain VARCHAR, stage VARCHAR)
SELECT date_of_appointment FROM table_27091128_2 WHERE replaced_by = "Ergün Penbe"
What was date of appointment for Ergün Penbe?
CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT margin FROM table_name_50 WHERE country = "united states" AND score = 63 - 70 - 65 - 69 = 267
Which Margin has a Country of united states, and a Score of 63-70-65-69=267?
CREATE TABLE table_name_50 (margin VARCHAR, country VARCHAR, score VARCHAR)
SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop"
What are the names of the workshop groups that have bookings with status code "stop"?
CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)
SELECT AVG(total) FROM table_name_26 WHERE player = "tiger woods"
What is the average total for Tiger Woods?
CREATE TABLE table_name_26 (total INTEGER, player VARCHAR)
SELECT competition FROM table_name_42 WHERE year < 1987
What was the competition earlier than 1987?
CREATE TABLE table_name_42 (competition VARCHAR, year INTEGER)
SELECT college FROM table_name_72 WHERE round < 4
The draft pick that was taken before round 4 went to what college?
CREATE TABLE table_name_72 (college VARCHAR, round INTEGER)
SELECT tournament FROM table_name_75 WHERE score = "6–4, 6–4"
Which Tournament has a Score of 6–4, 6–4?
CREATE TABLE table_name_75 (tournament VARCHAR, score VARCHAR)
SELECT MAX(tonnage) FROM table_name_73 WHERE flag = "canada"
What is the Tonnage of the ship from Canada?
CREATE TABLE table_name_73 (tonnage INTEGER, flag VARCHAR)
SELECT athlete FROM table_name_7 WHERE fastest_time__s_ = 15.82
Which athlete has the fastest time of 15.82?
CREATE TABLE table_name_7 (athlete VARCHAR, fastest_time__s_ VARCHAR)
SELECT COUNT(wins) FROM table_name_4 WHERE avg_start < 25
How many wins for average start less than 25?
CREATE TABLE table_name_4 (wins VARCHAR, avg_start INTEGER)
SELECT name FROM table_name_23 WHERE location = "dz"
What is Name, when Location is "DZ"?
CREATE TABLE table_name_23 (name VARCHAR, location VARCHAR)
SELECT winning_score FROM table_name_20 WHERE date = "16 may 1993"
What is the winning score of the tournament on 16 May 1993?
CREATE TABLE table_name_20 (winning_score VARCHAR, date VARCHAR)
SELECT obama_percentage FROM table_20799905_1 WHERE mccain_percentage = "52.8%"
What percentage did Obama get when McCain got 52.8%?
CREATE TABLE table_20799905_1 (obama_percentage VARCHAR, mccain_percentage VARCHAR)
SELECT position FROM table_name_61 WHERE player = "chad hutchinson"
Which position has a Player of chad hutchinson?
CREATE TABLE table_name_61 (position VARCHAR, player VARCHAR)
SELECT result FROM table_name_87 WHERE film = "dharma chakram" AND award = "nandi award for best actor"
What is Result, when Film is "Dharma Chakram", and when Award is "Nandi Award for Best Actor"?
CREATE TABLE table_name_87 (result VARCHAR, film VARCHAR, award VARCHAR)
SELECT 2001 FROM table_name_17 WHERE category = "1.4litre to 1.8litre"
Which car won the 1.4litre to 1.8litre award in 2001?
CREATE TABLE table_name_17 (category VARCHAR)
SELECT dept_name FROM department ORDER BY budget LIMIT 1
Which department has the lowest budget?
CREATE TABLE department (dept_name VARCHAR, budget VARCHAR)
SELECT MIN(enrollment) FROM table_name_8 WHERE mascot = "trojans"
What's the least enrolled when the mascot was the Trojans?
CREATE TABLE table_name_8 (enrollment INTEGER, mascot VARCHAR)
SELECT MIN(Champions) AS league FROM table_17505751_5
In the Champions league, what is the Minimum
CREATE TABLE table_17505751_5 (Champions INTEGER)
SELECT COUNT(rank) FROM table_name_6 WHERE opposition = "tipperary"
What is the total rank of the match with tipperary as the opposition?
CREATE TABLE table_name_6 (rank VARCHAR, opposition VARCHAR)
SELECT party FROM table_2668243_22 WHERE result = "Re-elected" AND district = "South Carolina 7"
What "party" was re-elected in district South Carolina 7?
CREATE TABLE table_2668243_22 (party VARCHAR, result VARCHAR, district VARCHAR)
SELECT MAX(track) FROM table_name_15 WHERE time = "1:54" AND writer_s_ = "gene autry and oakley haldeman"
What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?
CREATE TABLE table_name_15 (track INTEGER, time VARCHAR, writer_s_ VARCHAR)
SELECT country_of_origin FROM table_name_81 WHERE artist = "journey"
Name th country of origin for journey
CREATE TABLE table_name_81 (country_of_origin VARCHAR, artist VARCHAR)
SELECT place FROM table_name_13 WHERE score = 68 - 73 - 66 - 74 = 281
What is the Place of the Player with a Score of 68-73-66-74=281?
CREATE TABLE table_name_13 (place VARCHAR, score VARCHAR)
SELECT MAX(fab___nm__) FROM table_26860595_2
What was the maximum fab (nm)?
CREATE TABLE table_26860595_2 (fab___nm__ INTEGER)
SELECT tracking_method FROM table_name_14 WHERE latest_stable_release = "2.23-05"
Which tracking method has a latest stable release of 2.23-05?
CREATE TABLE table_name_14 (tracking_method VARCHAR, latest_stable_release VARCHAR)
SELECT team FROM table_name_85 WHERE points = "71" AND f_laps = "4"
Which team has 71 Points and F/Laps of 4?
CREATE TABLE table_name_85 (team VARCHAR, points VARCHAR, f_laps VARCHAR)
SELECT country FROM table_name_61 WHERE time = "8:03.61"
What country has a time of 8:03.61?
CREATE TABLE table_name_61 (country VARCHAR, time VARCHAR)
SELECT segment_d FROM table_15187735_1 WHERE segment_b = "Jeans"
What was segment D when segment B was jeans?
CREATE TABLE table_15187735_1 (segment_d VARCHAR, segment_b VARCHAR)
SELECT SUM(goal_difference) FROM table_name_22 WHERE losses < 9 AND draws = 8 AND points > 40
How much Goal Difference has less than 9 Losses, and 8 Draws, and more than 40 points?
CREATE TABLE table_name_22 (goal_difference INTEGER, points VARCHAR, losses VARCHAR, draws VARCHAR)
SELECT AVG(Product_Price) FROM Products
What is the average price for products?
CREATE TABLE Products (Product_Price INTEGER)
SELECT MAX(rank) FROM table_22014431_3 WHERE tosses_pyramids = "64.5"
What is the rank when 64.5 is tosses/pyramids?
CREATE TABLE table_22014431_3 (rank INTEGER, tosses_pyramids VARCHAR)
SELECT written_by FROM table_21831229_3 WHERE no_in_series = 31
Who wrote episode 31 in the series?
CREATE TABLE table_21831229_3 (written_by VARCHAR, no_in_series VARCHAR)
SELECT location FROM table_name_63 WHERE runner_up = "ed c. kingsley" AND year = "1939"
What is the location where ed c. kingsley was the runner-up in 1939?
CREATE TABLE table_name_63 (location VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT time FROM table_name_66 WHERE lane = 5 AND name = "domenico fioravanti"
What was Domenico Fioravanti's time on lane 5?
CREATE TABLE table_name_66 (time VARCHAR, lane VARCHAR, name VARCHAR)
SELECT district FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar"
In which district is Robert W. Edgar the incumbent?
CREATE TABLE table_1341598_39 (district VARCHAR, incumbent VARCHAR)
SELECT cerclis_id FROM table_name_49 WHERE listed = "10/14/1992"
What CERCLIS ID was listed 10/14/1992?
CREATE TABLE table_name_49 (cerclis_id VARCHAR, listed VARCHAR)
SELECT district_name FROM table_22665117_1 WHERE dist_id = 74907
If the district ID is 74907, what is the name of the district?
CREATE TABLE table_22665117_1 (district_name VARCHAR, dist_id VARCHAR)
SELECT AVG(year) FROM table_name_32 WHERE ship = "europa" AND dates = "14 – 23 october"
What year did the ship Europa, have the dates of 14 – 23 October?
CREATE TABLE table_name_32 (year INTEGER, ship VARCHAR, dates VARCHAR)
SELECT opponent FROM table_name_19 WHERE attendance = "58,836"
What is Opponent, when Attendance is 58,836?
CREATE TABLE table_name_19 (opponent VARCHAR, attendance VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia park"
What was the home team's score at kardinia park?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT country FROM table_name_2 WHERE score = 74 - 70 = 144
What country has a score of 74-70=144
CREATE TABLE table_name_2 (country VARCHAR, score VARCHAR)
SELECT party FROM table_name_70 WHERE member = "hon paul keating"
What is Hon Paul Keating's Party?
CREATE TABLE table_name_70 (party VARCHAR, member VARCHAR)
SELECT fcc_info FROM table_name_84 WHERE frequency_mhz > 102.3
Which FCC info has a Frequency MHz larger than 102.3?
CREATE TABLE table_name_84 (fcc_info VARCHAR, frequency_mhz INTEGER)
SELECT no_in_series FROM table_17482534_1 WHERE production_code = "5016/5017"
What number in the series are the episodes with production code 5016/5017?
CREATE TABLE table_17482534_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT MIN(area_km_2) FROM table_name_21 WHERE population > 1 OFFSET 395
What is Area km 2, when Population is greater than 1,395?
CREATE TABLE table_name_21 (area_km_2 INTEGER, population INTEGER)
SELECT AVG(crowd) FROM table_name_91 WHERE venue = "western oval"
What's the average crowd size when the venue is western oval?
CREATE TABLE table_name_91 (crowd INTEGER, venue VARCHAR)
SELECT home_team FROM table_name_88 WHERE date = "27 june 1981" AND venue = "vfl park"
What team was the home team on 27 june 1981, at vfl park?
CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT AVG(position) FROM table_name_53 WHERE team = "ypiranga-sp" AND lost < 7
What is team ypiranga-sp's average position when they lost by less than 7?
CREATE TABLE table_name_53 (position INTEGER, team VARCHAR, lost VARCHAR)
SELECT geez FROM table_26919_7 WHERE proto_semitic = "*bayt-"
If the proto-semitic is *bayt-, what are the geez?
CREATE TABLE table_26919_7 (geez VARCHAR, proto_semitic VARCHAR)
SELECT high_assists FROM table_17311759_7 WHERE date = "February 4"
who made high assists on february 4
CREATE TABLE table_17311759_7 (high_assists VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM addresses WHERE country = 'USA'
How many addresses are there in country USA?
CREATE TABLE addresses (country VARCHAR)
SELECT location FROM table_11622562_1 WHERE tournament = "GTE Suncoast Classic"
Where was the GTE Suncoast Classic tournament held?
CREATE TABLE table_11622562_1 (location VARCHAR, tournament VARCHAR)