question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
How many Points have a Score of 1–3, and a Game larger than 82?
CREATE TABLE table_name_49 (points VARCHAR, score VARCHAR, game VARCHAR)
SELECT COUNT(points) FROM table_name_49 WHERE score = "1–3" AND game > 82
What was the highest number of laps for rider Shuhei Aoyama in a grid higher than 24?
CREATE TABLE table_name_37 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MAX(laps) FROM table_name_37 WHERE rider = "shuhei aoyama" AND grid > 24
What is the current status for GM Advanced Design with more than 41 seats?
CREATE TABLE table_name_64 (current_status VARCHAR, make VARCHAR, number_of_seats VARCHAR)
SELECT current_status FROM table_name_64 WHERE make = "gm advanced design" AND number_of_seats > 41
What is the 2004 value for the 2009 Grand slam tournaments?
CREATE TABLE table_name_86 (Id VARCHAR)
SELECT 2004 FROM table_name_86 WHERE 2009 = "grand slam tournaments"
Tell me the opponent for attendance of 68,264
CREATE TABLE table_name_74 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_74 WHERE attendance = "68,264"
Which player for a team with an 18-20 record had the most rebounds in a game?
CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR)
SELECT high_rebounds FROM table_name_38 WHERE record = "18-20"
What is the cpu of the calculator released in 1993?
CREATE TABLE table_11703336_1 (cpu VARCHAR, year_released VARCHAR)
SELECT cpu FROM table_11703336_1 WHERE year_released = "1993"
Where was the county of rockingham?
CREATE TABLE table_name_98 (location VARCHAR, county VARCHAR)
SELECT location FROM table_name_98 WHERE county = "rockingham"
What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?
CREATE TABLE table_name_26 (stuffit VARCHAR, iso_cd_image VARCHAR, lha_lzh VARCHAR)
SELECT stuffit AS X FROM table_name_26 WHERE stuffit = "unknown" AND lha_lzh = "yes" AND iso_cd_image = "unknown"
What city ranked 7?
CREATE TABLE table_name_20 (city VARCHAR, rank VARCHAR)
SELECT city FROM table_name_20 WHERE rank = 7
If the equation is 0 × 9² + 3 × 9 + 3, what is the result?
CREATE TABLE table_17265535_7 (result INTEGER, equation VARCHAR)
SELECT MIN(result) FROM table_17265535_7 WHERE equation = "0 × 9² + 3 × 9 + 3"
What is the lowest score for a year before 2008 and had 3rd place?
CREATE TABLE table_name_89 (score INTEGER, year VARCHAR, placement VARCHAR)
SELECT MIN(score) FROM table_name_89 WHERE year < 2008 AND placement = "3rd"
Which Object type has a NGC number of 2787?
CREATE TABLE table_name_19 (object_type VARCHAR, ngc_number VARCHAR)
SELECT object_type FROM table_name_19 WHERE ngc_number = 2787
What is Opponent In The Final, when Outcome is "Winner", when Surface is "Carpet (I)", and when Tournament is "Lyon, France"?
CREATE TABLE table_name_67 (opponent_in_the_final VARCHAR, tournament VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT opponent_in_the_final FROM table_name_67 WHERE outcome = "winner" AND surface = "carpet (i)" AND tournament = "lyon, france"
What is Opponent, when Championship is Pétange?
CREATE TABLE table_name_69 (opponent VARCHAR, championship VARCHAR)
SELECT opponent FROM table_name_69 WHERE championship = "pétange"
What's the abbreviation for libya?
CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR)
SELECT abbreviation FROM table_name_88 WHERE country = "libya"
How many different levels do members have?
CREATE TABLE member (LEVEL VARCHAR)
SELECT COUNT(DISTINCT LEVEL) FROM member
Who had the high assists @ Dallas?
CREATE TABLE table_11964154_11 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_11964154_11 WHERE team = "@ Dallas"
What state was maria cantwell born in after 1955?
CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR)
SELECT state FROM table_name_50 WHERE born > 1955 AND name = "maria cantwell"
Which championship has a margin of 8 strokes?
CREATE TABLE table_name_89 (championship VARCHAR, margin VARCHAR)
SELECT championship FROM table_name_89 WHERE margin = "8 strokes"
What is the church name located in Høyanger?
CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)
SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Høyanger"
Which method was used when Rafael Cavalcante was the opponent?
CREATE TABLE table_name_2 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_2 WHERE opponent = "rafael cavalcante"
What's the total losses when there are 8 wins and less than 2 byes?
CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR)
SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2
Find the id and first name of the student that has the most number of assessment notes?
CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Assessment_Notes (student_id VARCHAR)
SELECT T1.student_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the track for the International 500 mile Sweepstakes race?
CREATE TABLE table_22673872_1 (track VARCHAR, race_name VARCHAR)
SELECT track FROM table_22673872_1 WHERE race_name = "International 500 Mile Sweepstakes"
Who is the no. 9 team that has a no. 6 player of paulo?
CREATE TABLE table_name_85 (no9 VARCHAR, no6 VARCHAR)
SELECT no9 FROM table_name_85 WHERE no6 = "paulo"
What Persian word has the same meaning as the Domari word na?
CREATE TABLE table_name_84 (persian VARCHAR, domari VARCHAR)
SELECT persian FROM table_name_84 WHERE domari = "na"
What is the total number of episodes where alexa wyatt is the writer?
CREATE TABLE table_16175064_3 (series__number VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(series__number) FROM table_16175064_3 WHERE writer_s_ = "Alexa Wyatt"
Who played SS when paul konerko played 1st base?
CREATE TABLE table_12142298_2 (shortstop VARCHAR, first_baseman VARCHAR)
SELECT shortstop FROM table_12142298_2 WHERE first_baseman = "Paul Konerko"
When was the 2014 fifa world cup qualification?
CREATE TABLE table_name_96 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_96 WHERE competition = "2014 fifa world cup qualification"
Who's the leader in the young rider classification in stage 12?
CREATE TABLE table_12261714_2 (young_rider_classification VARCHAR, stage VARCHAR)
SELECT young_rider_classification FROM table_12261714_2 WHERE stage = "12"
Name the avg start for avg finish being 24.2
CREATE TABLE table_2308381_1 (avg_start VARCHAR, avg_finish VARCHAR)
SELECT avg_start FROM table_2308381_1 WHERE avg_finish = "24.2"
What is the manner of departure for the date of appointment 24 may 2010?
CREATE TABLE table_26998135_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010"
Name the position for 132 minutes
CREATE TABLE table_24477075_1 (position VARCHAR, minutes VARCHAR)
SELECT position FROM table_24477075_1 WHERE minutes = 132
Name the series number directed by richard thorpe written by dee johnson
CREATE TABLE table_17355579_1 (series__number INTEGER, directed_by VARCHAR, written_by VARCHAR)
SELECT MAX(series__number) FROM table_17355579_1 WHERE directed_by = "Richard Thorpe" AND written_by = "Dee Johnson"
What is total amount of points of entrants with a ford cosworth engine and a year later than 1991?
CREATE TABLE table_name_21 (points VARCHAR, engine VARCHAR, year VARCHAR)
SELECT COUNT(points) FROM table_name_21 WHERE engine = "ford cosworth" AND year > 1991
What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?
CREATE TABLE table_25721_3 (dave_viewers INTEGER, dave_ja_vu_viewers VARCHAR)
SELECT MAX(dave_viewers) FROM table_25721_3 WHERE dave_ja_vu_viewers = 119000
Find distinct cities of address of students?
CREATE TABLE students (student_id VARCHAR); CREATE TABLE addresses (city VARCHAR, address_id VARCHAR); CREATE TABLE people_addresses (address_id VARCHAR, person_id VARCHAR)
SELECT DISTINCT T1.city FROM addresses AS T1 JOIN people_addresses AS T2 ON T1.address_id = T2.address_id JOIN students AS T3 ON T2.person_id = T3.student_id
Who had the high rebounds of the game that Deron Williams (5) had the high assists?
CREATE TABLE table_name_4 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT high_rebounds FROM table_name_4 WHERE high_assists = "deron williams (5)"
Can you tell me the Date that has the Team of golden state?
CREATE TABLE table_name_21 (date VARCHAR, team VARCHAR)
SELECT date FROM table_name_21 WHERE team = "golden state"
How many bronzes for the nation with 2 golds and ranked below 2?
CREATE TABLE table_name_9 (bronze INTEGER, gold VARCHAR, rank VARCHAR)
SELECT SUM(bronze) FROM table_name_9 WHERE gold = 2 AND rank > 2
What categories had a Nominated work of yerma before 1992?
CREATE TABLE table_name_99 (category VARCHAR, year VARCHAR, nominated_work VARCHAR)
SELECT category FROM table_name_99 WHERE year < 1992 AND nominated_work = "yerma"
When the q1 time is 1:16.218 what is the highest q1 pos?
CREATE TABLE table_1924975_1 (q1_pos INTEGER, q1_time VARCHAR)
SELECT MAX(q1_pos) FROM table_1924975_1 WHERE q1_time = "1:16.218"
What is the sum of games Played by the Team Vasco Da Gama, with fewer than 12 Against?
CREATE TABLE table_name_12 (played INTEGER, team VARCHAR, against VARCHAR)
SELECT SUM(played) FROM table_name_12 WHERE team = "vasco da gama" AND against < 12
Who were the opponents for the event in Milan, Italy?
CREATE TABLE table_name_78 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_78 WHERE tournament = "milan, italy"
Who was the Home team at the Western Oval location?
CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_62 WHERE venue = "western oval"
what was the section where the winner is william hoge
CREATE TABLE table_2668378_13 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_2668378_13 WHERE incumbent = "William Hoge"
List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.
CREATE TABLE votes (contestant_number VARCHAR, state VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR); CREATE TABLE area_code_state (area_code VARCHAR, state VARCHAR)
SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number JOIN area_code_state AS T3 ON T2.state = T3.state WHERE T1.contestant_name = 'Tabatha Gehling' INTERSECT SELECT T3.area_code FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number J...
What was the result when his record was 25-15?
CREATE TABLE table_name_83 (res VARCHAR, record VARCHAR)
SELECT res FROM table_name_83 WHERE record = "25-15"
Who is the captain of the manchester city team?
CREATE TABLE table_name_51 (captain VARCHAR, team VARCHAR)
SELECT captain FROM table_name_51 WHERE team = "manchester city"
What even was held in Valencia, Spain?
CREATE TABLE table_name_3 (event VARCHAR, venue VARCHAR)
SELECT event FROM table_name_3 WHERE venue = "valencia, spain"
What venue features fitzroy as the away side?
CREATE TABLE table_name_66 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_66 WHERE away_team = "fitzroy"
What body styles have devaux-hall inline 6 as the engine?
CREATE TABLE table_name_9 (body_styles VARCHAR, engine VARCHAR)
SELECT body_styles FROM table_name_9 WHERE engine = "devaux-hall inline 6"
Who is the player that played in the UEFA Euro 2012 qualifying Group A competition?
CREATE TABLE table_24765815_2 (player VARCHAR, competition VARCHAR)
SELECT player FROM table_24765815_2 WHERE competition = "UEFA Euro 2012 qualifying Group A"
What is lebanon's enrollment?
CREATE TABLE table_name_99 (enrollment INTEGER, school VARCHAR)
SELECT AVG(enrollment) FROM table_name_99 WHERE school = "lebanon"
what is the drawn when the won is 12?
CREATE TABLE table_12828723_4 (drawn VARCHAR, won VARCHAR)
SELECT drawn FROM table_12828723_4 WHERE won = "12"
What was the record after the game against the Sharks?
CREATE TABLE table_name_19 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_19 WHERE opponent = "sharks"
Find the name and address of the department that has the highest number of students.
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR)
SELECT T2.dept_name, T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1
When was the game that had 58,025 people in attendance?
CREATE TABLE table_name_26 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_26 WHERE attendance = "58,025"
What is the highest crowd population when the away team is Geelong?
CREATE TABLE table_name_33 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_33 WHERE away_team = "geelong"
What was the group d winner for modena?
CREATE TABLE table_1137142_1 (group_d_winner VARCHAR, group_b_winner VARCHAR)
SELECT group_d_winner FROM table_1137142_1 WHERE group_b_winner = "Modena"
How many seats are contested for independents?
CREATE TABLE table_20728138_1 (seats_contested VARCHAR, party VARCHAR)
SELECT seats_contested FROM table_20728138_1 WHERE party = "Independents"
How many people attended the September 21, 1980 game?
CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR)
SELECT AVG(attendance) FROM table_name_22 WHERE date = "september 21, 1980"
What positions does Hal Weeks play?
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_14342592_3 WHERE player = "Hal Weeks"
Tell me the total number of Qual Laps higher than 93 with a Rank of 32 with Grid less than 32
CREATE TABLE table_name_16 (qual VARCHAR, grid VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT COUNT(qual) FROM table_name_16 WHERE laps > 93 AND rank = 32 AND grid < 32
What is the status for 24/11/1979?
CREATE TABLE table_name_86 (status VARCHAR, date VARCHAR)
SELECT status FROM table_name_86 WHERE date = "24/11/1979"
Record of 21–29–10 had what total number of points?
CREATE TABLE table_name_2 (points VARCHAR, record VARCHAR)
SELECT COUNT(points) FROM table_name_2 WHERE record = "21–29–10"
WHAT WAS THE JERSEY NUMBER OF THE ROSTER PLAYER FROM OKLAHOMA STATE WHO PLAYED GUARD?
CREATE TABLE table_15621965_18 (no VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT no FROM table_15621965_18 WHERE position = "Guard" AND school_club_team = "Oklahoma State"
What is the least amount of season epidsodes?
CREATE TABLE table_1067134_1 (_number_of_ep INTEGER)
SELECT MIN(_number_of_ep) FROM table_1067134_1
Which country was the player from who scored 66-72-70=207?
CREATE TABLE table_name_45 (country VARCHAR, score VARCHAR)
SELECT country FROM table_name_45 WHERE score = 66 - 72 - 70 = 207
What year did Bryant Heating enter?
CREATE TABLE table_name_48 (year INTEGER, entrant VARCHAR)
SELECT SUM(year) FROM table_name_48 WHERE entrant = "bryant heating"
Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?
CREATE TABLE table_name_83 (name VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR, league_cup_goals VARCHAR)
SELECT name FROM table_name_83 WHERE fa_cup_goals = 0 AND league_cup_goals < 2 AND total_goals = 2
What was the outcome for the Rome 2, Italy tournament?
CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_73 WHERE tournament = "rome 2, italy"
Who was the team swash when the team guest captain was gail porter?
CREATE TABLE table_25816476_2 (team_swash VARCHAR, team_guest_captain VARCHAR)
SELECT team_swash FROM table_25816476_2 WHERE team_guest_captain = "Gail Porter"
Name the ezhavas and syrian christians being 26.2
CREATE TABLE table_23214055_2 (ezhavas VARCHAR, syrian_christians VARCHAR)
SELECT ezhavas FROM table_23214055_2 WHERE syrian_christians = "26.2"
What date was Richmond the away team?
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_28 WHERE away_team = "richmond"
What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?
CREATE TABLE table_name_40 (pick__number INTEGER, round VARCHAR, college VARCHAR)
SELECT AVG(pick__number) FROM table_name_40 WHERE round < 7 AND college = "tennessee"
What is Date, when Catalog is EPC 81436?
CREATE TABLE table_name_97 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_97 WHERE catalog = "epc 81436"
Which Length has a Taper of #15, and a Large end larger than 1.875?
CREATE TABLE table_name_92 (length INTEGER, taper VARCHAR, large_end VARCHAR)
SELECT MAX(length) FROM table_name_92 WHERE taper = "#15" AND large_end > 1.875
What was Dick Hyland's conv?
CREATE TABLE table_name_37 (conv VARCHAR, player VARCHAR)
SELECT conv FROM table_name_37 WHERE player = "dick hyland"
Name the number of first elected for phil crane
CREATE TABLE table_1341672_14 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1341672_14 WHERE incumbent = "Phil Crane"
What is Season, when Name is Tony Boy Espinosa?
CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR)
SELECT season FROM table_name_57 WHERE name = "tony boy espinosa"
what is the venue when the result is loss and the opponent is st george-illawarra dragons?
CREATE TABLE table_name_58 (venue VARCHAR, result VARCHAR, opponent VARCHAR)
SELECT venue FROM table_name_58 WHERE result = "loss" AND opponent = "st george-illawarra dragons"
What was the Average crowd when the away team was north melbourne?
CREATE TABLE table_name_17 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_17 WHERE away_team = "north melbourne"
What type of settlement is rabe?
CREATE TABLE table_2562572_30 (type VARCHAR, settlement VARCHAR)
SELECT type FROM table_2562572_30 WHERE settlement = "Rabe"
Which Games has a Season of 2003/2004, and a Red Cards smaller than 5?
CREATE TABLE table_name_65 (games INTEGER, season VARCHAR, red_cards VARCHAR)
SELECT AVG(games) FROM table_name_65 WHERE season = "2003/2004" AND red_cards < 5
List all the places that the Apocalypstix occupied when the Denim Demons were 2nd.
CREATE TABLE table_29619494_2 (apocalypstix VARCHAR, denim_demons VARCHAR)
SELECT apocalypstix FROM table_29619494_2 WHERE denim_demons = "2nd"
What is the terminini of the highway with an east west direction and remarks that it was replaced by us 59?
CREATE TABLE table_name_19 (termini VARCHAR, direction VARCHAR, remarks VARCHAR)
SELECT termini FROM table_name_19 WHERE direction = "east west" AND remarks = "replaced by us 59"
What Metric value has a Unit of dolia?
CREATE TABLE table_name_4 (metric_value VARCHAR, unit VARCHAR)
SELECT metric_value FROM table_name_4 WHERE unit = "dolia"
What is the average rank of an athlete that holds a time higher than 53.38?
CREATE TABLE table_name_76 (rank INTEGER, time INTEGER)
SELECT AVG(rank) FROM table_name_76 WHERE time > 53.38
What is the density of San Sebastián?
CREATE TABLE table_name_72 (density__hab_km²_ VARCHAR, city_district VARCHAR)
SELECT density__hab_km²_ FROM table_name_72 WHERE city_district = "san sebastián"
How many paper types did Ian Drolet design stamps on?
CREATE TABLE table_11900773_6 (paper_type VARCHAR, design VARCHAR)
SELECT COUNT(paper_type) FROM table_11900773_6 WHERE design = "Ian Drolet"
Who was the winner with a score of 7–6 (7–3) , 2–6, [10–6]?
CREATE TABLE table_name_79 (winner VARCHAR, score VARCHAR)
SELECT winner FROM table_name_79 WHERE score = "7–6 (7–3) , 2–6, [10–6]"
What is the lowest against when the draws are more than 0 and the losses are less than 3?
CREATE TABLE table_name_74 (against INTEGER, losses VARCHAR, draws VARCHAR)
SELECT MIN(against) FROM table_name_74 WHERE losses < 3 AND draws > 0
When Bunky Henry placed t8, what was his To par?
CREATE TABLE table_name_75 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_75 WHERE place = "t8" AND player = "bunky henry"
Name Nationality is on 6 july 1942?
CREATE TABLE table_name_83 (nationality VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_83 WHERE date = "6 july 1942"
How many square miles of water does the township at latitude 48.064751 have?
CREATE TABLE table_18600760_9 (water__sqmi_ VARCHAR, latitude VARCHAR)
SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751"
What is Power, when City of License is Sioux Lookout?
CREATE TABLE table_name_93 (power VARCHAR, city_of_license VARCHAR)
SELECT power FROM table_name_93 WHERE city_of_license = "sioux lookout"
What is the highest col in m of the puncak jaya (carstensz pyramid) peak, which is ranked lower than 7 and has a prominence less than 4,884 m?
CREATE TABLE table_name_91 (col__m_ INTEGER, prominence__m_ VARCHAR, rank VARCHAR, peak VARCHAR)
SELECT MAX(col__m_) FROM table_name_91 WHERE rank < 7 AND peak = "puncak jaya (carstensz pyramid)" AND prominence__m_ < 4 OFFSET 884
What is the lowest Win #, when Year is "2011-12", and when Points is less than 97?
CREATE TABLE table_name_27 (win__number INTEGER, year VARCHAR, points VARCHAR)
SELECT MIN(win__number) FROM table_name_27 WHERE year = "2011-12" AND points < 97