question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the days with rain figure for the city of Santiago de Compostela?
CREATE TABLE table_12837_1 (days_with_rain__year_summer_ VARCHAR, city_town VARCHAR)
SELECT days_with_rain__year_summer_ FROM table_12837_1 WHERE city_town = "Santiago de Compostela"
How many cup goals for the season with more than 34 league apps?
CREATE TABLE table_name_9 (cup_goals INTEGER, league_apps INTEGER)
SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 34
Which Opponent has a Week larger than 3, and a Game site of mile high stadium, and a Record of 3–3?
CREATE TABLE table_name_46 (opponent VARCHAR, record VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_name_46 WHERE week > 3 AND game_site = "mile high stadium" AND record = "3–3"
Name the number of pinyin where simplified is 河西区
CREATE TABLE table_1638437_2 (pinyin VARCHAR, simplified VARCHAR)
SELECT COUNT(pinyin) FROM table_1638437_2 WHERE simplified = "河西区"
What was the original title of the Hindi film?
CREATE TABLE table_name_88 (original_title VARCHAR, language VARCHAR)
SELECT original_title FROM table_name_88 WHERE language = "hindi"
What was the record after the game at the Astrodome?
CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR)
SELECT record FROM table_name_37 WHERE location = "astrodome"
what are all the adversary where the beginning is 1899
CREATE TABLE table_2846320_4 (rival VARCHAR, first_meeting VARCHAR)
SELECT rival FROM table_2846320_4 WHERE first_meeting = 1899
What's the mean game number for the olympiacos team when there's less than 17 rebounds?
CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, rebounds VARCHAR)
SELECT AVG(games) FROM table_name_75 WHERE team = "olympiacos" AND rebounds < 17
What RolePlay actor played the same role Alison Pargeter played in the original production?
CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR)
SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
Which city holds Newcastle Airport?
CREATE TABLE table_name_98 (city VARCHAR, airport VARCHAR)
SELECT city FROM table_name_98 WHERE airport = "newcastle airport"
what is the production in 2010 with 2011 production of 2,240,000?
CREATE TABLE table_name_23 (Id VARCHAR)
SELECT 2010 FROM table_name_23 WHERE 2011 = "2,240,000"
Name the torque of the engine is d5244 t5
CREATE TABLE table_1147701_5 (torque__nm VARCHAR, engine_code VARCHAR)
SELECT torque__nm AS @rpm_ FROM table_1147701_5 WHERE engine_code = "D5244 T5"
What game in February 10, 2009 has the most points and a game number larger than 54?
CREATE TABLE table_name_27 (points INTEGER, date VARCHAR, game VARCHAR)
SELECT MAX(points) FROM table_name_27 WHERE date = "february 10, 2009" AND game > 54
Which race did Bill Holland win in 1946?
CREATE TABLE table_name_40 (race_name VARCHAR, year VARCHAR, winner VARCHAR)
SELECT race_name FROM table_name_40 WHERE year = 1946 AND winner = "bill holland"
Tell me the venue of 29 april 2007
CREATE TABLE table_name_14 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_14 WHERE date = "29 april 2007"
What is the first year she played in the french open?
CREATE TABLE table_1920271_2 (year INTEGER, championship VARCHAR)
SELECT MIN(year) FROM table_1920271_2 WHERE championship = "French Open"
What is the Burmese term for Thursday?
CREATE TABLE table_14850099_18 (burmese VARCHAR, english VARCHAR)
SELECT burmese FROM table_14850099_18 WHERE english = "Thursday"
What is the average Attendance, when Date is 1 October 1998?
CREATE TABLE table_name_28 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_28 WHERE date = "1 october 1998"
Who was the home team on February 18 that had a visitor of the Chicago Black Hawks?
CREATE TABLE table_name_56 (home VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT home FROM table_name_56 WHERE visitor = "chicago black hawks" AND date = "february 18"
What was the Outcome against Opponent in the Final Carlos Kirmayr?
CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr"
What contestant had a starting BMI of 42.2?
CREATE TABLE table_name_10 (contestant VARCHAR, start_bmi VARCHAR)
SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2
For location Caversham, what is the name of the captain?
CREATE TABLE table_18752986_1 (captain VARCHAR, location VARCHAR)
SELECT captain FROM table_18752986_1 WHERE location = "Caversham"
What is the tournament location when Vicky Hurst in the champion?
CREATE TABLE table_12243817_1 (tournament_location VARCHAR, champion VARCHAR)
SELECT tournament_location FROM table_12243817_1 WHERE champion = "Vicky Hurst"
Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?
CREATE TABLE table_name_14 (assist_pass VARCHAR, score VARCHAR, competition VARCHAR)
SELECT assist_pass FROM table_name_14 WHERE score = "1-0" AND competition = "2010 concacaf world cup qualifying – group stage"
what is the team when the rounds is all engine is mercedes hwa and driver is sam abay?
CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT team FROM table_name_54 WHERE rounds = "all" AND engine = "mercedes hwa" AND driver = "sam abay"
How many total goals have 0 (3) as total apps, with league goals less than 0?
CREATE TABLE table_name_80 (total_goals VARCHAR, total_apps VARCHAR, league_goals VARCHAR)
SELECT COUNT(total_goals) FROM table_name_80 WHERE total_apps = "0 (3)" AND league_goals < 0
What is the loss for the game against @ expos, with a save of parrett (2)?
CREATE TABLE table_name_28 (loss VARCHAR, opponent VARCHAR, save VARCHAR)
SELECT loss FROM table_name_28 WHERE opponent = "@ expos" AND save = "parrett (2)"
Which Attendance has a Result of w 51-21?
CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_70 WHERE result = "w 51-21"
What is the score of the game that was a loss to Dotson (2-3)?
CREATE TABLE table_name_34 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_34 WHERE loss = "dotson (2-3)"
Name the sum of points for chassis of brm p160e and year more than 1974
CREATE TABLE table_name_32 (points INTEGER, chassis VARCHAR, year VARCHAR)
SELECT SUM(points) FROM table_name_32 WHERE chassis = "brm p160e" AND year > 1974
If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27?
CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR)
SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = "20' 49.46 108.709mph"
What is the home team when the opposition is wairarapa bush?
CREATE TABLE table_26847237_3 (home_team VARCHAR, opposition VARCHAR)
SELECT home_team FROM table_26847237_3 WHERE opposition = "Wairarapa Bush"
What is the career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
CREATE TABLE table_name_23 (career_w_l VARCHAR)
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r"
What is the average and maximum number of total passengers for train stations in London or Glasgow?
CREATE TABLE station (total_passengers INTEGER, LOCATION VARCHAR)
SELECT AVG(total_passengers), MAX(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'
What's the term start date for Meretz?
CREATE TABLE table_name_94 (term_start VARCHAR, party VARCHAR)
SELECT term_start FROM table_name_94 WHERE party = "meretz"
What Class has 36 Points?
CREATE TABLE table_name_68 (class VARCHAR, points VARCHAR)
SELECT class FROM table_name_68 WHERE points = 36
Which Tournament has a Opponent of piero luisi?
CREATE TABLE table_name_31 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_31 WHERE opponent = "piero luisi"
How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38?
CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38
What was the date of the game against the New York Jets?
CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_7 WHERE opponent = "new york jets"
What is the score for the interview for the state of New York?
CREATE TABLE table_12094300_1 (interview VARCHAR, state VARCHAR)
SELECT interview FROM table_12094300_1 WHERE state = "New York"
What place is player johnny miller, who has a to par of +2?
CREATE TABLE table_name_28 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT place FROM table_name_28 WHERE to_par = "+2" AND player = "johnny miller"
What is the measure number for the bill described as obscenity and sexual conduct bill?
CREATE TABLE table_256286_61 (meas_num VARCHAR, description VARCHAR)
SELECT meas_num FROM table_256286_61 WHERE description = "Obscenity and sexual conduct bill"
What was the result of the player from Maylands, Western Australia?
CREATE TABLE table_24501530_1 (result VARCHAR, hometown VARCHAR)
SELECT result FROM table_24501530_1 WHERE hometown = "Maylands, Western Australia"
How many played when lost is more than 17, drawn is 15 and goals against is less than 75?
CREATE TABLE table_name_85 (played INTEGER, goals_against VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT AVG(played) FROM table_name_85 WHERE lost > 17 AND drawn = 15 AND goals_against < 75
How many counties have a place name of Macedonia?
CREATE TABLE table_249512_2 (a_ VARCHAR, county_ies__ VARCHAR, place_name VARCHAR)
SELECT COUNT(county_ies__)[a_] FROM table_249512_2 WHERE place_name = "Macedonia"
Which Gold has a Bronze of 1, and a Total smaller than 3?
CREATE TABLE table_name_21 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT AVG(gold) FROM table_name_21 WHERE bronze = 1 AND total < 3
What T9 Player had a Score of 70-74-69-70=283?
CREATE TABLE table_name_93 (player VARCHAR, place VARCHAR, score VARCHAR)
SELECT player FROM table_name_93 WHERE place = "t9" AND score = 70 - 74 - 69 - 70 = 283
If graphics mode is less than 1.0, what are the char cells?
CREATE TABLE table_18950885_3 (char_cells VARCHAR, graphics_mode INTEGER)
SELECT char_cells FROM table_18950885_3 WHERE graphics_mode < 1.0
What is the surface for the year 2001?
CREATE TABLE table_23297_3 (surface VARCHAR, year VARCHAR)
SELECT surface FROM table_23297_3 WHERE year = 2001
Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1
CREATE TABLE table_name_61 (fencing_victories__pts_ VARCHAR, shooting_score__pts_ VARCHAR, total VARCHAR)
SELECT fencing_victories__pts_ FROM table_name_61 WHERE shooting_score__pts_ = "187 (1180)" AND total < 5640
What is the number of 1991 populations named Bečej?
CREATE TABLE table_2562572_2 (population__1991_ VARCHAR, city___municipality VARCHAR)
SELECT COUNT(population__1991_) FROM table_2562572_2 WHERE city___municipality = "Bečej"
On January 15, what was the most in attendance?
CREATE TABLE table_name_42 (attendance INTEGER, date VARCHAR)
SELECT MAX(attendance) FROM table_name_42 WHERE date = "january 15"
What is the highest rank of a company in the oil and gas industry headquartered in Netherlands?
CREATE TABLE table_1682026_7 (rank INTEGER, industry VARCHAR, headquarters VARCHAR)
SELECT MAX(rank) FROM table_1682026_7 WHERE industry = "Oil and gas" AND headquarters = "Netherlands"
What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?
CREATE TABLE table_23465864_4 (sat_29_aug VARCHAR, tues_25_aug VARCHAR)
SELECT sat_29_aug FROM table_23465864_4 WHERE tues_25_aug = "23' 18.82 97.102mph"
What is the height for player number 5?
CREATE TABLE table_12962773_12 (height VARCHAR, no VARCHAR)
SELECT COUNT(height) FROM table_12962773_12 WHERE no = 5
Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%
CREATE TABLE table_name_23 (ifop_5_11_09 VARCHAR, opinionway_5_11_09 VARCHAR, ipsos_3_14_09 VARCHAR)
SELECT ifop_5_11_09 FROM table_name_23 WHERE opinionway_5_11_09 = "2%" AND ipsos_3_14_09 = "2%"
Find the total claimed amount of all the claims.
CREATE TABLE Claims (Amount_Claimed INTEGER)
SELECT SUM(Amount_Claimed) FROM Claims
How much power covers dumaguete central visayas region?
CREATE TABLE table_24418525_1 (power_kw VARCHAR, coverage VARCHAR)
SELECT COUNT(power_kw) FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region"
How many characters were portrayed by the informant of don flack?
CREATE TABLE table_11240028_3 (portrayed_by VARCHAR, relationship VARCHAR)
SELECT COUNT(portrayed_by) FROM table_11240028_3 WHERE relationship = "Informant of Don Flack"
What poll source had an administered date on July 10, 2008?
CREATE TABLE table_16751596_6 (poll_source VARCHAR, dates_administered VARCHAR)
SELECT poll_source FROM table_16751596_6 WHERE dates_administered = "July 10, 2008"
Name the iso for chungcheongnam
CREATE TABLE table_160510_5 (iso VARCHAR, rr_romaja VARCHAR)
SELECT iso FROM table_160510_5 WHERE rr_romaja = "Chungcheongnam"
Name the sum of time for lane of 1 and rank less than 8
CREATE TABLE table_name_17 (time INTEGER, lane VARCHAR, rank VARCHAR)
SELECT SUM(time) FROM table_name_17 WHERE lane = 1 AND rank < 8
How many people attended the green bay packers game?
CREATE TABLE table_name_14 (attendance INTEGER, opponent VARCHAR)
SELECT SUM(attendance) FROM table_name_14 WHERE opponent = "green bay packers"
How many games ended up with 16 points?
CREATE TABLE table_12886178_4 (played VARCHAR, points VARCHAR)
SELECT played FROM table_12886178_4 WHERE points = "16"
Who was the opponent when 48,121 people attended?
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_49 WHERE attendance = "48,121"
Name the nationality for pick of 16
CREATE TABLE table_name_12 (nationality VARCHAR, pick VARCHAR)
SELECT nationality FROM table_name_12 WHERE pick = 16
Who was the womens singles winnerwhen the mens doubles were stefan karlsson claes nordin , bk aura gbk?
CREATE TABLE table_12266757_1 (womens_singles VARCHAR, mens_doubles VARCHAR)
SELECT womens_singles FROM table_12266757_1 WHERE mens_doubles = "Stefan Karlsson Claes Nordin , BK Aura GBK"
Which DOB has Throws of r, and a Position of c, and a First of torey?
CREATE TABLE table_name_25 (dob VARCHAR, first VARCHAR, throws VARCHAR, position VARCHAR)
SELECT dob FROM table_name_25 WHERE throws = "r" AND position = "c" AND first = "torey"
What was the final score for the Thurrock?
CREATE TABLE table_name_99 (score1 VARCHAR, opponent VARCHAR)
SELECT score1 FROM table_name_99 WHERE opponent = "thurrock"
What are the terminals for line 2?
CREATE TABLE table_1603807_2 (terminals VARCHAR, line VARCHAR)
SELECT terminals FROM table_1603807_2 WHERE line = "line 2"
Which Venue has a Year of 2005?
CREATE TABLE table_name_37 (venue VARCHAR, year VARCHAR)
SELECT venue FROM table_name_37 WHERE year = "2005"
Which venue was used 11 february 1996?
CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_45 WHERE date = "11 february 1996"
Who was the opponent at the game that had a loss of Westbrook (2-2)?
CREATE TABLE table_name_74 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_74 WHERE loss = "westbrook (2-2)"
What other mozilla has January 2010 as the period?
CREATE TABLE table_name_80 (other_mozilla VARCHAR, period VARCHAR)
SELECT other_mozilla FROM table_name_80 WHERE period = "january 2010"
How many rounds did the event rings: king of kings 2000 block a have with a record of 6-1?
CREATE TABLE table_name_82 (round VARCHAR, event VARCHAR, record VARCHAR)
SELECT round FROM table_name_82 WHERE event = "rings: king of kings 2000 block a" AND record = "6-1"
What is the St Kilda Away team score?
CREATE TABLE table_name_24 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_24 WHERE away_team = "st kilda"
What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?
CREATE TABLE table_15647838_3 (_number INTEGER, location VARCHAR, opponent VARCHAR)
SELECT MIN(_number) FROM table_15647838_3 WHERE location = "Atlanta, GA" AND opponent = "Georgia Bulldogs"
What Gauthier had a 15 Liscumb?
CREATE TABLE table_name_65 (gauthier VARCHAR, liscumb VARCHAR)
SELECT gauthier FROM table_name_65 WHERE liscumb = "15"
What is the name of the airport located in Russia with an IATA of AER?
CREATE TABLE table_name_34 (airport VARCHAR, country VARCHAR, iata VARCHAR)
SELECT airport FROM table_name_34 WHERE country = "russia" AND iata = "aer"
What is the Place of the Player with a To par of –10 and a Score of 67-67-66=200?
CREATE TABLE table_name_89 (place VARCHAR, to_par VARCHAR, score VARCHAR)
SELECT place FROM table_name_89 WHERE to_par = "–10" AND score = 67 - 67 - 66 = 200
Which Goals have Apps smaller than 1?
CREATE TABLE table_name_41 (goals INTEGER, apps INTEGER)
SELECT AVG(goals) FROM table_name_41 WHERE apps < 1
What is the highest to par with a place of t8 and West Germany as the country?
CREATE TABLE table_name_37 (to_par INTEGER, place VARCHAR, country VARCHAR)
SELECT MAX(to_par) FROM table_name_37 WHERE place = "t8" AND country = "west germany"
What is the GEO ID of the township with area of 32.532 square miles?
CREATE TABLE table_18600760_18 (geo_id INTEGER, land___sqmi__ VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_18 WHERE land___sqmi__ = "32.532"
What is the highest number of losses that the team incurred while scoring less than 79 points in 10 games with a point differential less than 34?
CREATE TABLE table_name_69 (losses INTEGER, point_differential VARCHAR, points_for VARCHAR, games_played VARCHAR)
SELECT MAX(losses) FROM table_name_69 WHERE points_for < 79 AND games_played = 10 AND point_differential < 34
Name the least touchdowns for joe rogers
CREATE TABLE table_25646820_2 (touchdowns INTEGER, player VARCHAR)
SELECT MIN(touchdowns) FROM table_25646820_2 WHERE player = "Joe Rogers"
how many district with incumbent being lindy boggs
CREATE TABLE table_1341586_19 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs"
What is the title of the episode written by David J. Burke?
CREATE TABLE table_name_6 (title VARCHAR, written_by VARCHAR)
SELECT title FROM table_name_6 WHERE written_by = "david j. burke"
How many entrepreneurs are there?
CREATE TABLE entrepreneur (Id VARCHAR)
SELECT COUNT(*) FROM entrepreneur
Which format is released on August 29, 1998?
CREATE TABLE table_name_72 (format VARCHAR, date VARCHAR)
SELECT format FROM table_name_72 WHERE date = "august 29, 1998"
Which opponent led to a 5-2 record?
CREATE TABLE table_24560733_1 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_24560733_1 WHERE record = "5-2"
Tell me the title for the production code less than 706 with series number more than 175
CREATE TABLE table_name_78 (title VARCHAR, series__number VARCHAR, production_code VARCHAR)
SELECT title FROM table_name_78 WHERE series__number > 175 AND production_code < 706
What squad plays at comunale in darfo boario terme?
CREATE TABLE table_name_40 (name VARCHAR, home_venue VARCHAR, city VARCHAR)
SELECT name FROM table_name_40 WHERE home_venue = "comunale" AND city = "darfo boario terme"
What score points have olympic gold medalist as the rank points?
CREATE TABLE table_name_19 (score_points VARCHAR, rank_points VARCHAR)
SELECT score_points FROM table_name_19 WHERE rank_points = "olympic gold medalist"
What is the home team score when they played at Victoria Park?
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_7 WHERE venue = "victoria park"
Which Baltimore group is non-enveloped and is of the papillomaviridae family?
CREATE TABLE table_name_85 (baltimore_group VARCHAR, envelopment VARCHAR, family VARCHAR)
SELECT baltimore_group FROM table_name_85 WHERE envelopment = "non-enveloped" AND family = "papillomaviridae"
How many positions had jersey number 32
CREATE TABLE table_11734041_18 (position VARCHAR, no_s_ VARCHAR)
SELECT COUNT(position) FROM table_11734041_18 WHERE no_s_ = "32"
What is theW-L of the tournament listed as A for 1976?
CREATE TABLE table_name_82 (career_w_l VARCHAR)
SELECT career_w_l FROM table_name_82 WHERE 1976 = "a"
When did they play at the wachovia center?
CREATE TABLE table_name_75 (date VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_name_75 WHERE location_attendance = "wachovia center"
What is the difference associated with more than 2 losses and more than 1 point?
CREATE TABLE table_name_45 (points_difference VARCHAR, lost VARCHAR, points VARCHAR)
SELECT points_difference FROM table_name_45 WHERE lost > 2 AND points > 1
What is the Time/Retired for brabham - climax, on Grid of 10?
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_89 WHERE constructor = "brabham - climax" AND grid = 10