question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Team 2 faced Team 1 from Barcelona?
CREATE TABLE table_name_48 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_48 WHERE team_1 = "barcelona"
How many people directed episode 2?
CREATE TABLE table_29545336_2 (directed_by VARCHAR, no VARCHAR)
SELECT COUNT(directed_by) FROM table_29545336_2 WHERE no = 2
Which Livery has a Description of 20t tanker, with a date later than 1941?
CREATE TABLE table_name_32 (livery VARCHAR, description VARCHAR, date VARCHAR)
SELECT livery FROM table_name_32 WHERE description = "20t tanker" AND date > 1941
What is Motherwell Team's manner of departure?
CREATE TABLE table_name_57 (manner_of_departure VARCHAR, team VARCHAR)
SELECT manner_of_departure FROM table_name_57 WHERE team = "motherwell"
what's the first leg with gran canaria as team #2?
CREATE TABLE table_name_56 (team__number2 VARCHAR)
SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = "gran canaria"
What's the transit connection in Columbia City, Seattle?
CREATE TABLE table_22771048_2 (transit_connections VARCHAR, city_neighborhood VARCHAR)
SELECT transit_connections FROM table_22771048_2 WHERE city_neighborhood = "Columbia City, Seattle"
Who was the away team at MCG?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_12 WHERE venue = "mcg"
What is the year of the movie with an opening day on Friday with a rank 10?
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10
Loss of postponed (rain) rescheduled for may 10 had what record?
CREATE TABLE table_name_60 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_60 WHERE loss = "postponed (rain) rescheduled for may 10"
What is the venue of the match on 5 April 2000?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "5 april 2000"
What is the time/retired for the driver emerson fittipaldi?
CREATE TABLE table_name_55 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_55 WHERE driver = "emerson fittipaldi"
What is the catches maximum number?
CREATE TABLE table_26041144_16 (catches INTEGER)
SELECT MAX(catches) FROM table_26041144_16
Name the joined for blue hose
CREATE TABLE table_16168849_1 (joined VARCHAR, nickname VARCHAR)
SELECT joined FROM table_16168849_1 WHERE nickname = "Blue Hose"
Name the team #2 for river plate
CREATE TABLE table_23812628_1 (team__number2 VARCHAR, team__number1 VARCHAR)
SELECT team__number2 FROM table_23812628_1 WHERE team__number1 = "River Plate"
state the round that had a game attended attended by 9359 people
CREATE TABLE table_21256068_3 (round VARCHAR, attendance VARCHAR)
SELECT round FROM table_21256068_3 WHERE attendance = 9359
What is the launched date of the station in cora huichol tepehuano nahuatl language?
CREATE TABLE table_name_1 (launched VARCHAR, languages VARCHAR)
SELECT launched FROM table_name_1 WHERE languages = "cora huichol tepehuano nahuatl"
Which gc37-01 v10 engine has the fewest points?
CREATE TABLE table_name_23 (points INTEGER, engine VARCHAR)
SELECT MIN(points) FROM table_name_23 WHERE engine = "gc37-01 v10"
Which Genre has a Developer(s) of naughty dog?
CREATE TABLE table_name_47 (genre VARCHAR, developer_s_ VARCHAR)
SELECT genre FROM table_name_47 WHERE developer_s_ = "naughty dog"
Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?
CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR)
SELECT MAX(place) FROM table_name_65 WHERE artist = "nikolas metaxas" AND televote > 60
What is the destination of the Garib nwaz exp train?
CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR)
SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp"
What is the percentage of total capacity when the energy is 120.2?
CREATE TABLE table_11456251_5 (_percentage_of_total_capacity VARCHAR, annual_energy__billion_kwh_ VARCHAR)
SELECT _percentage_of_total_capacity FROM table_11456251_5 WHERE annual_energy__billion_kwh_ = "120.2"
What is the nickname of Linfield College?
CREATE TABLE table_261941_1 (nickname VARCHAR, institution VARCHAR)
SELECT nickname FROM table_261941_1 WHERE institution = "Linfield College"
What is the format for the United States dated July 23, 2002?
CREATE TABLE table_name_84 (format VARCHAR, region VARCHAR, date VARCHAR)
SELECT format FROM table_name_84 WHERE region = "united states" AND date = "july 23, 2002"
Which 2006 Cobra Starship song has work done of guest vocals?
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"
Who was the offensive award winner the week when Bob Watson was given the overall award?
CREATE TABLE table_14132239_3 (offensive VARCHAR, overall VARCHAR)
SELECT offensive FROM table_14132239_3 WHERE overall = "Bob Watson"
When united kingdom is the country what is the most recent date?
CREATE TABLE table_18676973_3 (most_recent_date VARCHAR, country VARCHAR)
SELECT most_recent_date FROM table_18676973_3 WHERE country = "United Kingdom"
What's the average interview with Preliminaries larger than 8.27, an Evening Gown of 8.85, and an Average smaller than 8.842?
CREATE TABLE table_name_65 (interview INTEGER, average VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR)
SELECT AVG(interview) FROM table_name_65 WHERE preliminaries > 8.27 AND evening_gown = 8.85 AND average < 8.842
Who was the opponent on October 14, 1984?
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_62 WHERE date = "october 14, 1984"
Which player was chosen by Saskatchewan in a pick larger than 38?
CREATE TABLE table_name_21 (player VARCHAR, pick__number VARCHAR, cfl_team VARCHAR)
SELECT player FROM table_name_21 WHERE pick__number > 38 AND cfl_team = "saskatchewan"
what is the position for the player from university of alabama?
CREATE TABLE table_name_37 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_37 WHERE school = "university of alabama"
Which film has the highest rental rate? And what is the rate?
CREATE TABLE film (title VARCHAR, rental_rate VARCHAR)
SELECT title, rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
What is Downstream, when Upstream is "384 kbit"?
CREATE TABLE table_name_88 (downstream VARCHAR, upstream VARCHAR)
SELECT downstream FROM table_name_88 WHERE upstream = "384 kbit"
Which nation(s) won silver in Doha?
CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR)
SELECT silver FROM table_name_51 WHERE location = "doha"
Name the highest total for the tournament more than 0 and regular season after 8
CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR)
SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8
Who is listed under mens singles when womens has wang nan zhang yining?
CREATE TABLE table_28138035_27 (mens_singles VARCHAR, womens_doubles VARCHAR)
SELECT mens_singles FROM table_28138035_27 WHERE womens_doubles = "Wang Nan Zhang Yining"
What is the venue when the score was 8-2?
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_61 WHERE score = "8-2"
In what Venue was the game with a Friendly Competition and 1 Goal played?
CREATE TABLE table_name_29 (venue VARCHAR, competition VARCHAR, goal VARCHAR)
SELECT venue FROM table_name_29 WHERE competition = "friendly" AND goal = 1
With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total?
CREATE TABLE table_name_23 (total INTEGER, bronze VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_23 WHERE rank > 4 AND silver > 0 AND bronze < 1
Which category was Dev Patel nominated for?
CREATE TABLE table_name_61 (category VARCHAR, winner_nominee_s_ VARCHAR)
SELECT category FROM table_name_61 WHERE winner_nominee_s_ = "dev patel"
What is the Date of the game with a Result of L 33–14?
CREATE TABLE table_name_89 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_89 WHERE result = "l 33–14"
what is the minimum population with canton being redange
CREATE TABLE table_1417184_1 (population INTEGER, canton VARCHAR)
SELECT MIN(population) FROM table_1417184_1 WHERE canton = "Redange"
Name the ensemble with silver medals more than 1
CREATE TABLE table_name_21 (ensemble VARCHAR, silver_medals INTEGER)
SELECT ensemble FROM table_name_21 WHERE silver_medals > 1
What is the country of the player whose score is 71-69-70-69=279?
CREATE TABLE table_name_21 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_21 WHERE score = 71 - 69 - 70 - 69 = 279
Name the result for 13 october 2004
CREATE TABLE table_name_85 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_85 WHERE date = "13 october 2004"
What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?
CREATE TABLE table_name_77 (samples_failed INTEGER, product VARCHAR, samples_taken VARCHAR)
SELECT MAX(samples_failed) FROM table_name_77 WHERE product = "可淇牌嬰幼兒配方乳粉" AND samples_taken < 1
When was Leyton Orient an away team?
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR, venue VARCHAR)
SELECT date FROM table_name_68 WHERE opponent = "leyton orient" AND venue = "away"
What is the sum of Weight for the person born in virginia, minnesota?
CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR)
SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota"
How many points did the team who had 325 total points have in round 3?
CREATE TABLE table_24784769_1 (round3 VARCHAR, total_points VARCHAR)
SELECT round3 FROM table_24784769_1 WHERE total_points = 325
What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more than 15 races?
CREATE TABLE table_name_9 (fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR)
SELECT MAX(fastest_laps) FROM table_name_9 WHERE poles = 0 AND races > 15 AND podiums > 2
which winner has a jockery containing jerry bailey and the owner of overbrook farm?
CREATE TABLE table_name_28 (winner VARCHAR, jockey VARCHAR, owner VARCHAR)
SELECT winner FROM table_name_28 WHERE jockey = "jerry bailey" AND owner = "overbrook farm"
What was the away team that scored 63-69?
CREATE TABLE table_name_73 (away_team VARCHAR, score VARCHAR)
SELECT away_team FROM table_name_73 WHERE score = "63-69"
When 22' 37.06 100.090mph is the time for Monday August 24th how many times are there for Friday August 28th?
CREATE TABLE table_23465864_3 (fri_28_aug VARCHAR, mon_24_aug VARCHAR)
SELECT COUNT(fri_28_aug) FROM table_23465864_3 WHERE mon_24_aug = "22' 37.06 100.090mph"
What was the winning score of the Buy.com Siouxland Open?
CREATE TABLE table_name_57 (winning_score VARCHAR, tournament VARCHAR)
SELECT winning_score FROM table_name_57 WHERE tournament = "buy.com siouxland open"
I want the highest grid for Laps of 38
CREATE TABLE table_name_94 (grid INTEGER, laps VARCHAR)
SELECT MAX(grid) FROM table_name_94 WHERE laps = 38
What were the goal conceded that had a lost greater than 8 and more than 17 points?
CREATE TABLE table_name_19 (goals_conceded INTEGER, lost VARCHAR, points VARCHAR)
SELECT MAX(goals_conceded) FROM table_name_19 WHERE lost > 8 AND points > 17
Which Team 2 had a Team 1 of montreal impact?
CREATE TABLE table_name_81 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_81 WHERE team_1 = "montreal impact"
When was Southend United the home team?
CREATE TABLE table_name_44 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_44 WHERE home_team = "southend united"
Show all cities where students live.
CREATE TABLE Student (city_code VARCHAR)
SELECT DISTINCT city_code FROM Student
What year did the rank of 31 happen in?
CREATE TABLE table_name_75 (year VARCHAR, rank VARCHAR)
SELECT year FROM table_name_75 WHERE rank = "31"
Which Extra points is the lowest one that has a Player of rheinschild, and Touchdowns larger than 1?
CREATE TABLE table_name_26 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR)
SELECT MIN(extra_points) FROM table_name_26 WHERE player = "rheinschild" AND touchdowns > 1
What is the Time/Retired of the Newman-Haas Racing team in under 51 laps?
CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, team VARCHAR)
SELECT time_retired FROM table_name_28 WHERE laps < 51 AND team = "newman-haas racing"
List the names of buildings that have no company office.
CREATE TABLE buildings (name VARCHAR, id VARCHAR, building_id VARCHAR); CREATE TABLE Office_locations (name VARCHAR, id VARCHAR, building_id VARCHAR)
SELECT name FROM buildings WHERE NOT id IN (SELECT building_id FROM Office_locations)
What is Number of Contestants, when International Destinations is London Lisbon?
CREATE TABLE table_name_55 (number_of_contestants VARCHAR, international_destinations VARCHAR)
SELECT number_of_contestants FROM table_name_55 WHERE international_destinations = "london lisbon"
what kind of Week 5 that has a Week 1 of mandy ashford?
CREATE TABLE table_name_68 (week_5 VARCHAR, week_1 VARCHAR)
SELECT week_5 FROM table_name_68 WHERE week_1 = "mandy ashford"
what place has score 66-74-68-73=281
CREATE TABLE table_name_74 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_74 WHERE score = 66 - 74 - 68 - 73 = 281
On what date did the away team Melbourne play?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "melbourne"
Which rank has more than 1 silver, more than 1 gold, and more than 4 bronze?
CREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 4
timothy truman worked on what books
CREATE TABLE table_1420954_1 (book_title VARCHAR, artist_s_ VARCHAR)
SELECT book_title FROM table_1420954_1 WHERE artist_s_ = "Timothy Truman"
Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?
CREATE TABLE table_104858_1 (admits_boys_girls VARCHAR, year_member_organization_was_founded VARCHAR, name_of_member_organization VARCHAR)
SELECT admits_boys_girls FROM table_104858_1 WHERE year_member_organization_was_founded = "1912" AND name_of_member_organization = "The Ghana Scout Association"
The swimmer from the United States in a lane less than 5, had what as the average time?
CREATE TABLE table_name_8 (time INTEGER, nationality VARCHAR, lane VARCHAR)
SELECT AVG(time) FROM table_name_8 WHERE nationality = "united states" AND lane < 5
What is the winner for Virginia?
CREATE TABLE table_name_99 (winner VARCHAR, location VARCHAR)
SELECT winner FROM table_name_99 WHERE location = "virginia"
I want the ends for transfer fee of free and goals being 0 for roy carroll
CREATE TABLE table_name_53 (ends VARCHAR, name VARCHAR, transfer_fee VARCHAR, goals VARCHAR)
SELECT ends FROM table_name_53 WHERE transfer_fee = "free" AND goals = 0 AND name = "roy carroll"
Who does Rockstar Games use as a developer?
CREATE TABLE table_name_97 (developer VARCHAR, publisher VARCHAR)
SELECT developer FROM table_name_97 WHERE publisher = "rockstar games"
What is the average agricultural panel value with a Labour panel less than 1, a total value less than 21, and a National University of Ireland value greater than 0?
CREATE TABLE table_name_53 (agricultural_panel INTEGER, national_university_of_ireland VARCHAR, labour_panel VARCHAR, total VARCHAR)
SELECT AVG(agricultural_panel) FROM table_name_53 WHERE labour_panel < 1 AND total < 21 AND national_university_of_ireland > 0
What is the 2006 value with a 1r in 2011?
CREATE TABLE table_name_56 (Id VARCHAR)
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
what is the distance for bearing 297°?
CREATE TABLE table_name_27 (distance VARCHAR, bearing VARCHAR)
SELECT distance FROM table_name_27 WHERE bearing = "297°"
Find the average and maximum rating of all reviews.
CREATE TABLE review (rating INTEGER)
SELECT AVG(rating), MAX(rating) FROM review
Name the centennial for 1992 akimel
CREATE TABLE table_15977768_1 (centennial VARCHAR, akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR)
SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992"
What is the highest year that has fila world championships as the event, with toledo, united states as the venue, and a weight class (kg) less than 97?
CREATE TABLE table_name_37 (year INTEGER, weight_class__kg_ VARCHAR, event VARCHAR, venue VARCHAR)
SELECT MAX(year) FROM table_name_37 WHERE event = "fila world championships" AND venue = "toledo, united states" AND weight_class__kg_ < 97
How many railways are there?
CREATE TABLE railway (Id VARCHAR)
SELECT COUNT(*) FROM railway
Name the average gold medals when the bronze medals was less than 1, silver medals being 0 and total medals more than 1
CREATE TABLE table_name_82 (gold_medals INTEGER, total_medals VARCHAR, bronze_medals VARCHAR, silver_medals VARCHAR)
SELECT AVG(gold_medals) FROM table_name_82 WHERE bronze_medals < 1 AND silver_medals = 0 AND total_medals > 1
What was the co-champions value when solo was 3 and MRC Championships is greater than 3?
CREATE TABLE table_name_49 (co_champions VARCHAR, solo VARCHAR, mrc_championships VARCHAR)
SELECT co_champions FROM table_name_49 WHERE solo = 3 AND mrc_championships > 3
How many people watched the game at Lake Oval?
CREATE TABLE table_name_1 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_1 WHERE venue = "lake oval"
Name the location of 64-74
CREATE TABLE table_17103729_8 (location_attendance VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_17103729_8 WHERE score = "64-74"
Who constructed Gerhard Berger car that went all rounds?
CREATE TABLE table_name_92 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_92 WHERE rounds = "all" AND driver = "gerhard berger"
Show the names of members and names of colleges they go to.
CREATE TABLE member (Name VARCHAR, College_ID VARCHAR); CREATE TABLE college (Name VARCHAR, College_ID VARCHAR)
SELECT T2.Name, T1.Name FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID
What is the KINKA 1.2 when the pre-release is no and the developer is yes?
CREATE TABLE table_name_35 (kinka_12 VARCHAR, kinka_pre_release VARCHAR, kinka_developer VARCHAR)
SELECT kinka_12 FROM table_name_35 WHERE kinka_pre_release = "no" AND kinka_developer = "yes"
Which trainer won the hyroglyphic in a year that was before 2010?
CREATE TABLE table_name_97 (trainer VARCHAR, year VARCHAR, winner VARCHAR)
SELECT trainer FROM table_name_97 WHERE year < 2010 AND winner = "hyroglyphic"
Which country has the score of 71-71-68=210?
CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_99 WHERE score = 71 - 71 - 68 = 210
When the crowd was larger than 7,500 what was the away teams score?
CREATE TABLE table_name_84 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_84 WHERE crowd > 7 OFFSET 500
How many Pop (2004) has a Governorate of al mahwit?
CREATE TABLE table_name_48 (pop__2004_ INTEGER, governorate VARCHAR)
SELECT SUM(pop__2004_) FROM table_name_48 WHERE governorate = "al mahwit"
When 4 is the week what is the location?
CREATE TABLE table_24136365_2 (location VARCHAR, week VARCHAR)
SELECT location FROM table_24136365_2 WHERE week = 4
Which score has a Date of november 2?
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE date = "november 2"
What is the lowest overall year?
CREATE TABLE table_16677738_1 (year INTEGER)
SELECT MIN(year) FROM table_16677738_1
what is the name of the episode when the production code is 11.01?
CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_2226817_12 WHERE production_code = "11.01"
Name the state with an evening gown more than 8.86 and interview less than 8.7 and swimsuit less than 8.96
CREATE TABLE table_name_84 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, swimsuit VARCHAR)
SELECT state FROM table_name_84 WHERE evening_gown > 8.86 AND swimsuit < 8.96 AND interview < 8.7
What was the score of the game on 19/3/00?
CREATE TABLE table_name_60 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_60 WHERE date = "19/3/00"
What is the week 13 result where the week 14 resulted in Maryland (10-1)?
CREATE TABLE table_name_18 (week_13_nov_26 VARCHAR, week_14_dec_3 VARCHAR)
SELECT week_13_nov_26 FROM table_name_18 WHERE week_14_dec_3 = "maryland (10-1)"
Frequency (MHz) that has a Type of primary, and a Call letters of ktbb-fm has what total number?
CREATE TABLE table_name_52 (frequency__mhz_ VARCHAR, type VARCHAR, call_letters VARCHAR)
SELECT COUNT(frequency__mhz_) FROM table_name_52 WHERE type = "primary" AND call_letters = "ktbb-fm"
What is the total of the game that the team was @ new york?
CREATE TABLE table_name_58 (game VARCHAR, team VARCHAR)
SELECT COUNT(game) FROM table_name_58 WHERE team = "@ new york"