answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT winning_team FROM table_25213146_2 WHERE circuit = "circuit Zolder"
On the Circuit Zolder who was the winning team?
CREATE TABLE table_25213146_2 (winning_team VARCHAR, circuit VARCHAR)
SELECT circuit FROM table_name_92 WHERE race = "british grand prix"
What circuit was the British Grand Prix?
CREATE TABLE table_name_92 (circuit VARCHAR, race VARCHAR)
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "5 (4 in 32.66s)"
What is the position of the player with a 5 (4 in 32.66s) in the 6 atlas stones event?
CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)
SELECT goal_difference FROM table_name_82 WHERE drawn > 11 AND goals_against < 63 AND goals_for < 87 AND lost > 16
what is the goal difference when drawn is more than 11, goals against is less than 63, goals for is less than 87 and lost is more than 16?
CREATE TABLE table_name_82 (goal_difference VARCHAR, lost VARCHAR, goals_for VARCHAR, drawn VARCHAR, goals_against VARCHAR)
SELECT COUNT(electorate) FROM table_20683381_3 WHERE for___percentage_ = "27,822 (72.3)"
When 27,822 (72.3) is the percentage for how many electorate measurements are there?
CREATE TABLE table_20683381_3 (electorate VARCHAR, for___percentage_ VARCHAR)
SELECT name FROM table_name_58 WHERE opponent = "pohang steelers"
Which opponent plays against the Pohang Steelers?
CREATE TABLE table_name_58 (name VARCHAR, opponent VARCHAR)
SELECT AVG(game) FROM table_name_87 WHERE date = "october 16"
What average game was played on October 16?
CREATE TABLE table_name_87 (game INTEGER, date VARCHAR)
SELECT l2_cache FROM table_name_65 WHERE model_number = "core i7-2635qm"
What is the L2 cache for the core i7-2635QM?
CREATE TABLE table_name_65 (l2_cache VARCHAR, model_number VARCHAR)
SELECT time FROM table_name_87 WHERE date = "april 5"
What was the time of the game on April 5?
CREATE TABLE table_name_87 (time VARCHAR, date VARCHAR)
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__silver_ = 70
How many platinum points were awarded when 70 silver points were awarded?
CREATE TABLE table_11254821_2 (points_awarded__platinum_ VARCHAR, points_awarded__silver_ VARCHAR)
SELECT royal_house FROM table_name_54 WHERE state = "song"
What was the Royal House for the state of Song?
CREATE TABLE table_name_54 (royal_house VARCHAR, state VARCHAR)
SELECT directed_by FROM table_2221484_2 WHERE series__number = 266
Who directed episode 266 in the series?
CREATE TABLE table_2221484_2 (directed_by VARCHAR, series__number VARCHAR)
SELECT current_status FROM table_name_70 WHERE livery = "callander coal company grey"
What is the Current status of Callander Coal company grey?
CREATE TABLE table_name_70 (current_status VARCHAR, livery VARCHAR)
SELECT SUM(gold) FROM table_name_18 WHERE total = 5 AND bronze < 0
What is the sum of the golds of the nation with 5 total and less than 0 bronze medals?
CREATE TABLE table_name_18 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT MIN(react) FROM table_name_62 WHERE country = "sri lanka" AND lane > 8
What is the lowest of the athlete from sri lanka who has a lane greater than 8?
CREATE TABLE table_name_62 (react INTEGER, country VARCHAR, lane VARCHAR)
SELECT round FROM table_name_16 WHERE player = "kelsey tessier"
In what round was Kelsey Tessier drafted?
CREATE TABLE table_name_16 (round VARCHAR, player VARCHAR)
SELECT car___motorcycle FROM table_name_14 WHERE speed = "91.813mph"
What car/motorcycle goes 91.813mph?
CREATE TABLE table_name_14 (car___motorcycle VARCHAR, speed VARCHAR)
SELECT MAX(wins) FROM table_16225511_2 WHERE school = "Texas"
What's the largest amount of wins Texas has?
CREATE TABLE table_16225511_2 (wins INTEGER, school VARCHAR)
SELECT AVG(tries_against) FROM table_name_8 WHERE points_against > 156 AND points_for = 127 AND tries_for > 17
Which Tries against has Points against larger than 156, and Points for of 127, and Tries for larger than 17?
CREATE TABLE table_name_8 (tries_against INTEGER, tries_for VARCHAR, points_against VARCHAR, points_for VARCHAR)
SELECT year FROM table_name_81 WHERE position = "1/22 promoted" AND leading_scorer = "james dean (27)"
what is the year when the position is 1/22 promoted and the leading scorer is james dean (27)?
CREATE TABLE table_name_81 (year VARCHAR, position VARCHAR, leading_scorer VARCHAR)
SELECT character_name FROM table_name_82 WHERE voice_actor__japanese_ = "naoko watanabe"
what character did naoko watanabe play
CREATE TABLE table_name_82 (character_name VARCHAR, voice_actor__japanese_ VARCHAR)
SELECT county FROM table_name_48 WHERE grantee = "mariano castro"
Tell me the county for mariano castro
CREATE TABLE table_name_48 (county VARCHAR, grantee VARCHAR)
SELECT result FROM table_name_9 WHERE episode = "top 3" AND original_artist = "janis ian"
What result did Janis Ian have in the episode of top 3?
CREATE TABLE table_name_9 (result VARCHAR, episode VARCHAR, original_artist VARCHAR)
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2
Show the ids for all the faculty members who have at least 2 students.
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
SELECT COUNT(original_title) FROM table_10321805_1 WHERE film_title_used_in_nomination = "Marriage Italian-Style"
How many original titles did Marriage Italian-Style have?
CREATE TABLE table_10321805_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT mutated_from FROM table_name_19 WHERE assignee = "auvil"
What's the mutated of Auvil?
CREATE TABLE table_name_19 (mutated_from VARCHAR, assignee VARCHAR)
SELECT iupac_name FROM table_name_44 WHERE common_name = "chloroform"
What is the IUPAC name for chloroform?
CREATE TABLE table_name_44 (iupac_name VARCHAR, common_name VARCHAR)
SELECT venue FROM table_name_33 WHERE result = "win" AND competition = "2002 tiger cup group stage" AND score = "0-4"
What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?
CREATE TABLE table_name_33 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT date FROM table_name_6 WHERE network_brand_name = "movistar"
What date was Movistar accredited?
CREATE TABLE table_name_6 (date VARCHAR, network_brand_name VARCHAR)
SELECT COUNT(earnings__) AS $__ FROM table_name_64 WHERE player = "jim colbert" AND rank < 2
How much did jim colbert earned ranked above 2?
CREATE TABLE table_name_64 (earnings__ VARCHAR, player VARCHAR, rank VARCHAR)
SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"
what's the success where date of completion is september 28, 2007
CREATE TABLE table_12078626_1 (success VARCHAR, date_of_completion VARCHAR)
SELECT character FROM table_22460085_1 WHERE original_manchester_performer = "Lisa Davina Phillip"
What character did Lisa Davina Phillip portray?
CREATE TABLE table_22460085_1 (character VARCHAR, original_manchester_performer VARCHAR)
SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
What was the home team when Carlton was the away team?
CREATE TABLE table_name_59 (home_team VARCHAR, away_team VARCHAR)
SELECT game FROM table_name_1 WHERE date = "may 29"
What game was played on May 29?
CREATE TABLE table_name_1 (game VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_79 WHERE record = "16-6"
What was the location/attendance for the game with a record of 16-6?
CREATE TABLE table_name_79 (location_attendance VARCHAR, record VARCHAR)
SELECT highest_rank FROM table_name_44 WHERE name = "yoshiazuma"
Which Rank is Highest for Yoshiazuma?
CREATE TABLE table_name_44 (highest_rank VARCHAR, name VARCHAR)
SELECT COUNT(market_cap_march_15__mil_usd__) FROM table_23950611_2 WHERE april_2013_cum_rank = 3
How many companies had an april 2013 cumulative ranking of 3?
CREATE TABLE table_23950611_2 (market_cap_march_15__mil_usd__ VARCHAR, april_2013_cum_rank VARCHAR)
SELECT city___state FROM table_name_12 WHERE winner = "john bowe" AND circuit = "phillip island grand prix circuit"
In what City/State did John Bowe win at Phillip Island Grand Prix Circuit?
CREATE TABLE table_name_12 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
SELECT COUNT(date) FROM table_23308178_6 WHERE location = "Wachovia Center"
How many dates were played at the wachovia center?
CREATE TABLE table_23308178_6 (date VARCHAR, location VARCHAR)
SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc"
Who were the co drivers past 1994 in the WSC class?
CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR)
SELECT SUM(round) FROM table_name_92 WHERE position = "ol" AND player = "richard zulys"
In what Round was OL Player Richard Zulys picked?
CREATE TABLE table_name_92 (round INTEGER, position VARCHAR, player VARCHAR)
SELECT score FROM table_name_4 WHERE away_team = "west ham united"
What was the score when the away team was West Ham United?
CREATE TABLE table_name_4 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_27537518_7 WHERE record = "22-16-6"
What was the final score the game where the Thrashers over-all record went to 22-16-6?
CREATE TABLE table_27537518_7 (score VARCHAR, record VARCHAR)
SELECT MIN(average) FROM table_name_74 WHERE sr = 70.43 AND runs_scored < 293
What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?
CREATE TABLE table_name_74 (average INTEGER, sr VARCHAR, runs_scored VARCHAR)
SELECT MAX(overall) FROM table_name_55 WHERE position = "k" AND pick < 28
If the pick is under 28 and the position is k, what's the highest Overall pick?
CREATE TABLE table_name_55 (overall INTEGER, position VARCHAR, pick VARCHAR)
SELECT SUM(altitude__mslm_) FROM table_name_85 WHERE density__inhabitants_km_2__ < 1233 AND rank = "9th"
Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?
CREATE TABLE table_name_85 (altitude__mslm_ INTEGER, density__inhabitants_km_2__ VARCHAR, rank VARCHAR)
SELECT position FROM table_2508633_9 WHERE college = "Langston"
What position was the draft pick that came from Langston?
CREATE TABLE table_2508633_9 (position VARCHAR, college VARCHAR)
SELECT package_option FROM table_name_24 WHERE country = "italy" AND language = "italian"
What is the package/option for Italy when the language is italian?
CREATE TABLE table_name_24 (package_option VARCHAR, country VARCHAR, language VARCHAR)
SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%"
Find all the catalog publishers whose name contains "Murray"
CREATE TABLE catalogs (catalog_publisher VARCHAR)
SELECT SUM(attendance) FROM table_name_43 WHERE date = "21 august 2004"
What was the attendance on 21 August 2004?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)
SELECT MIN(wins) FROM table_name_30 WHERE points = "0" AND country = "germany" AND seasons = "1999"
What's the least amount of wins for Germany in the 1999 season having 0 points?
CREATE TABLE table_name_30 (wins INTEGER, seasons VARCHAR, points VARCHAR, country VARCHAR)
SELECT position_in_2006 FROM table_name_77 WHERE team = "dnepr"
What was Team Dnepr's position in 2006?
CREATE TABLE table_name_77 (position_in_2006 VARCHAR, team VARCHAR)
SELECT minister FROM table_name_97 WHERE portfolio = "minister of pubblic administration" AND took_office = "14 november 2002"
What is Minister, when Portfolio is "Minister of Pubblic Administration", and when Took Office is "14 November 2002"?
CREATE TABLE table_name_97 (minister VARCHAR, portfolio VARCHAR, took_office VARCHAR)
SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY SUM(T3.order_quantity) DESC LIMIT 1
What are the name and phone of the customer with the most ordered product quantity?
CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT runners_up FROM table_name_63 WHERE winner = "hajduk split (3)"
Who is listed as the Runners-up that also has a Winner of Hajduk Split (3)?
CREATE TABLE table_name_63 (runners_up VARCHAR, winner VARCHAR)
SELECT complement FROM table_2596811_12 WHERE killed = "0 off 3 men" AND wounded = "0 off 2 men"
What was the complement associated with 0 off 3 men killed and 0 off 2 men wounded?
CREATE TABLE table_2596811_12 (complement VARCHAR, killed VARCHAR, wounded VARCHAR)
SELECT school AS website FROM table_28523_2 WHERE school = "Cunningham Hill Infant school"
What is the website of the cunningham hill infant school?
CREATE TABLE table_28523_2 (school VARCHAR)
SELECT being__qualities_ FROM table_name_20 WHERE having__things_ = "friendships, family, relationships with nature"
Name the being qualities for having things of friendships, family, relationships with nature
CREATE TABLE table_name_20 (being__qualities_ VARCHAR, having__things_ VARCHAR)
SELECT school_club_team FROM table_name_53 WHERE nationality = "united states" AND position = "guard"
Tell me the School/Club team of the player from the United States that play'de guard?
CREATE TABLE table_name_53 (school_club_team VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT high_assists FROM table_name_13 WHERE high_points = "kobe bryant (27)" AND high_rebounds = "pau gasol (11)"
What is High Assists, when High Points is "Kobe Bryant (27)", and when High Rebounds is "Pau Gasol (11)"?
CREATE TABLE table_name_13 (high_assists VARCHAR, high_points VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_15 WHERE winners = "motherwell"
When did Motherwell win?
CREATE TABLE table_name_15 (date VARCHAR, winners VARCHAR)
SELECT MAX(total) FROM table_name_57 WHERE bronze > 1 AND gold > 0
Which Total has a Bronze larger than 1, and a Gold larger than 0?
CREATE TABLE table_name_57 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT original_air_date FROM table_19632728_1 WHERE episode__number = 2
When was the episode number 2 originally aired?
CREATE TABLE table_19632728_1 (original_air_date VARCHAR, episode__number VARCHAR)
SELECT COUNT(place) FROM table_name_70 WHERE points < 12
What is the total number for a place with points smaller than 12?
CREATE TABLE table_name_70 (place VARCHAR, points INTEGER)
SELECT MIN(league) FROM table_name_98 WHERE malaysia_cup > 0
What is the lowest league for the Malaysia Cup when it was larger than 0?
CREATE TABLE table_name_98 (league INTEGER, malaysia_cup INTEGER)
SELECT content FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND language = "Italian" AND dar = "16:9" AND television_service = "MTV Hits"
Name the content for sky famiglia for italian and dar 16:9 for mtv hits
CREATE TABLE table_15887683_10 (content VARCHAR, television_service VARCHAR, dar VARCHAR, package_option VARCHAR, language VARCHAR)
SELECT country FROM table_name_83 WHERE team = "relax-gam"
What country is Relax-Gam from?
CREATE TABLE table_name_83 (country VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_26 WHERE week = 6
Which opponent was played in Week 6?
CREATE TABLE table_name_26 (opponent VARCHAR, week VARCHAR)
SELECT rider FROM table_name_35 WHERE grid = 21
What is the rider when the grid is 21?
CREATE TABLE table_name_35 (rider VARCHAR, grid VARCHAR)
SELECT home_team FROM table_name_52 WHERE tie_no = "7"
WHAT IS THE HOME TEAM WITH A TIE NUMBER OF 7?
CREATE TABLE table_name_52 (home_team VARCHAR, tie_no VARCHAR)
SELECT lost FROM table_name_64 WHERE losing_bonus = "3" AND club = "bettws rfc"
What is Lost, when Losing Bonus is "3", and when Club is "Bettws RFC"?
CREATE TABLE table_name_64 (lost VARCHAR, losing_bonus VARCHAR, club VARCHAR)
SELECT COUNT(wins) FROM table_name_93 WHERE glenelg_fl = "bahgallah" AND byes > 3
How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?
CREATE TABLE table_name_93 (wins VARCHAR, glenelg_fl VARCHAR, byes VARCHAR)
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32
What number of Yards has 32 as an In 20?
CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR)
SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph"
What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph?
CREATE TABLE table_name_24 (time VARCHAR, rank VARCHAR, speed VARCHAR)
SELECT COUNT(total) FROM table_17505751_5 WHERE p > 4.0
if p is bigger than 4.0 what is total number
CREATE TABLE table_17505751_5 (total VARCHAR, p INTEGER)
SELECT competition FROM table_name_27 WHERE score = "3–3"
What Competition had a Score of 3–3?
CREATE TABLE table_name_27 (competition VARCHAR, score VARCHAR)
SELECT MIN(played) FROM table_name_21 WHERE points > 30
What is the lowest number played with more than 30 points?
CREATE TABLE table_name_21 (played INTEGER, points INTEGER)
SELECT joint_music_award FROM table_name_32 WHERE total > 18 AND year > 2007
How many Joint Music Awards are there when the Total is larger than 18, in a Year after 2007?
CREATE TABLE table_name_32 (joint_music_award VARCHAR, total VARCHAR, year VARCHAR)
SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece" AND place > 8
What is the total of Greece, which is placed below 8?
CREATE TABLE table_name_32 (total VARCHAR, nation VARCHAR, place VARCHAR)
SELECT entrant FROM table_name_60 WHERE year > 1981 AND chassis = "osella fa1c"
What entrant has osella fa1c chassis after 1981?
CREATE TABLE table_name_60 (entrant VARCHAR, year VARCHAR, chassis VARCHAR)
SELECT result FROM table_name_26 WHERE week__number = "top 8"
What was the result during the week # of top 8?
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)
SELECT date FROM table_name_33 WHERE circuit = "indianapolis"
What date was the Circuit of Indianapolis?
CREATE TABLE table_name_33 (date VARCHAR, circuit VARCHAR)
SELECT artist_s_ FROM table_2560677_1 WHERE start_date = "1966-10-23"
Who was the artist with a start date of 1966-10-23?
CREATE TABLE table_2560677_1 (artist_s_ VARCHAR, start_date VARCHAR)
SELECT AVG(drawn) FROM table_name_76 WHERE points < 70 AND played < 46
What is the average drawn number of the team with less than 70 points and less than 46 played?
CREATE TABLE table_name_76 (drawn INTEGER, points VARCHAR, played VARCHAR)
SELECT kickoff_[a_] FROM table_11449590_2 WHERE opponent = "at New Orleans Saints"
Which kickoff has the opponent at new orleans saints?
CREATE TABLE table_11449590_2 (kickoff_ VARCHAR, a_ VARCHAR, opponent VARCHAR)
SELECT AVG(ubigeo) FROM table_name_34 WHERE province = "chepén"
What is Chepén's average UBIGEO?
CREATE TABLE table_name_34 (ubigeo INTEGER, province VARCHAR)
SELECT combination_classification FROM table_name_17 WHERE stage = "14"
Which Combination classification has a Stage of 14?
CREATE TABLE table_name_17 (combination_classification VARCHAR, stage VARCHAR)
SELECT home_town FROM table_name_40 WHERE name = "rob cunningham"
What is the Home Town with a Name with rob cunningham?
CREATE TABLE table_name_40 (home_town VARCHAR, name VARCHAR)
SELECT opponent FROM table_name_35 WHERE loss = "leal (1–4)"
Who was the opponent with a Loss of Leal (1–4)?
CREATE TABLE table_name_35 (opponent VARCHAR, loss VARCHAR)
SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74"
What conference is the 1973-74 team in the Atlantic Division (Div.)?
CREATE TABLE table_name_95 (conference__conf_ VARCHAR, division__div_ VARCHAR, team VARCHAR)
SELECT position FROM table_name_25 WHERE pick__number = 77
What is the Position of Pick #77?
CREATE TABLE table_name_25 (position VARCHAR, pick__number VARCHAR)
SELECT city_of_license FROM table_name_5 WHERE frequency_mhz < 100.1
Which city of license has a frequency less than 100.1?
CREATE TABLE table_name_5 (city_of_license VARCHAR, frequency_mhz INTEGER)
SELECT venue FROM table_name_67 WHERE home_team = "melbourne"
what is the venue when the home team is melbourne?
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
SELECT SUM(rank) FROM table_name_39 WHERE placings = 58
Tell me the sum of rank for placings of 58
CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR)
SELECT 2 AS nd_leg FROM table_name_90 WHERE team_1 = "hamburg"
Name the 2nd leg for team 1 of hamburg
CREATE TABLE table_name_90 (team_1 VARCHAR)
SELECT T2.name, COUNT(*) FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id
Show the station name and number of trains in each station.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
SELECT place FROM table_name_7 WHERE player = "dave barr"
In what place did Dave Barr score?
CREATE TABLE table_name_7 (place VARCHAR, player VARCHAR)
SELECT opponent FROM table_name_52 WHERE time = "3:59"
Who was the opponent with the time 3:59?
CREATE TABLE table_name_52 (opponent VARCHAR, time VARCHAR)
SELECT MIN(year) FROM table_name_97 WHERE team = "baltimore ravens" AND games < 15
What year did Willis McGahee play fewer than 15 games with the Baltimore Ravens?
CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, games VARCHAR)
SELECT score FROM table_name_97 WHERE home = "broadview hawks"
What was the score of the game with the Broadview Hawks as the home team?
CREATE TABLE table_name_97 (score VARCHAR, home VARCHAR)