question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the Score of spain?
CREATE TABLE table_name_99 (score VARCHAR, country VARCHAR)
SELECT score FROM table_name_99 WHERE country = "spain"
Find the names of the customers who have an deputy policy.
CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy"
What is the average total that is 1st in 2010?
CREATE TABLE table_name_8 (total INTEGER)
SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st"
What is the total number of FA trophies of player Neil Grayson, who has more than 2 FA cups and a league greater than 17?
CREATE TABLE table_name_17 (fa_trophy VARCHAR, league VARCHAR, fa_cup VARCHAR, player VARCHAR)
SELECT COUNT(fa_trophy) FROM table_name_17 WHERE fa_cup > 2 AND player = "neil grayson" AND league > 17
Which operating system has 1GB (mobile ddr) memory (RAM)?
CREATE TABLE table_name_27 (operating_system_version VARCHAR, memory___ram__ VARCHAR)
SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = "1gb (mobile ddr)"
What are the original air dates for episodes directed by fred toye?
CREATE TABLE table_27969432_3 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT original_air_date FROM table_27969432_3 WHERE directed_by = "Fred Toye"
Who is the perpetrator in Bait Al-Aqari?
CREATE TABLE table_name_64 (perpetrator VARCHAR, location VARCHAR)
SELECT perpetrator FROM table_name_64 WHERE location = "bait al-aqari"
What surface was played on against Shahar Pe'er?
CREATE TABLE table_name_61 (surface VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_61 WHERE opponent = "shahar pe'er"
Which away team played the home team of Footscray?
CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_56 WHERE home_team = "footscray"
what is the grid when the time/retired is +27.112?
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112"
Which Date had a Transfer fee of £8.8m?
CREATE TABLE table_name_45 (date VARCHAR, transfer_fee VARCHAR)
SELECT date FROM table_name_45 WHERE transfer_fee = "£8.8m"
With 10 as matches, and 469 runs, what is the strike rate?
CREATE TABLE table_name_24 (strike_rate VARCHAR, matches VARCHAR, runs VARCHAR)
SELECT strike_rate FROM table_name_24 WHERE matches = "10" AND runs = "469"
What national cup has fc barcelona?
CREATE TABLE table_name_91 (national_cup VARCHAR, club VARCHAR)
SELECT national_cup FROM table_name_91 WHERE club = "fc barcelona"
How many total goals scored when less than 30 games have been played?
CREATE TABLE table_name_71 (goals_scored VARCHAR, games_played INTEGER)
SELECT COUNT(goals_scored) FROM table_name_71 WHERE games_played < 30
What is the English word for the Russian words loshad, kobyla (лошадь, кобыла)?
CREATE TABLE table_15040_8 (english VARCHAR, russian VARCHAR)
SELECT english FROM table_15040_8 WHERE russian = "loshad, kobyla (лошадь, кобыла)"
as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat
CREATE TABLE table_23197088_4 (score_in_final VARCHAR, opponents_in_final VARCHAR)
SELECT COUNT(score_in_final) FROM table_23197088_4 WHERE opponents_in_final = "Alexandra Fusai Nathalie Tauziat"
How many tariff codes have a bts retail price of 2p/min or inclusive?
CREATE TABLE table_10408617_5 (tariff_code VARCHAR, bts_retail_price__regulated_ VARCHAR)
SELECT COUNT(tariff_code) FROM table_10408617_5 WHERE bts_retail_price__regulated_ = "2p/min or inclusive"
Which Year has a Position of 4th?
CREATE TABLE table_name_6 (year INTEGER, position VARCHAR)
SELECT SUM(year) FROM table_name_6 WHERE position = "4th"
Which High rebounds has a Game of 76?
CREATE TABLE table_name_97 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_97 WHERE game = 76
who is the the incumbent with dbeingtrict being florida 2
CREATE TABLE table_1342013_9 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1342013_9 WHERE district = "Florida 2"
How large is the Boreal Shield in km2?
CREATE TABLE table_15555661_2 (area__km²_ VARCHAR, ecozone VARCHAR)
SELECT COUNT(area__km²_) FROM table_15555661_2 WHERE ecozone = "Boreal Shield"
What is the away team of match 9?
CREATE TABLE table_name_52 (away_team VARCHAR, match_no VARCHAR)
SELECT away_team FROM table_name_52 WHERE match_no = "9"
What was the attendance at the Footscray away game?
CREATE TABLE table_name_19 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_19 WHERE away_team = "footscray"
In 2012, which round in the Open Cup did Real Colorado Foxes make it to the conference semifinal?
CREATE TABLE table_name_61 (open_cup VARCHAR, playoffs VARCHAR, year VARCHAR)
SELECT open_cup FROM table_name_61 WHERE playoffs = "conference semifinal" AND year = 2012
Who was the home team when Geelong was the away team?
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_76 WHERE away_team = "geelong"
What is the quantity made number for the quantity preserved 4-6-0 — ooooo — ten-wheeler?
CREATE TABLE table_name_65 (quantity_made VARCHAR, quantity_preserved VARCHAR)
SELECT quantity_made FROM table_name_65 WHERE quantity_preserved = "4-6-0 — ooooo — ten-wheeler"
Name the tongyong for qiaotou
CREATE TABLE table_17015_2 (tongyong VARCHAR, hanyu VARCHAR)
SELECT COUNT(tongyong) FROM table_17015_2 WHERE hanyu = "Qiaotou"
What is the highest number of points for players with less than 2 touchdowns and 0 extra points?
CREATE TABLE table_name_88 (points INTEGER, extra_points VARCHAR, touchdowns VARCHAR)
SELECT MAX(points) FROM table_name_88 WHERE extra_points = 0 AND touchdowns < 2
On what date is St Kilda the away team?
CREATE TABLE table_name_31 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_31 WHERE away_team = "st kilda"
What is the value of the item "Points" when the value of the item "Points against" is 272?
CREATE TABLE table_name_62 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_62 WHERE points_against = "272"
What's the record of game 67?
CREATE TABLE table_name_42 (record VARCHAR, game VARCHAR)
SELECT record FROM table_name_42 WHERE game = 67
What was the original name of the Spanish song in Spain?
CREATE TABLE table_name_71 (original_name VARCHAR, language VARCHAR, country VARCHAR)
SELECT original_name FROM table_name_71 WHERE language = "spanish" AND country = "spain"
What date did home team liverpool play?
CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_70 WHERE home_team = "liverpool"
What is the average year for the Olympic Games?
CREATE TABLE table_name_68 (year INTEGER, competition VARCHAR)
SELECT AVG(year) FROM table_name_68 WHERE competition = "olympic games"
who is the the incumbent with candidates being jack z. anderson (r) unopposed
CREATE TABLE table_1342233_6 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_1342233_6 WHERE candidates = "Jack Z. Anderson (R) Unopposed"
What is the date where the record was 18–12?
CREATE TABLE table_27700530_10 (date VARCHAR, record VARCHAR)
SELECT date FROM table_27700530_10 WHERE record = "18–12"
What is the liberal ticket that has judith white as the socialist workers?
CREATE TABLE table_name_73 (liberal_ticket VARCHAR, socialist_workers_ticket VARCHAR)
SELECT liberal_ticket FROM table_name_73 WHERE socialist_workers_ticket = "judith white"
What is the RAtt when the long is 73?
CREATE TABLE table_name_83 (ratt VARCHAR, long VARCHAR)
SELECT ratt FROM table_name_83 WHERE long = "73"
What's the enrollment for Kendallville?
CREATE TABLE table_name_73 (enrollment INTEGER, location VARCHAR)
SELECT MAX(enrollment) FROM table_name_73 WHERE location = "kendallville"
Which analog channel is Fox on?
CREATE TABLE table_name_16 (analog_channel VARCHAR, network VARCHAR)
SELECT analog_channel FROM table_name_16 WHERE network = "fox"
What is shintaro ishiwatari's time?
CREATE TABLE table_name_6 (time VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_6 WHERE opponent = "shintaro ishiwatari"
What's the team number with John Wall (9) in high assists and a w 97–83 (ot) score?
CREATE TABLE table_27721131_2 (team VARCHAR, high_assists VARCHAR, score VARCHAR)
SELECT COUNT(team) FROM table_27721131_2 WHERE high_assists = "John Wall (9)" AND score = "W 97–83 (OT)"
What is the womens singles of marcus ellis gabrielle white?
CREATE TABLE table_12104319_1 (womens_singles VARCHAR, mixed_doubles VARCHAR)
SELECT womens_singles FROM table_12104319_1 WHERE mixed_doubles = "Marcus Ellis Gabrielle White"
Who directed the show that had a TV broadcast of S07E04?
CREATE TABLE table_16090262_1 (directed_by VARCHAR, tv_broadcast VARCHAR)
SELECT directed_by FROM table_16090262_1 WHERE tv_broadcast = "S07E04"
Lowest round for g that was smaller than 31?
CREATE TABLE table_name_76 (round INTEGER, position VARCHAR, overall VARCHAR)
SELECT MIN(round) FROM table_name_76 WHERE position = "g" AND overall < 31
What was the tier versus Annalisa bona?
CREATE TABLE table_name_59 (tier VARCHAR, opponent_in_the_final VARCHAR)
SELECT tier FROM table_name_59 WHERE opponent_in_the_final = "annalisa bona"
When was the opponent Arsenal?
CREATE TABLE table_name_62 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_62 WHERE opponent = "arsenal"
What is the Year of submission of the Film The Art of Crying?
CREATE TABLE table_name_70 (year INTEGER, english_title VARCHAR)
SELECT MIN(year) FROM table_name_70 WHERE english_title = "the art of crying"
What is the sum of the Billboard 200 Peak scores given to the song with the Title Bread?
CREATE TABLE table_name_70 (billboard_200_peak INTEGER, title VARCHAR)
SELECT SUM(billboard_200_peak) FROM table_name_70 WHERE title = "bread"
Which masthead ends on oct–69?
CREATE TABLE table_name_15 (masthead VARCHAR, end_month VARCHAR)
SELECT masthead FROM table_name_15 WHERE end_month = "oct–69"
Which Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127?
CREATE TABLE table_name_57 (location VARCHAR, event VARCHAR, method VARCHAR, round VARCHAR)
SELECT location FROM table_name_57 WHERE method = "submission (rear naked choke)" AND round = 1 AND event = "ufc 127"
What is the date of the match with a 28-15 record?
CREATE TABLE table_name_24 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_24 WHERE record = "28-15"
Name the total number of offensive for colin doyle
CREATE TABLE table_23265433_2 (offensive VARCHAR, overall VARCHAR)
SELECT COUNT(offensive) FROM table_23265433_2 WHERE overall = "Colin Doyle"
What is the greatest 2007 when the change 06-07 was 14.7%?
CREATE TABLE table_name_61 (change_06_07 VARCHAR)
SELECT MAX(2007) FROM table_name_61 WHERE change_06_07 = "14.7%"
What is the name of the tournament that has the results of 2003 2r and 2004 1r?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT tournament FROM table_name_25 WHERE 2003 = "2r" AND 2004 = "1r"
What is the result when the score is 8-1?
CREATE TABLE table_name_75 (result VARCHAR, score VARCHAR)
SELECT result FROM table_name_75 WHERE score = "8-1"
What chasis did the maserati l6s have?
CREATE TABLE table_21977627_1 (chassis VARCHAR, engine VARCHAR)
SELECT chassis FROM table_21977627_1 WHERE engine = "Maserati L6s"
How many average attendance has a capacity percentage of 96.5%
CREATE TABLE table_28884858_1 (average_attendance VARCHAR, capacity_percentage VARCHAR)
SELECT COUNT(average_attendance) FROM table_28884858_1 WHERE capacity_percentage = "96.5%"
What is Road Team, when Result is "74-71"?
CREATE TABLE table_name_36 (road_team VARCHAR, result VARCHAR)
SELECT road_team FROM table_name_36 WHERE result = "74-71"
What is the Bike with 18 laps and +41.280 as the time?
CREATE TABLE table_name_51 (bike VARCHAR, laps VARCHAR, time VARCHAR)
SELECT bike FROM table_name_51 WHERE laps = 18 AND time = "+41.280"
What episode number is presented by Ben Okri ?
CREATE TABLE table_15211468_3 (episode_no VARCHAR, presenter VARCHAR)
SELECT episode_no FROM table_15211468_3 WHERE presenter = "Ben Okri"
Who was the center from Washington State?
CREATE TABLE table_name_90 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_90 WHERE position = "center" AND school_club_team = "washington state"
How many lessons taught by staff whose first name has letter 'a' in it?
CREATE TABLE Lessons (staff_id VARCHAR); CREATE TABLE Staff (staff_id VARCHAR, first_name VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
What is the Money for the T1 Player with a Score of 66-69-70-75=280?
CREATE TABLE table_name_90 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
SELECT money___$__ FROM table_name_90 WHERE place = "t1" AND score = 66 - 69 - 70 - 75 = 280
How many divisions in bowling ?
CREATE TABLE table_2849652_1 (_number_of_divisions VARCHAR, sport VARCHAR)
SELECT _number_of_divisions FROM table_2849652_1 WHERE sport = "Bowling"
What is the year Rowan University was established
CREATE TABLE table_16432543_1 (established VARCHAR, institution VARCHAR)
SELECT established FROM table_16432543_1 WHERE institution = "Rowan University"
How many Againsts have more than 15 wins?
CREATE TABLE table_name_84 (against VARCHAR, wins INTEGER)
SELECT COUNT(against) FROM table_name_84 WHERE wins > 15
What was the highest attendance for the Hispano team?
CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR)
SELECT MAX(attendance) FROM table_name_56 WHERE home = "hispano"
What was the Rampage's regular season in 1997?
CREATE TABLE table_name_12 (reg_season VARCHAR, year VARCHAR)
SELECT reg_season FROM table_name_12 WHERE year = 1997
Which Atomic property has Helium of 4.16?
CREATE TABLE table_name_57 (atomic_property VARCHAR, helium VARCHAR)
SELECT atomic_property FROM table_name_57 WHERE helium = "4.16"
Find the ids and names of members who are under age 30 or with black membership card.
CREATE TABLE member (name VARCHAR, member_id VARCHAR, Membership_card VARCHAR, age VARCHAR)
SELECT name, member_id FROM member WHERE Membership_card = 'Black' OR age < 30
Which pick has a school/club team that is kentucky?
CREATE TABLE table_name_26 (pick VARCHAR, school_club_team VARCHAR)
SELECT pick FROM table_name_26 WHERE school_club_team = "kentucky"
What is the maximum torque at rpm for the engine with code BMM?
CREATE TABLE table_name_90 (max_torque_at_rpm VARCHAR, engine_code_s_ VARCHAR)
SELECT max_torque_at_rpm FROM table_name_90 WHERE engine_code_s_ = "bmm"
What is the 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?
CREATE TABLE table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR)
SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000
How many goals did the player from England who played the position of mf and had 170 club apps had?
CREATE TABLE table_name_8 (goals VARCHAR, club_apps VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT goals FROM table_name_8 WHERE nationality = "england" AND position = "mf" AND club_apps = "170"
What is the 2010 when the 2009 is 1r, and a 2008 is 1r?
CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 2010 FROM table_name_87 WHERE 2009 = "1r" AND 2008 = "1r"
What is the place of To par of e when Arron Oberholser was the player ?
CREATE TABLE table_name_66 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT place FROM table_name_66 WHERE to_par = "e" AND player = "arron oberholser"
What is the name of episode 120 in the series that Mike Rohl directed?
CREATE TABLE table_27892955_1 (title VARCHAR, directed_by VARCHAR, no_in_series VARCHAR)
SELECT title FROM table_27892955_1 WHERE directed_by = "Mike Rohl" AND no_in_series = 120
What was the name of the player that had a vote percentage of 7.85%?
CREATE TABLE table_24765815_1 (player VARCHAR, vote_percentage VARCHAR)
SELECT player FROM table_24765815_1 WHERE vote_percentage = "7.85%"
When was his first game on a clay surface where he scored 0–6, 3–6?
CREATE TABLE table_name_24 (date INTEGER, surface VARCHAR, score VARCHAR)
SELECT MIN(date) FROM table_name_24 WHERE surface = "clay" AND score = "0–6, 3–6"
Show the nominees that have nominated musicals for both "Tony Award" and "Drama Desk Award".
CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR)
SELECT Nominee FROM musical WHERE Award = "Tony Award" INTERSECT SELECT Nominee FROM musical WHERE Award = "Drama Desk Award"
What is Tournament, when Runner(s)-Up is Garth Mulroy?
CREATE TABLE table_name_70 (tournament VARCHAR, runner_s__up VARCHAR)
SELECT tournament FROM table_name_70 WHERE runner_s__up = "garth mulroy"
Where is Cameron Beckman's rank on the money list?
CREATE TABLE table_29499399_2 (money_list_rank VARCHAR, player VARCHAR)
SELECT money_list_rank FROM table_29499399_2 WHERE player = "Cameron Beckman"
What was the number of viewers for the episode having a fourth couple of Tony and Jamie?
CREATE TABLE table_25664518_3 (viewers__millions_ VARCHAR, fourth_couple VARCHAR)
SELECT viewers__millions_ FROM table_25664518_3 WHERE fourth_couple = "Tony and Jamie"
What is Norikazu Murakami's total?
CREATE TABLE table_name_41 (total VARCHAR, name VARCHAR)
SELECT total FROM table_name_41 WHERE name = "norikazu murakami"
Which Date has a Score of 2–7, and a Record of 5–8–2?
CREATE TABLE table_name_50 (date VARCHAR, score VARCHAR, record VARCHAR)
SELECT date FROM table_name_50 WHERE score = "2–7" AND record = "5–8–2"
What is the score of the game with the streak l5
CREATE TABLE table_11964047_10 (score VARCHAR, streak VARCHAR)
SELECT score FROM table_11964047_10 WHERE streak = "L5"
Which Place that has Money of 150, and a Player of bobby cruickshank?
CREATE TABLE table_name_83 (place VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT place FROM table_name_83 WHERE money___$__ = 150 AND player = "bobby cruickshank"
What team was the game on November 21 played against?
CREATE TABLE table_17326036_5 (team VARCHAR, date VARCHAR)
SELECT team FROM table_17326036_5 WHERE date = "November 21"
What season episode is directed by Skipp Sudduth?
CREATE TABLE table_17356205_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT season__number FROM table_17356205_1 WHERE directed_by = "Skipp Sudduth"
What is the unemployment rate for the county with a market income per capita of $20,958?
CREATE TABLE table_22815568_2 (unemployment_rate VARCHAR, market_income_per_capita VARCHAR)
SELECT COUNT(unemployment_rate) FROM table_22815568_2 WHERE market_income_per_capita = "$20,958"
What is the largest ethnic group in 2002 for the cyrillic name, other name of бешка?
CREATE TABLE table_2562572_54 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT largest_ethnic_group__2002_ FROM table_2562572_54 WHERE cyrillic_name_other_names = "Бешка"
What was the smallest crowd size for a home game for Richmond?
CREATE TABLE table_name_47 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_47 WHERE home_team = "richmond"
What is the team of winner Dick Johnson?
CREATE TABLE table_name_55 (team VARCHAR, winner VARCHAR)
SELECT team FROM table_name_55 WHERE winner = "dick johnson"
Which opponent was present on March 28?
CREATE TABLE table_name_40 (opponent VARCHAR, march VARCHAR)
SELECT opponent FROM table_name_40 WHERE march = 28
What is the title of the story published on October 19, 2011?
CREATE TABLE table_name_42 (story VARCHAR, date VARCHAR)
SELECT story FROM table_name_42 WHERE date = "october 19, 2011"
What team owns the Venue of western oval?
CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_52 WHERE venue = "western oval"
Which Centerfold model has a Cover model of irina voronina?
CREATE TABLE table_name_81 (centerfold_model VARCHAR, cover_model VARCHAR)
SELECT centerfold_model FROM table_name_81 WHERE cover_model = "irina voronina"
Can you tell me the Location Attendance that has the High assists of luke ridnour (10), and the Date of december 3?
CREATE TABLE table_name_10 (location_attendance VARCHAR, high_assists VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_10 WHERE high_assists = "luke ridnour (10)" AND date = "december 3"
Which Location Attendance has a Game larger than 67, and a Team of @ charlotte?
CREATE TABLE table_name_92 (location_attendance VARCHAR, game VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_92 WHERE game > 67 AND team = "@ charlotte"