question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the Label of the release on April 24, 2009 in Germany?
CREATE TABLE table_name_2 (label VARCHAR, region VARCHAR, date VARCHAR)
SELECT label FROM table_name_2 WHERE region = "germany" AND date = "april 24, 2009"
What is the score when a loss was listed with Lannan (4-8)?
CREATE TABLE table_name_48 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_48 WHERE loss = "lannan (4-8)"
what is the natural change (per 1000) when the live births 1 is 278 977?
CREATE TABLE table_name_73 (natural_change__per_1000_ VARCHAR, live_births_1 VARCHAR)
SELECT natural_change__per_1000_ FROM table_name_73 WHERE live_births_1 = "278 977"
Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?
CREATE TABLE table_name_97 (interview_subject VARCHAR)
SELECT 20 AS _questions FROM table_name_97 WHERE interview_subject = "camille paglia"
who had high assists on november 12?
CREATE TABLE table_27756314_6 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_27756314_6 WHERE date = "November 12"
What country has the order number 711871-711880?
CREATE TABLE table_2351952_1 (country VARCHAR, order_number VARCHAR)
SELECT country FROM table_2351952_1 WHERE order_number = "711871-711880"
In what year was the score 7–5, 7–6 (7–5)?
CREATE TABLE table_2516282_3 (year VARCHAR, score VARCHAR)
SELECT year FROM table_2516282_3 WHERE score = "7–5, 7–6 (7–5)"
What number (#) is associated with the Name Ron Baxter?
CREATE TABLE table_12032893_1 (_number VARCHAR, name VARCHAR)
SELECT COUNT(_number) FROM table_12032893_1 WHERE name = "Ron Baxter"
What is the score of the Tournament named danny thomas memphis classic?
CREATE TABLE table_name_23 (score VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_23 WHERE tournament = "danny thomas memphis classic"
Who's the head coach of the team with a price of $3.22 million?
CREATE TABLE table_19905183_1 (head_coach VARCHAR, price VARCHAR)
SELECT head_coach FROM table_19905183_1 WHERE price = "$3.22 million"
What name shows as private authority and hibiscus and bays local board ?
CREATE TABLE table_name_70 (name VARCHAR, authority VARCHAR, local_board VARCHAR)
SELECT name FROM table_name_70 WHERE authority = "private" AND local_board = "hibiscus and bays"
What is the total number of Wins, when Draws is less than 2?
CREATE TABLE table_name_48 (wins VARCHAR, draws INTEGER)
SELECT COUNT(wins) FROM table_name_48 WHERE draws < 2
Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?
CREATE TABLE table_name_53 (artist VARCHAR, mintage__proof_ VARCHAR, year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)
SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = "n/a" AND year > 2004 AND mintage__proof_ = "25,000"
What team was in position OL?
CREATE TABLE table_20170644_1 (cfl_team VARCHAR, position VARCHAR)
SELECT cfl_team FROM table_20170644_1 WHERE position = "OL"
Show the location codes with at least 3 documents.
CREATE TABLE Document_locations (location_code VARCHAR)
SELECT location_code FROM Document_locations GROUP BY location_code HAVING COUNT(*) >= 3
How many have been played for 362 points?
CREATE TABLE table_17510803_2 (played VARCHAR, points_for VARCHAR)
SELECT played FROM table_17510803_2 WHERE points_for = "362"
What is the tie number when the home team is Port Vale?
CREATE TABLE table_name_72 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_72 WHERE home_team = "port vale"
Who used the Honda Engine for all the races?
CREATE TABLE table_name_34 (team VARCHAR, engine VARCHAR, races VARCHAR)
SELECT team FROM table_name_34 WHERE engine = "honda" AND races = "all"
What are the nationality of the players on the Fresno State school/club team?
CREATE TABLE table_10015132_9 (nationality VARCHAR, school_club_team VARCHAR)
SELECT nationality FROM table_10015132_9 WHERE school_club_team = "Fresno State"
Name the Visitor that has a Home of chicago black hawks on april 20?
CREATE TABLE table_name_74 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_74 WHERE home = "chicago black hawks" AND date = "april 20"
What is the molecular target listed under the trademark of irvalec ®
CREATE TABLE table_12715053_1 (molecular_target VARCHAR, trademark VARCHAR)
SELECT molecular_target FROM table_12715053_1 WHERE trademark = "Irvalec ®"
What is the Finish for the 1950–51? season?
CREATE TABLE table_name_22 (finish VARCHAR, season VARCHAR)
SELECT finish FROM table_name_22 WHERE season = "1950–51"
Who directed the show that was viewed by 2.06 million U.S. people?
CREATE TABLE table_11694832_1 (directed_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT directed_by FROM table_11694832_1 WHERE us_viewers__millions_ = "2.06"
List all results in elections with Richard Baker as the incumbent.
CREATE TABLE table_1341472_20 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341472_20 WHERE incumbent = "Richard Baker"
Name the maximum number of disc for bill gereghty
CREATE TABLE table_15430606_1 (no_disc INTEGER, directed_by VARCHAR)
SELECT MAX(no_disc) FROM table_15430606_1 WHERE directed_by = "Bill Gereghty"
Which Date had a Result of 7–20?
CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_37 WHERE result = "7–20"
what's the district with result being new seat democratic gain
CREATE TABLE table_1341604_10 (district VARCHAR, result VARCHAR)
SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain"
Find the name and flag of ships that are not steered by any captain with Midshipman rank.
CREATE TABLE captain (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR); CREATE TABLE ship (name VARCHAR, flag VARCHAR, ship_id VARCHAR, rank VARCHAR)
SELECT name, flag FROM ship WHERE NOT ship_id IN (SELECT ship_id FROM captain WHERE rank = 'Midshipman')
Which Opponent has a Record of 22-10?
CREATE TABLE table_name_36 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_36 WHERE record = "22-10"
How many winners are there of farma?
CREATE TABLE table_1053802_1 (winners VARCHAR, local_title VARCHAR)
SELECT COUNT(winners) FROM table_1053802_1 WHERE local_title = "Farma"
What year is center Ann Wauters?
CREATE TABLE table_name_26 (year INTEGER, position VARCHAR, player VARCHAR)
SELECT SUM(year) FROM table_name_26 WHERE position = "center" AND player = "ann wauters"
During which round was the final cornerback drafted for the New England Patriots in 2005?
CREATE TABLE table_name_7 (round INTEGER, position VARCHAR)
SELECT MAX(round) FROM table_name_7 WHERE position = "cornerback"
WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27?
CREATE TABLE table_name_39 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT manufacturer FROM table_name_39 WHERE laps = "24" AND grid = "27"
What was the area in Glenella with a population of 522 in 2011?
CREATE TABLE table_name_24 (area__km²_ INTEGER, name VARCHAR, population__2011_ VARCHAR)
SELECT AVG(area__km²_) FROM table_name_24 WHERE name = "glenella" AND population__2011_ < 522
What's the general classification of stage 3 with David Loosli as the mountains classification?
CREATE TABLE table_name_74 (general_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_74 WHERE mountains_classification = "david loosli" AND stage = "3"
What is the total silver when bronze is smaller than 0?
CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER)
SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 0
Who was the electorate when the member was rex connor?
CREATE TABLE table_name_61 (electorate VARCHAR, member VARCHAR)
SELECT electorate FROM table_name_61 WHERE member = "rex connor"
What is the average year of the Fantasia Section Award?
CREATE TABLE table_name_16 (year INTEGER, award VARCHAR)
SELECT AVG(year) FROM table_name_16 WHERE award = "fantasia section award"
Name the grand prix for casey stoner and circuit of losail
CREATE TABLE table_name_55 (grand_prix VARCHAR, motogp_winner VARCHAR, circuit VARCHAR)
SELECT grand_prix FROM table_name_55 WHERE motogp_winner = "casey stoner" AND circuit = "losail"
What's the genre of Fever Ranma ½: Hot Springs Athletic Chapter?
CREATE TABLE table_12744399_1 (genre VARCHAR, english_title_translation VARCHAR)
SELECT genre FROM table_12744399_1 WHERE english_title_translation = "Fever Ranma ½: Hot Springs Athletic Chapter"
How many figures for Other in the district where the GN division is 95?
CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR)
SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95
What position did someone play from 1982-84?
CREATE TABLE table_name_78 (position VARCHAR, years_for_jazz VARCHAR)
SELECT position FROM table_name_78 WHERE years_for_jazz = "1982-84"
What's the minimal rank of a athlete shown in the chart?
CREATE TABLE table_22355_5 (rank INTEGER)
SELECT MIN(rank) FROM table_22355_5
How many cuts made in the tournament he played 13 times?
CREATE TABLE table_name_13 (cuts_made INTEGER, events INTEGER)
SELECT SUM(cuts_made) FROM table_name_13 WHERE events > 13
How many districts had William F. Norrell as the incumbent?
CREATE TABLE table_1342233_5 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1342233_5 WHERE incumbent = "William F. Norrell"
What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points?
CREATE TABLE table_name_85 (attendance INTEGER, record VARCHAR, opponents VARCHAR)
SELECT MAX(attendance) FROM table_name_85 WHERE record = "0-5" AND opponents > 20
How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?
CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR)
SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000
Please show each industry and the corresponding number of companies in that industry.
CREATE TABLE Companies (Industry VARCHAR)
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry
Which 2012 has a 2010 of 0–0?
CREATE TABLE table_name_46 (Id VARCHAR)
SELECT 2012 FROM table_name_46 WHERE 2010 = "0–0"
What competition has a venue in Hampden Park, Glasgow?
CREATE TABLE table_name_55 (competition VARCHAR, venue VARCHAR)
SELECT competition FROM table_name_55 WHERE venue = "hampden park, glasgow"
What is the average Points when equipe ligier gauloises blondes is the entrant?
CREATE TABLE table_name_17 (points INTEGER, entrant VARCHAR)
SELECT AVG(points) FROM table_name_17 WHERE entrant = "equipe ligier gauloises blondes"
What sound has cantonese as the language, N/A as the classification, and spectrum dvd as the publisher?
CREATE TABLE table_name_77 (sound VARCHAR, publisher VARCHAR, language VARCHAR, classifaction VARCHAR)
SELECT sound FROM table_name_77 WHERE language = "cantonese" AND classifaction = "n/a" AND publisher = "spectrum dvd"
Where the time/retired is +1 lap, the constructor is BRM, and the grid is above 1, what's the highest laps recorded?
CREATE TABLE table_name_25 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, constructor VARCHAR)
SELECT MAX(laps) FROM table_name_25 WHERE time_retired = "+1 lap" AND constructor = "brm" AND grid > 1
What was the lowest goals ever achieved?
CREATE TABLE table_24807406_3 (goals INTEGER)
SELECT MIN(goals) FROM table_24807406_3
What was the team that scored 122 points?
CREATE TABLE table_17968274_2 (team VARCHAR, points VARCHAR)
SELECT team FROM table_17968274_2 WHERE points = 122
What winner has the sanremo to cuneo as the course?
CREATE TABLE table_name_51 (winner VARCHAR, course VARCHAR)
SELECT winner FROM table_name_51 WHERE course = "sanremo to cuneo"
Name the goals with matches of 21
CREATE TABLE table_name_38 (goals VARCHAR, matches VARCHAR)
SELECT goals FROM table_name_38 WHERE matches = "21"
Name the points for 212 respect toward opponents
CREATE TABLE table_226619_12 (points VARCHAR, respect_toward_opponents VARCHAR)
SELECT points FROM table_226619_12 WHERE respect_toward_opponents = 212
Which Diameter has a Year of Issue of 1977?
CREATE TABLE table_name_28 (diameter VARCHAR, year_of_issue VARCHAR)
SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977
Find the name and capacity of the stadium where the event named "World Junior" happened.
CREATE TABLE event (stadium_id VARCHAR, name VARCHAR); CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, id VARCHAR)
SELECT t1.name, t1.capacity FROM stadium AS t1 JOIN event AS t2 ON t1.id = t2.stadium_id WHERE t2.name = 'World Junior'
Name the athlete for bulgaria with rank less than 22
CREATE TABLE table_name_46 (athlete VARCHAR, rank VARCHAR, nation VARCHAR)
SELECT athlete FROM table_name_46 WHERE rank < 22 AND nation = "bulgaria"
what's the leading scorer on march 2
CREATE TABLE table_11964047_9 (leading_scorer VARCHAR, date VARCHAR)
SELECT leading_scorer FROM table_11964047_9 WHERE date = "March 2"
What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?
CREATE TABLE table_25220821_3 (fri_4_june VARCHAR, wed_2_june VARCHAR)
SELECT fri_4_june FROM table_25220821_3 WHERE wed_2_june = "20' 50.62 108.608mph"
Name the power provided where transfer speed mb/s is 300 and max cable length of 10
CREATE TABLE table_174151_5 (power_provided VARCHAR, transfer_speed__mb_s_ VARCHAR, max_cable_length__m_ VARCHAR)
SELECT power_provided FROM table_174151_5 WHERE transfer_speed__mb_s_ = "300" AND max_cable_length__m_ = "10"
What was the earliest year that Indonesian Idol won?
CREATE TABLE table_name_74 (year INTEGER, nominee VARCHAR, result VARCHAR)
SELECT MIN(year) FROM table_name_74 WHERE nominee = "indonesian idol" AND result = "won"
When did the episode with production code 213 air for the first time?
CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR)
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213"
Tell me the most attendance for game less than 1
CREATE TABLE table_name_15 (attendance INTEGER, game INTEGER)
SELECT MAX(attendance) FROM table_name_15 WHERE game < 1
What Wasatch time corresponds to a total time of 122:13:40?
CREATE TABLE table_name_31 (wasatch VARCHAR, total_time VARCHAR)
SELECT wasatch FROM table_name_31 WHERE total_time = "122:13:40"
Which works number has a class of 15th and year of 1940?
CREATE TABLE table_name_69 (works_no VARCHAR, class VARCHAR, year VARCHAR)
SELECT works_no FROM table_name_69 WHERE class = "15th" AND year = "1940"
Which network has bob costas as the studio host and darren pang as the ice level reporters?
CREATE TABLE table_22485543_1 (network VARCHAR, studio_host VARCHAR, ice_level_reporters VARCHAR)
SELECT network FROM table_22485543_1 WHERE studio_host = "Bob Costas" AND ice_level_reporters = "Darren Pang"
What is the lowest ends won when w is 8?
CREATE TABLE table_26209210_2 (Ends INTEGER, w VARCHAR)
SELECT MIN(Ends) AS won FROM table_26209210_2 WHERE w = 8
What is the total number of area listed for cannonvale with a population less than 409?
CREATE TABLE table_name_96 (area__km_2__ VARCHAR, population VARCHAR, place VARCHAR)
SELECT COUNT(area__km_2__) FROM table_name_96 WHERE population < 409 AND place = "cannonvale"
Which ERP W is the highest one that has a Call sign of w255bi?
CREATE TABLE table_name_3 (erp_w INTEGER, call_sign VARCHAR)
SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = "w255bi"
What is the English Translation for the French song by the Artist Rachel?
CREATE TABLE table_name_12 (english_translation VARCHAR, language VARCHAR, artist VARCHAR)
SELECT english_translation FROM table_name_12 WHERE language = "french" AND artist = "rachel"
What state has Richard Foster as a member?
CREATE TABLE table_name_49 (state VARCHAR, member VARCHAR)
SELECT state FROM table_name_49 WHERE member = "richard foster"
What was the attendance when Nuneaton Borough was the home team?
CREATE TABLE table_name_44 (attendance VARCHAR, home_team VARCHAR)
SELECT attendance FROM table_name_44 WHERE home_team = "nuneaton borough"
What's the score when the tie number was 6?
CREATE TABLE table_name_35 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_35 WHERE tie_no = "6"
What is the highest Position, when Pilot is "Mario Kiessling"?
CREATE TABLE table_name_66 (position INTEGER, pilot VARCHAR)
SELECT MAX(position) FROM table_name_66 WHERE pilot = "mario kiessling"
If there is 16 points, what was the position?
CREATE TABLE table_21795846_1 (position VARCHAR, points VARCHAR)
SELECT position FROM table_21795846_1 WHERE points = 16
How many picks are there for defensive back for rounds larger than 11?
CREATE TABLE table_name_23 (pick VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(pick) FROM table_name_23 WHERE position = "defensive back" AND round > 11
What is the Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2
CREATE TABLE table_name_15 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR)
SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.2
What is the average amount of items ordered in each order?
CREATE TABLE order_items (order_quantity INTEGER)
SELECT AVG(order_quantity) FROM order_items
Tell me the location for altitude being less thaan 6102
CREATE TABLE table_name_31 (location VARCHAR, altitude__metres_ INTEGER)
SELECT location FROM table_name_31 WHERE altitude__metres_ < 6102
what is the venue when the runner-up is £20,000, the champion (average in final) is phil taylor (109.35)?
CREATE TABLE table_name_86 (venue VARCHAR, runner_up VARCHAR, champion__average_in_final_ VARCHAR)
SELECT venue FROM table_name_86 WHERE runner_up = "£20,000" AND champion__average_in_final_ = "phil taylor (109.35)"
Which Location has Notes of eisstadion, and a Date of 1930-01-11?
CREATE TABLE table_name_5 (location VARCHAR, notes VARCHAR, date VARCHAR)
SELECT location FROM table_name_5 WHERE notes = "eisstadion" AND date = "1930-01-11"
What was the endowment in 2008 of the college that was established in 1961?
CREATE TABLE table_name_55 (endowment_as_of_2008 VARCHAR, established VARCHAR)
SELECT endowment_as_of_2008 FROM table_name_55 WHERE established = 1961
Which tournament has a hard surface and final opponents rohan bopanna & mustafa ghouse?
CREATE TABLE table_name_19 (tournament VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT tournament FROM table_name_19 WHERE surface = "hard" AND opponents_in_the_final = "rohan bopanna & mustafa ghouse"
What is the lowest Goals, when Played is greater than 30?
CREATE TABLE table_name_31 (goals_for INTEGER, played INTEGER)
SELECT MIN(goals_for) FROM table_name_31 WHERE played > 30
What is the home team score of the game with Adelaide as the away team?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_90 WHERE away_team = "adelaide"
Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?
CREATE TABLE table_name_30 (mascot VARCHAR, school VARCHAR, county VARCHAR, ihsaa_class VARCHAR)
SELECT mascot FROM table_name_30 WHERE county = "69 ripley" AND ihsaa_class = "aa" AND school = "south ripley"
Name the total number of wickets being yuvraj singh
CREATE TABLE table_15700367_2 (wickets VARCHAR, name VARCHAR)
SELECT COUNT(wickets) FROM table_15700367_2 WHERE name = "Yuvraj Singh"
What was the record when the game was played at Cleveland Municipal Stadium?
CREATE TABLE table_14984078_1 (record VARCHAR, game_site VARCHAR)
SELECT record FROM table_14984078_1 WHERE game_site = "Cleveland Municipal Stadium"
What country has a to par larger than 5 and a player John Mahaffey?
CREATE TABLE table_name_38 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT country FROM table_name_38 WHERE to_par > 5 AND player = "john mahaffey"
What format was the release in form the Edsel label, and that was from the EDCD 262 catalog?
CREATE TABLE table_name_62 (format VARCHAR, label VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_62 WHERE label = "edsel" AND catalog = "edcd 262"
How many players hometown was Cincinnati, Ohio?
CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR)
SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio"
Tell me the time for buffalo bills
CREATE TABLE table_name_9 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_9 WHERE opponent = "buffalo bills"
How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?
CREATE TABLE table_name_16 (total VARCHAR, nation VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_16 WHERE nation = "kazakhstan (kaz)" AND gold > 0
Which tournament has marielle bruens for the opponent in the final?
CREATE TABLE table_name_81 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_81 WHERE opponent_in_the_final = "marielle bruens"
What is the lowest rank of a nation with fewer than 3 gold medals, more than 2 bronze medals, and 0 silver medals?
CREATE TABLE table_name_95 (rank INTEGER, bronze VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT MIN(rank) FROM table_name_95 WHERE gold < 3 AND silver = 0 AND bronze > 2
What is the average attendance for the date of 7 November 2007 with an H/A of H?
CREATE TABLE table_name_38 (attendance INTEGER, h___a VARCHAR, date VARCHAR)
SELECT AVG(attendance) FROM table_name_38 WHERE h___a = "h" AND date = "7 november 2007"