question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What year has 385 runs as the score?
CREATE TABLE table_name_38 (year VARCHAR, score VARCHAR)
SELECT year FROM table_name_38 WHERE score = "385 runs"
What District had Republican Incumbent Cathy McMorris?
CREATE TABLE table_name_75 (district VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT district FROM table_name_75 WHERE party = "republican" AND incumbent = "cathy mcmorris"
What was the qualification in 1932?
CREATE TABLE table_name_51 (qual VARCHAR, year VARCHAR)
SELECT qual FROM table_name_51 WHERE year = "1932"
What's the total when A Score was less than 6.9?
CREATE TABLE table_name_98 (total INTEGER, a_score INTEGER)
SELECT AVG(total) FROM table_name_98 WHERE a_score < 6.9
Name the realization for 'to be, to do'
CREATE TABLE table_name_71 (realization VARCHAR, gloss VARCHAR)
SELECT realization FROM table_name_71 WHERE gloss = "'to be, to do'"
What is the language of the malacca fm station?
CREATE TABLE table_1601792_3 (language VARCHAR, station VARCHAR)
SELECT language FROM table_1601792_3 WHERE station = "Malacca FM"
When were the British Grand Prix races?
CREATE TABLE table_name_95 (date VARCHAR, race VARCHAR)
SELECT date FROM table_name_95 WHERE race = "british grand prix"
What is the Record for April 13?
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_14 WHERE date = "april 13"
Who directed the episode that had 3.55 million viewers?
CREATE TABLE table_29897962_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT directed_by FROM table_29897962_1 WHERE us_viewers__million_ = "3.55"
What was the score for the game against Marquette?
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_68 WHERE opponent = "marquette"
What is the April 14 rank when the Mar 3rd is nr, and the April 21 is 13?
CREATE TABLE table_name_78 (april_14 VARCHAR, mar_3 VARCHAR, april_21 VARCHAR)
SELECT april_14 FROM table_name_78 WHERE mar_3 = "nr" AND april_21 = "13"
what is the language when the awardee is re-recordist : mateen ahmad?
CREATE TABLE table_25926120_7 (language VARCHAR, awardee_s_ VARCHAR)
SELECT language FROM table_25926120_7 WHERE awardee_s_ = "Re-recordist : Mateen Ahmad"
What is the last game of the season that has the record 0-1-0?
CREATE TABLE table_name_92 (game INTEGER, record VARCHAR)
SELECT MIN(game) FROM table_name_92 WHERE record = "0-1-0"
What positions are in the Chicago bulls?
CREATE TABLE table_name_27 (position VARCHAR, team VARCHAR)
SELECT position FROM table_name_27 WHERE team = "chicago bulls"
How many goals were there for Johan Cruyff when the rank's less than 3?
CREATE TABLE table_name_36 (goals INTEGER, name VARCHAR, rank VARCHAR)
SELECT SUM(goals) FROM table_name_36 WHERE name = "johan cruyff" AND rank < 3
How many schools have some students playing in goalie and mid positions.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')
what is the base when the play is thesmophoriazusae?
CREATE TABLE table_name_67 (base VARCHAR, play VARCHAR)
SELECT base FROM table_name_67 WHERE play = "thesmophoriazusae"
What were the points for that had a game where there was 678 against?
CREATE TABLE table_name_78 (points_for VARCHAR, points_against VARCHAR)
SELECT points_for FROM table_name_78 WHERE points_against = "678"
What Country has a 67 score by Phil Mickelson?
CREATE TABLE table_name_89 (country VARCHAR, score VARCHAR, player VARCHAR)
SELECT country FROM table_name_89 WHERE score = 67 AND player = "phil mickelson"
WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED?
CREATE TABLE table_name_74 (name VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR)
SELECT name FROM table_name_74 WHERE transfer_fee = "free" AND moving_to = "retired"
what game ended f-a with a round of round 1 replay
CREATE TABLE table_name_63 (result_f___a VARCHAR, round VARCHAR)
SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay"
What is the snowfall for ski resort Snowmass?
CREATE TABLE table_25762852_1 (snowfall__in_year_ INTEGER, name VARCHAR)
SELECT MAX(snowfall__in_year_) FROM table_25762852_1 WHERE name = "Snowmass"
How many years had a 100 m hurdles event at the world championships in Osaka, Japan?
CREATE TABLE table_name_96 (year INTEGER, venue VARCHAR, event VARCHAR, competition VARCHAR)
SELECT SUM(year) FROM table_name_96 WHERE event = "100 m hurdles" AND competition = "world championships" AND venue = "osaka, japan"
What was the highest number of attendance in a week before 8 and game on October 25, 1981?
CREATE TABLE table_name_25 (attendance INTEGER, date VARCHAR, week VARCHAR)
SELECT MAX(attendance) FROM table_name_25 WHERE date = "october 25, 1981" AND week < 8
What date was the visitor chicago black hawks, and a Record of 1-1?
CREATE TABLE table_name_12 (date VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT date FROM table_name_12 WHERE visitor = "chicago black hawks" AND record = "1-1"
Name the date successor seated for pennsylvania 17th
CREATE TABLE table_225204_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT date_successor_seated FROM table_225204_4 WHERE district = "Pennsylvania 17th"
During what Season was the Final Venue at Sandy Lane with Kiveton Park as the Winner?
CREATE TABLE table_name_62 (season VARCHAR, winner VARCHAR, final_venue VARCHAR)
SELECT season FROM table_name_62 WHERE winner = "kiveton park" AND final_venue = "sandy lane"
Who is the player from Houston, TX?
CREATE TABLE table_name_49 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_49 WHERE hometown = "houston, tx"
What is the date of the game between Melbourne and Footscray?
CREATE TABLE table_name_78 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_78 WHERE home_team = "melbourne"
What is the civil parish of the cappanaboul townland?
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, townland VARCHAR)
SELECT civil_parish FROM table_30120547_1 WHERE townland = "Cappanaboul"
What did the home team score against Fitzroy?
CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_61 WHERE away_team = "fitzroy"
Which party belongs to district 41, and is delegated by Jill P. Carter?
CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR)
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter"
Name the circuit for marcel lehoux
CREATE TABLE table_name_95 (circuit VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_name_95 WHERE winning_driver = "marcel lehoux"
Tell me the number range for 1965-66
CREATE TABLE table_name_58 (no_range VARCHAR, year_built__converted VARCHAR, _ VARCHAR)
SELECT no_range FROM table_name_58 WHERE year_built__converted * _ = "1965-66"
Where was the method of tko?
CREATE TABLE table_name_34 (location VARCHAR, method VARCHAR)
SELECT location FROM table_name_34 WHERE method = "tko"
What is the highest value for col(m) at North Island?
CREATE TABLE table_18946749_4 (col__m_ INTEGER, island VARCHAR)
SELECT MAX(col__m_) FROM table_18946749_4 WHERE island = "North island"
What is the region 1 where region 4 is tba is the complete eighth series?
CREATE TABLE table_1337525_1 (region_1 VARCHAR, region_4 VARCHAR, complete_series VARCHAR)
SELECT region_1 FROM table_1337525_1 WHERE region_4 = "TBA" AND complete_series = "The Complete Eighth Series"
During the quarter 2012 Q4, how many millions of android phones were shipped?
CREATE TABLE table_14260687_3 (android VARCHAR, quarter VARCHAR)
SELECT COUNT(android) FROM table_14260687_3 WHERE quarter = "2012 Q4"
Please list the years of film market estimations when the market is in country "Japan" in descending order.
CREATE TABLE film_market_estimation (Year VARCHAR, Market_ID VARCHAR); CREATE TABLE market (Market_ID VARCHAR, Country VARCHAR)
SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID WHERE T2.Country = "Japan" ORDER BY T1.Year DESC
I want the IATA for ICAO of zgkl
CREATE TABLE table_name_32 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_32 WHERE icao = "zgkl"
What is To Par, when Player is Greg Norman?
CREATE TABLE table_name_65 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_65 WHERE player = "greg norman"
What is the team classification with a winner of Beat Zberg, and a points classification of José María Jiménez.
CREATE TABLE table_name_13 (team_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT team_classification FROM table_name_13 WHERE points_classification = "josé maría jiménez" AND winner = "beat zberg"
What is the region containing the Constitutional Province of Callao?
CREATE TABLE table_1672804_2 (region VARCHAR, province VARCHAR)
SELECT region FROM table_1672804_2 WHERE province = "Constitutional province of Callao"
What event of this season had a time of 2:43?
CREATE TABLE table_name_36 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_36 WHERE time = "2:43"
Show different citizenships and the maximum net worth of singers of each citizenship.
CREATE TABLE singer (Citizenship VARCHAR, Net_Worth_Millions INTEGER)
SELECT Citizenship, MAX(Net_Worth_Millions) FROM singer GROUP BY Citizenship
Find the county where produces the most number of wines with score higher than 90.
CREATE TABLE WINE (Appelation VARCHAR, Score INTEGER); CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR)
SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation WHERE T2.Score > 90 GROUP BY T1.County ORDER BY COUNT(*) DESC LIMIT 1
What is the least score for interview with a preliminaries score less than 9.4, evening gown score less than 9.55, and swimsuit score more than 9.18 in New York?
CREATE TABLE table_name_79 (interview INTEGER, swimsuit VARCHAR, country VARCHAR, preliminaries VARCHAR, evening_gown VARCHAR)
SELECT MIN(interview) FROM table_name_79 WHERE preliminaries < 9.4 AND evening_gown < 9.55 AND country = "new york" AND swimsuit > 9.18
What position is the boat with 20.12 LOA (metres)?
CREATE TABLE table_20854943_2 (position INTEGER, loa__metres_ VARCHAR)
SELECT MAX(position) FROM table_20854943_2 WHERE loa__metres_ = "20.12"
If the Away Team is Arsenal what is the Score?
CREATE TABLE table_name_47 (score VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_47 WHERE away_team = "arsenal"
What is the sum of the appearances at the league cup for the defender who had less than 10 appearances at the UEFA cup?
CREATE TABLE table_name_29 (league_cup INTEGER, position VARCHAR, UEfa_cup VARCHAR)
SELECT SUM(league_cup) FROM table_name_29 WHERE position = "defender" AND UEfa_cup < 10
What year did the Cosworth v8 engine participate in?
CREATE TABLE table_name_37 (year INTEGER, engine VARCHAR)
SELECT AVG(year) FROM table_name_37 WHERE engine = "cosworth v8"
What is the name of the superfund that was proposed on 06/24/1988?
CREATE TABLE table_name_99 (name VARCHAR, proposed VARCHAR)
SELECT name FROM table_name_99 WHERE proposed = "06/24/1988"
How many weeks have a Winning team of yellow team, and an Event of foos it or lose it?
CREATE TABLE table_name_75 (week INTEGER, winning_team VARCHAR, event VARCHAR)
SELECT SUM(week) FROM table_name_75 WHERE winning_team = "yellow team" AND event = "foos it or lose it"
What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache?
CREATE TABLE table_name_56 (part_number_s_ VARCHAR, l2_cache VARCHAR, frequency VARCHAR)
SELECT part_number_s_ FROM table_name_56 WHERE l2_cache = "2 × 256 kb" AND frequency = "1.8 ghz"
Where does the judge who serves Beacon Falls , Naugatuck , Middlebury , Prospect reside?
CREATE TABLE table_26758262_1 (judges_residence VARCHAR, municipalities_served VARCHAR)
SELECT judges_residence FROM table_26758262_1 WHERE municipalities_served = "Beacon Falls , Naugatuck , Middlebury , Prospect"
What was the date when the attendance was 73,529?
CREATE TABLE table_name_89 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_89 WHERE attendance = "73,529"
What year was Ethereal 77, which has a CD album release type?
CREATE TABLE table_name_26 (year VARCHAR, release_type VARCHAR, released_as VARCHAR)
SELECT year FROM table_name_26 WHERE release_type = "cd album" AND released_as = "ethereal 77"
What's the callsign of Mom's Radio 101.9 Zamboanga?
CREATE TABLE table_name_34 (callsign VARCHAR, branding VARCHAR)
SELECT callsign FROM table_name_34 WHERE branding = "mom's radio 101.9 zamboanga"
Who is the owner of the radio frequency of 0 101.5 fm?
CREATE TABLE table_name_90 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_90 WHERE frequency = "0 101.5 fm"
What was the attendance for week 2?
CREATE TABLE table_name_39 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_39 WHERE week = 2
What race happened at pocono on 08-02-2008?
CREATE TABLE table_name_24 (race VARCHAR, track VARCHAR, date VARCHAR)
SELECT race FROM table_name_24 WHERE track = "pocono" AND date = "08-02-2008"
What was the date of the game with the record of 2-1?
CREATE TABLE table_20849830_1 (date VARCHAR, record VARCHAR)
SELECT date FROM table_20849830_1 WHERE record = "2-1"
what's the championship where winning score is −12 (74-66-65-71=276)
CREATE TABLE table_11570261_1 (championship VARCHAR, winning_score VARCHAR)
SELECT championship FROM table_11570261_1 WHERE winning_score = −12(74 - 66 - 65 - 71 = 276)
What's the original title of the nomination title, "brecha en el silencio"?
CREATE TABLE table_name_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT original_title FROM table_name_1 WHERE film_title_used_in_nomination = "brecha en el silencio"
What is the result when the date is August 27, 1980?
CREATE TABLE table_name_11 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_11 WHERE date = "august 27, 1980"
How many episodes were directed by Michael McCullers?
CREATE TABLE table_25341765_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_25341765_1 WHERE directed_by = "Michael McCullers"
Who was the CM winning team when the FM winning team was #17 Elva - Ford?
CREATE TABLE table_29225103_2 (cm_winning_team VARCHAR, fm_winning_team VARCHAR)
SELECT cm_winning_team FROM table_29225103_2 WHERE fm_winning_team = "#17 Elva - Ford"
what race did Dominican win with a distance of 1-1/16 miles?
CREATE TABLE table_name_57 (race VARCHAR, winning_horse VARCHAR, distance VARCHAR)
SELECT race FROM table_name_57 WHERE winning_horse = "dominican" AND distance = "1-1/16 miles"
What is the smallest height with a prominence of 2,349?
CREATE TABLE table_name_26 (height__m_ INTEGER, prominence__m_ VARCHAR)
SELECT MIN(height__m_) FROM table_name_26 WHERE prominence__m_ = 2 OFFSET 349
Which year is the lowest one when the playoffs did not qualify?
CREATE TABLE table_name_93 (year INTEGER, playoffs VARCHAR)
SELECT MIN(year) FROM table_name_93 WHERE playoffs = "did not qualify"
What country has a To par of e?
CREATE TABLE table_name_84 (country VARCHAR, to_par VARCHAR)
SELECT country FROM table_name_84 WHERE to_par = "e"
what is the power when the capacity is 898cc?
CREATE TABLE table_name_43 (power VARCHAR, capacity VARCHAR)
SELECT power FROM table_name_43 WHERE capacity = "898cc"
What season were the runs 310/9?
CREATE TABLE table_name_25 (season VARCHAR, runs VARCHAR)
SELECT season FROM table_name_25 WHERE runs = "310/9"
What is Fred Stolle's final year of competing in a championship?
CREATE TABLE table_2201724_1 (year INTEGER)
SELECT MAX(year) FROM table_2201724_1
What is the highest 2010 population having GEO ID of 3802763220 and longitude over -98.936777?
CREATE TABLE table_name_58 (pop__2010_ INTEGER, geo_id VARCHAR, longitude VARCHAR)
SELECT MAX(pop__2010_) FROM table_name_58 WHERE geo_id = 3802763220 AND longitude > -98.936777
What Record has a Year that's larger than 2012?
CREATE TABLE table_name_11 (record VARCHAR, year INTEGER)
SELECT record FROM table_name_11 WHERE year > 2012
Which Grid has Laps of 25, and a Manufacturer of honda, and a Time/Retired of +1:47.797?
CREATE TABLE table_name_71 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT MIN(grid) FROM table_name_71 WHERE laps = 25 AND manufacturer = "honda" AND time_retired = "+1:47.797"
what was the largest attendance at kardinia park?
CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "kardinia park"
What was the 2009 final placing?
CREATE TABLE table_name_17 (final_placing VARCHAR, season VARCHAR)
SELECT final_placing FROM table_name_17 WHERE season = 2009
What year was Rowan Barrett born?
CREATE TABLE table_name_18 (year_born__age_ VARCHAR, player VARCHAR)
SELECT year_born__age_ FROM table_name_18 WHERE player = "rowan barrett"
What is the latitude of vaidilute rupes?
CREATE TABLE table_16799784_3 (latitude VARCHAR, name VARCHAR)
SELECT latitude FROM table_16799784_3 WHERE name = "Vaidilute Rupes"
What is the lowest Overall for the wide receiver in a round less than 2?
CREATE TABLE table_name_93 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_93 WHERE position = "wide receiver" AND round < 2
What was the average Position for which the amount Drawn was less than 0?
CREATE TABLE table_name_88 (position INTEGER, drawn INTEGER)
SELECT AVG(position) FROM table_name_88 WHERE drawn < 0
Find the full names of faculties who are members of department with department number 520.
CREATE TABLE FACULTY (Fname VARCHAR, Lname VARCHAR, FacID VARCHAR); CREATE TABLE MEMBER_OF (FacID VARCHAR, DNO VARCHAR)
SELECT T1.Fname, T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520
What is the post-1986 provinces with a 全羅道 Hanja?
CREATE TABLE table_name_52 (post_1896_provinces VARCHAR, hanja VARCHAR)
SELECT post_1896_provinces FROM table_name_52 WHERE hanja = "全羅道"
How many attended the game when the score was tie at 4?
CREATE TABLE table_name_65 (attendance VARCHAR, tie_no VARCHAR)
SELECT attendance FROM table_name_65 WHERE tie_no = "4"
Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1?
CREATE TABLE table_name_60 (played VARCHAR, drawn VARCHAR, position VARCHAR, points VARCHAR)
SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 1
When is Part 2, when Part 5 is on January 24, 2008?
CREATE TABLE table_name_42 (part_2 VARCHAR, part_5 VARCHAR)
SELECT part_2 FROM table_name_42 WHERE part_5 = "january 24, 2008"
Name the bowling style of the player born 16 march 1974
CREATE TABLE table_name_10 (bowling_style VARCHAR, date_of_birth VARCHAR)
SELECT bowling_style FROM table_name_10 WHERE date_of_birth = "16 march 1974"
Show the school name and type for schools without a school bus.
CREATE TABLE school_bus (school VARCHAR, TYPE VARCHAR, school_id VARCHAR); CREATE TABLE school (school VARCHAR, TYPE VARCHAR, school_id VARCHAR)
SELECT school, TYPE FROM school WHERE NOT school_id IN (SELECT school_id FROM school_bus)
What was Anthony D. Marshall's title?
CREATE TABLE table_name_14 (title VARCHAR, name VARCHAR)
SELECT title FROM table_name_14 WHERE name = "anthony d. marshall"
What is the Score of the game larger than 57 with a Record of 4–55?
CREATE TABLE table_name_15 (score VARCHAR, game VARCHAR, record VARCHAR)
SELECT score FROM table_name_15 WHERE game > 57 AND record = "4–55"
What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?
CREATE TABLE enzyme (product VARCHAR, chromosome VARCHAR, porphyria VARCHAR, LOCATION VARCHAR)
SELECT product, chromosome, porphyria FROM enzyme WHERE LOCATION = 'Cytosol'
what is the best supported club with a 25 Goal and a per game larger than 1,156?
CREATE TABLE table_name_75 (best_supported_club VARCHAR, goals VARCHAR, per_game VARCHAR)
SELECT best_supported_club FROM table_name_75 WHERE goals = 25 AND per_game > 1 OFFSET 156
Show total points of all players.
CREATE TABLE player (Points INTEGER)
SELECT SUM(Points) FROM player
What is the maximum game that was played against the New York Knickerbockers?
CREATE TABLE table_name_40 (game INTEGER, opponent VARCHAR)
SELECT MAX(game) FROM table_name_40 WHERE opponent = "new york knickerbockers"
List the stadium and number of people in attendance when the team record was 45-22.
CREATE TABLE table_23284271_9 (location_attendance VARCHAR, record VARCHAR)
SELECT COUNT(location_attendance) FROM table_23284271_9 WHERE record = "45-22"
Which Record has a Game smaller than 19, and Points smaller than 19, and a Score of 4–6?
CREATE TABLE table_name_24 (record VARCHAR, score VARCHAR, game VARCHAR, points VARCHAR)
SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = "4–6"
what is the date for game 3?
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
SELECT date FROM table_name_71 WHERE game = 3
What is the average year with nominated result?
CREATE TABLE table_name_32 (year INTEGER, result VARCHAR)
SELECT AVG(year) FROM table_name_32 WHERE result = "nominated"