question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
In what country was the car with the čz 171cc engine?
CREATE TABLE table_name_34 (country VARCHAR, engine_make_capacity VARCHAR)
SELECT country FROM table_name_34 WHERE engine_make_capacity = "čz 171cc"
What is the height of Josh Tabb?
CREATE TABLE table_name_28 (height VARCHAR, name VARCHAR)
SELECT height FROM table_name_28 WHERE name = "josh tabb"
What segment A is associated with a Segment D of manual motorcycle transmissions?
CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR)
SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"
What is varricchio's status?
CREATE TABLE table_name_75 (status VARCHAR, authors VARCHAR)
SELECT status FROM table_name_75 WHERE authors = "varricchio"
How many dates had an average speed of 102.003?
CREATE TABLE table_2175858_1 (date VARCHAR, average_speed__mph_ VARCHAR)
SELECT COUNT(date) FROM table_2175858_1 WHERE average_speed__mph_ = "102.003"
What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?
CREATE TABLE table_10592536_8 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT date_of_vacancy FROM table_10592536_8 WHERE date_of_appointment = "28 November 2007" AND replaced_by = "Alex McLeish"
What is the highest number of losses where a team scored more than 45 goals and had 32 against?
CREATE TABLE table_name_23 (losses INTEGER, goals_against VARCHAR, goals_for VARCHAR)
SELECT MAX(losses) FROM table_name_23 WHERE goals_against = 32 AND goals_for > 45
At the venue of panama city, on 11 Febrero 2006, how many goals were scored?
CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR)
SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006"
What are all values for 24 mountains when direction is Northeast?
CREATE TABLE table_23406517_2 (direction VARCHAR)
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast"
What is Elise Norwood's Pos.?
CREATE TABLE table_name_41 (pos VARCHAR, name VARCHAR)
SELECT pos FROM table_name_41 WHERE name = "elise norwood"
What is the number drawn when the try BP is 1?
CREATE TABLE table_name_79 (drawn VARCHAR, try_bp VARCHAR)
SELECT drawn FROM table_name_79 WHERE try_bp = "1"
What percentage was the others vote when McCain had 52.9% and less than 45205.0 voters?
CREATE TABLE table_20693870_1 (others_percentage VARCHAR, mccain_percentage VARCHAR, mccain_number VARCHAR)
SELECT others_percentage FROM table_20693870_1 WHERE mccain_percentage = "52.9%" AND mccain_number < 45205.0
How many analogue satellite channels does Sky [Analogue] have?
CREATE TABLE table_name_87 (no_of_channels VARCHAR, transmission VARCHAR, provider VARCHAR)
SELECT no_of_channels FROM table_name_87 WHERE transmission = "analogue satellite" AND provider = "sky [analogue]"
What was the position in 1959-1960 for the Sporting De Braga club?
CREATE TABLE table_name_19 (position_in_1959_1960 VARCHAR, clubs VARCHAR)
SELECT position_in_1959_1960 FROM table_name_19 WHERE clubs = "sporting de braga"
What was the record when Minnesota was the visiting team?
CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_68 WHERE visitor = "minnesota"
When did the VFL pay at Victoria Park?
CREATE TABLE table_name_17 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_17 WHERE venue = "victoria park"
Which district had SC reserved and 169 Constituents?
CREATE TABLE table_name_2 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT district FROM table_name_2 WHERE reserved_for___sc___st__none_ = "sc" AND constituency_number = "169"
How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?
CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR)
SELECT wins FROM table_name_77 WHERE flags > 6 AND draws > 10 AND club = "south warrnambool"
The OMEGA transmitter Chabrier has what country listed?
CREATE TABLE table_name_59 (country VARCHAR, structure VARCHAR)
SELECT country FROM table_name_59 WHERE structure = "omega transmitter chabrier"
What is the original air date for episode 15 of season 6?
CREATE TABLE table_10718868_2 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT original_air_date FROM table_10718868_2 WHERE no_in_season = 15
If grid is 2, what is the minimum fin. pos number?
CREATE TABLE table_17330069_1 (fin_pos INTEGER, grid VARCHAR)
SELECT MIN(fin_pos) FROM table_17330069_1 WHERE grid = 2
Which Pick has a College of ohio state?
CREATE TABLE table_name_22 (pick INTEGER, college VARCHAR)
SELECT MIN(pick) FROM table_name_22 WHERE college = "ohio state"
Name all of Jason's teams that appeared on episode 6x02?
CREATE TABLE table_23292220_6 (jasons_team VARCHAR, episode VARCHAR)
SELECT jasons_team FROM table_23292220_6 WHERE episode = "6x02"
What is the elevation (m) of the Mount Wilhelm peak?
CREATE TABLE table_18946749_2 (elevation__m_ INTEGER, peak VARCHAR)
SELECT MAX(elevation__m_) FROM table_18946749_2 WHERE peak = "Mount Wilhelm"
Name the wickets for overs bowled being 15
CREATE TABLE table_15700367_2 (wickets VARCHAR, overs_bowled VARCHAR)
SELECT wickets FROM table_15700367_2 WHERE overs_bowled = "15"
What Label has a Catalog of 486 136-2?
CREATE TABLE table_name_13 (label VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_13 WHERE catalog = "486 136-2"
What is the average episode number with q146 format?
CREATE TABLE table_name_26 (episode__number INTEGER, format__number VARCHAR)
SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146"
On what date did Epic label start its release?
CREATE TABLE table_name_3 (release_date INTEGER, label VARCHAR)
SELECT SUM(release_date) FROM table_name_3 WHERE label = "epic"
Name the segment D for umbrellas
CREATE TABLE table_name_60 (segment_d VARCHAR, segment_a VARCHAR)
SELECT segment_d FROM table_name_60 WHERE segment_a = "umbrellas"
What is the average number of draws that have a total of 1 and a goal difference of 2:0?
CREATE TABLE table_name_67 (draws INTEGER, total VARCHAR, goal_difference VARCHAR)
SELECT AVG(draws) FROM table_name_67 WHERE total = 1 AND goal_difference = "2:0"
What's the Outcome for the Date of July 16, 2011?
CREATE TABLE table_name_76 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_76 WHERE date = "july 16, 2011"
Who had the most assists and how many did they have on October 7?
CREATE TABLE table_27722408_2 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_27722408_2 WHERE date = "October 7"
What percentage of users were using Internet Explorer during the period in which 2.1% were using mobile browsers?
CREATE TABLE table_name_66 (internet_explorer VARCHAR, mobile VARCHAR)
SELECT internet_explorer FROM table_name_66 WHERE mobile = "2.1%"
Who was the opponent in week 4?
CREATE TABLE table_14875671_1 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_14875671_1 WHERE week = 4
Name the fifth district for steve rudoni
CREATE TABLE table_15442974_1 (fifth_district VARCHAR, fourth_district VARCHAR)
SELECT fifth_district FROM table_15442974_1 WHERE fourth_district = "Steve Rudoni"
What are the highest points for Justin Lofton when his top 10 is lower than 5?
CREATE TABLE table_name_14 (points INTEGER, driver VARCHAR, top_10 VARCHAR)
SELECT MAX(points) FROM table_name_14 WHERE driver = "justin lofton" AND top_10 < 5
How many categories are there when the attribute is "onreset"?
CREATE TABLE table_1507852_1 (category VARCHAR, attribute VARCHAR)
SELECT COUNT(category) FROM table_1507852_1 WHERE attribute = "onreset"
What is Surface, when Tournament is "Sunderland , United Kingdom"?
CREATE TABLE table_name_4 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_4 WHERE tournament = "sunderland , united kingdom"
what is the feature named bird ridge?
CREATE TABLE table_name_60 (feature VARCHAR, name VARCHAR)
SELECT feature FROM table_name_60 WHERE name = "bird ridge"
Can you tell me the average Chapter that has Articles smaller than 15?
CREATE TABLE table_name_48 (chapter INTEGER, articles INTEGER)
SELECT AVG(chapter) FROM table_name_48 WHERE articles < 15
What is the city of license with an ERP W less than 170?
CREATE TABLE table_name_15 (city_of_license VARCHAR, erp_w INTEGER)
SELECT city_of_license FROM table_name_15 WHERE erp_w < 170
What was the average speed where the total time was 1:30.4842?
CREATE TABLE table_23018775_3 (avg_speed VARCHAR, total_time VARCHAR)
SELECT avg_speed FROM table_23018775_3 WHERE total_time = "1:30.4842"
what is the minimumfor 5wi?
CREATE TABLE table_28846752_5 (Id VARCHAR)
SELECT MIN(5 AS wi) FROM table_28846752_5
What was the score from the king's cup 2000?
CREATE TABLE table_name_31 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_31 WHERE competition = "king's cup 2000"
List the number of runners up when albertina fransisca mailoa won the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT COUNT(3 AS rd_runner_up) FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
Retrieve all the last names of authors in alphabetical order.
CREATE TABLE authors (lname VARCHAR)
SELECT lname FROM authors ORDER BY lname
What consoles was Shenmue released on?
CREATE TABLE table_12887260_1 (console VARCHAR, franchise_or_game VARCHAR)
SELECT console FROM table_12887260_1 WHERE franchise_or_game = "Shenmue"
Which date did 64,443 people attend a game?
CREATE TABLE table_name_47 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_47 WHERE attendance = "64,443"
What are all types where registration is HB-OPU?
CREATE TABLE table_22180353_1 (type VARCHAR, registration VARCHAR)
SELECT type FROM table_22180353_1 WHERE registration = "HB-OPU"
What is the average weight of Jeremy Case, who plays guard?
CREATE TABLE table_name_63 (weight INTEGER, position VARCHAR, name VARCHAR)
SELECT AVG(weight) FROM table_name_63 WHERE position = "guard" AND name = "jeremy case"
What is the maximum total wins he had for any year?
CREATE TABLE table_22839669_12 (total_wins INTEGER)
SELECT MAX(total_wins) FROM table_22839669_12
Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.
CREATE TABLE shop (LOCATION VARCHAR, Open_Year INTEGER)
SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008
What is the L when the W is 4?
CREATE TABLE table_29565120_2 (l INTEGER, w VARCHAR)
SELECT MIN(l) FROM table_29565120_2 WHERE w = 4
What is the percentage of registered voters in which the d-r spread is +10.4%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+10.4%"
What year was the BBC two total viewing 7,530,000?
CREATE TABLE table_103084_4 (year INTEGER, bbc_two_total_viewing VARCHAR)
SELECT MIN(year) FROM table_103084_4 WHERE bbc_two_total_viewing = "7,530,000"
what is the apparent magnitude of the constellation sculptor
CREATE TABLE table_name_24 (apparent_magnitude VARCHAR, constellation VARCHAR)
SELECT COUNT(apparent_magnitude) FROM table_name_24 WHERE constellation = "sculptor"
What is Affiliation, when Nickname is Bulldogs?
CREATE TABLE table_name_4 (affiliation VARCHAR, nickname VARCHAR)
SELECT affiliation FROM table_name_4 WHERE nickname = "bulldogs"
What is the gender of the cunningham hill infant school?
CREATE TABLE table_28523_2 (gender VARCHAR, school VARCHAR)
SELECT gender FROM table_28523_2 WHERE school = "Cunningham Hill Infant school"
In what year was Phil J. Welch first elected?
CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1342198_25 WHERE incumbent = "Phil J. Welch"
WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1?
CREATE TABLE table_name_5 (tournament VARCHAR)
SELECT tournament FROM table_name_5 WHERE 2010 = "a" AND 2009 = "a" AND 2011 = "q1"
Name the segment c for couscous
CREATE TABLE table_15187735_3 (segment_c VARCHAR, segment_b VARCHAR)
SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Couscous"
Name the airport with IATA of dmk
CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_74 WHERE iata = "dmk"
How many 2011 1H values have a 2006 of 27.4 and 2007 over 27.7?
CREATE TABLE table_name_9 (Id VARCHAR)
SELECT COUNT(2011 AS _1h) FROM table_name_9 WHERE 2006 = 27.4 AND 2007 > 27.7
What is the per capita income of the county with a median family income of $40,492?
CREATE TABLE table_name_61 (per_capita_income VARCHAR, median_family_income VARCHAR)
SELECT per_capita_income FROM table_name_61 WHERE median_family_income = "$40,492"
What is the average prominence in m of pietrosul rodnei peak, which has an elevation less than 2,303?
CREATE TABLE table_name_48 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
SELECT AVG(prominence__m_) FROM table_name_48 WHERE peak = "pietrosul rodnei" AND elevation__m_ < 2 OFFSET 303
What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6?
CREATE TABLE table_name_41 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_41 WHERE outcome = "runner-up" AND score = "4–6, 3–6"
How many pick #'s have james britt as the name, with a round greater than 2?
CREATE TABLE table_name_91 (pick__number VARCHAR, name VARCHAR, round VARCHAR)
SELECT COUNT(pick__number) FROM table_name_91 WHERE name = "james britt" AND round > 2
Tell me the 2004 for 2012 of 21
CREATE TABLE table_name_61 (Id VARCHAR)
SELECT 2004 FROM table_name_61 WHERE 2012 = "21"
What date was the Home team fitzroy?
CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_18 WHERE home_team = "fitzroy"
for the no. 7 what is the date of birth
CREATE TABLE table_27998152_1 (date_of_birth VARCHAR, no VARCHAR)
SELECT date_of_birth FROM table_27998152_1 WHERE no = 7
Who is the race caller for the year 1994?
CREATE TABLE table_22514845_3 (race_caller VARCHAR, year VARCHAR)
SELECT race_caller FROM table_22514845_3 WHERE year = 1994
How many different players does the Washington Redskins have?
CREATE TABLE table_27132791_3 (player VARCHAR, nfl_team VARCHAR)
SELECT COUNT(player) FROM table_27132791_3 WHERE nfl_team = "Washington Redskins"
What team had 1:34.578 in Qual 2?
CREATE TABLE table_name_55 (team VARCHAR, qual_2 VARCHAR)
SELECT team FROM table_name_55 WHERE qual_2 = "1:34.578"
When the team had more than 46 wins, what were the average losses?
CREATE TABLE table_name_13 (losses INTEGER, wins INTEGER)
SELECT AVG(losses) FROM table_name_13 WHERE wins > 46
Which Language Director of nagisa oshima use in his film?
CREATE TABLE table_name_54 (language VARCHAR, director VARCHAR)
SELECT language FROM table_name_54 WHERE director = "nagisa oshima"
What is the home team of the game on February 3?
CREATE TABLE table_name_72 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_72 WHERE date = "february 3"
What is the score for the away team, Ipswich Town?
CREATE TABLE table_name_6 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_6 WHERE away_team = "ipswich town"
How many stores are there?
CREATE TABLE store (Id VARCHAR)
SELECT COUNT(*) FROM store
What is Dennis Kucinich, when Classification is "Democrat"?
CREATE TABLE table_name_48 (dennis_kucinich VARCHAR, classification VARCHAR)
SELECT dennis_kucinich FROM table_name_48 WHERE classification = "democrat"
Which city had a gross revenue in 2011 of $739,578?
CREATE TABLE table_name_92 (city VARCHAR, gross_revenue__2011_ VARCHAR)
SELECT city FROM table_name_92 WHERE gross_revenue__2011_ = "$739,578"
List member names and their party names.
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE Member (member_name VARCHAR, party_id VARCHAR)
SELECT T1.member_name, T2.party_name FROM Member AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id
What's the average goal ratio with Goals larger than 1, Games larger than 161, and a Debut in Europe smaller than 1985?
CREATE TABLE table_name_71 (goal_ratio INTEGER, debut_in_europe VARCHAR, goals VARCHAR, games VARCHAR)
SELECT AVG(goal_ratio) FROM table_name_71 WHERE goals > 1 AND games > 161 AND debut_in_europe < 1985
How many different variants are there for Northern Counties bodybuilder?
CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR)
SELECT COUNT(variant) FROM table_28035004_1 WHERE bodybuilder = "Northern Counties"
What type had an election day in 1980
CREATE TABLE table_1602620_1 (type VARCHAR, elected VARCHAR)
SELECT type FROM table_1602620_1 WHERE elected = 1980
what is the lowest total when the rank is less than 2 and bronze is more than 0?
CREATE TABLE table_name_30 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT MIN(total) FROM table_name_30 WHERE rank < 2 AND bronze > 0
How many points does the year after 1986 with a AGS JH23B chassis have?
CREATE TABLE table_name_52 (points VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT points FROM table_name_52 WHERE year > 1986 AND chassis = "ags jh23b"
What is Series, when Winner is Jetmir Salaj?
CREATE TABLE table_name_54 (series VARCHAR, winner VARCHAR)
SELECT series FROM table_name_54 WHERE winner = "jetmir salaj"
What is the county where kerry# is 59740?
CREATE TABLE table_1302886_1 (county VARCHAR, kerry_number VARCHAR)
SELECT county FROM table_1302886_1 WHERE kerry_number = 59740
What are the dates of the assessment notes?
CREATE TABLE Assessment_Notes (date_of_notes VARCHAR)
SELECT date_of_notes FROM Assessment_Notes
Who was the lead with John Shuster as skip, Chris Plys in second, and Jeff Isaacson in third?
CREATE TABLE table_name_50 (lead VARCHAR, second VARCHAR, skip VARCHAR, third VARCHAR)
SELECT lead FROM table_name_50 WHERE skip = "john shuster" AND third = "jeff isaacson" AND second = "chris plys"
Which Points has a Position of 3, and a Drawn smaller than 2?
CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR)
SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2
What are the names of the tourist attractions that can be accessed by bus?
CREATE TABLE TOURIST_ATTRACTIONS (Name VARCHAR, How_to_Get_There VARCHAR)
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"
What To par scored 72-71-68=211?
CREATE TABLE table_name_29 (to_par VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_29 WHERE score = 72 - 71 - 68 = 211
What country had 20% imports from russia?
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_of_imports_from_russia VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = "20%"
What party was Tony P. Hall affiliated with?
CREATE TABLE table_1341586_36 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341586_36 WHERE incumbent = "Tony P. Hall"
What was the opponents score when Geelong played as home team?
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_99 WHERE home_team = "geelong"
Name the date for week 9
CREATE TABLE table_15607589_2 (date VARCHAR, week VARCHAR)
SELECT date FROM table_15607589_2 WHERE week = 9
What's the report for the mosport park circuit?
CREATE TABLE table_name_67 (report VARCHAR, circuit VARCHAR)
SELECT report FROM table_name_67 WHERE circuit = "mosport park"
What team started in grid 11?
CREATE TABLE table_name_2 (team VARCHAR, grid VARCHAR)
SELECT team FROM table_name_2 WHERE grid = "11"
What rank has 0 as the bronze, and a total less than 3, with north korea as the nation?
CREATE TABLE table_name_56 (rank VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT rank FROM table_name_56 WHERE bronze = 0 AND total < 3 AND nation = "north korea"