question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What week was September 24, 2000 on?
CREATE TABLE table_name_55 (week INTEGER, date VARCHAR)
SELECT SUM(week) FROM table_name_55 WHERE date = "september 24, 2000"
List the name of singers whose citizenship is not "France".
CREATE TABLE singer (Name VARCHAR, Citizenship VARCHAR)
SELECT Name FROM singer WHERE Citizenship <> "France"
What was the attendance of game 25 when the played the San Francisco Warriors?
CREATE TABLE table_name_43 (location_attendance VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_name_43 WHERE opponent = "san francisco warriors" AND game = 25
What is the interaction type of the enzyme named 'ALA synthase' and the medicine named 'Aripiprazole'?
CREATE TABLE enzyme (id VARCHAR, name VARCHAR); CREATE TABLE medicine (id VARCHAR, name VARCHAR); CREATE TABLE medicine_enzyme_interaction (interaction_type VARCHAR, medicine_id VARCHAR, enzyme_id VARCHAR)
SELECT T1.interaction_type FROM medicine_enzyme_interaction AS T1 JOIN medicine AS T2 ON T1.medicine_id = T2.id JOIN enzyme AS T3 ON T1.enzyme_id = T3.id WHERE T3.name = 'ALA synthase' AND T2.name = 'Aripiprazole'
What Driver has 1 in Grid?
CREATE TABLE table_name_98 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_98 WHERE grid = 1
What was the record setting time in the 800m freestyle?
CREATE TABLE table_name_76 (time VARCHAR, event VARCHAR)
SELECT time FROM table_name_76 WHERE event = "800m freestyle"
What's the total grid of Bruce Mclaren?
CREATE TABLE table_name_79 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_79 WHERE driver = "bruce mclaren"
What is the circuit held on 15 april?
CREATE TABLE table_name_49 (circuit VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_49 WHERE date = "15 april"
What episode number had US viewership of 4.87 million?
CREATE TABLE table_27905664_1 (№ VARCHAR, us_viewers__million_ VARCHAR)
SELECT № FROM table_27905664_1 WHERE us_viewers__million_ = "4.87"
Show the shop addresses ordered by their opening year.
CREATE TABLE shop (address VARCHAR, open_year VARCHAR)
SELECT address FROM shop ORDER BY open_year
What was the final number for the winning manufacturer with Mercedes-benz, and a circuit of hockenheimring?
CREATE TABLE table_name_18 (round VARCHAR, winning_manufacturer VARCHAR, circuit VARCHAR)
SELECT COUNT(round) FROM table_name_18 WHERE winning_manufacturer = "mercedes-benz" AND circuit = "hockenheimring"
Which Population has a Median family income of $53,946?
CREATE TABLE table_name_41 (population INTEGER, median_family_income VARCHAR)
SELECT MAX(population) FROM table_name_41 WHERE median_family_income = "$53,946"
Which new conference is the Toreros Western Collegiate Lacrosse team playing in?
CREATE TABLE table_14976504_2 (new_conference VARCHAR, team_nickname VARCHAR)
SELECT new_conference FROM table_14976504_2 WHERE team_nickname = "Toreros"
What lost has 528 as the points?
CREATE TABLE table_name_78 (lost VARCHAR, points_for VARCHAR)
SELECT lost FROM table_name_78 WHERE points_for = "528"
Which Tie #has an Attendance of 54,591?
CREATE TABLE table_name_16 (tie_no VARCHAR, attendance VARCHAR)
SELECT tie_no FROM table_name_16 WHERE attendance = "54,591"
What opponent has l 27-7 as the result?
CREATE TABLE table_name_83 (opponent VARCHAR, result VARCHAR)
SELECT opponent FROM table_name_83 WHERE result = "l 27-7"
What is the minimum number of wins?
CREATE TABLE table_15431122_2 (wins INTEGER)
SELECT MIN(wins) FROM table_15431122_2
What is the nssdc id for Echo 1?
CREATE TABLE table_2150068_1 (nssdc_id VARCHAR, satellite VARCHAR)
SELECT nssdc_id FROM table_2150068_1 WHERE satellite = "Echo 1"
What is Videoconferencing, when Data Conferencing is "No", and when Web Conferencing is "No"?
CREATE TABLE table_name_82 (videoconferencing VARCHAR, data_conferencing VARCHAR, web_conferencing VARCHAR)
SELECT videoconferencing FROM table_name_82 WHERE data_conferencing = "no" AND web_conferencing = "no"
What series # had an original air date of november 30, 1996?
CREATE TABLE table_name_52 (series__number INTEGER, original_air_date VARCHAR)
SELECT MIN(series__number) FROM table_name_52 WHERE original_air_date = "november 30, 1996"
find the names of loser and winner who played in the match with greatest number of minutes.
CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR)
SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1
What place is S.K. Ho in?
CREATE TABLE table_name_93 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_93 WHERE player = "s.k. ho"
What frequency does branding dzec radyo agila 1062 have?
CREATE TABLE table_name_33 (frequency VARCHAR, branding VARCHAR)
SELECT frequency FROM table_name_33 WHERE branding = "dzec radyo agila 1062"
Which lap has more than 17 grids with tetsuya harada?
CREATE TABLE table_name_77 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
SELECT laps FROM table_name_77 WHERE grid > 17 AND rider = "tetsuya harada"
How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5?
CREATE TABLE table_name_66 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT COUNT(wins) FROM table_name_66 WHERE goals_against < 30 AND goals_for > 25 AND draws > 5
What is the largest Area (km²) for Deed number of 21352022 with a Population of more than 184?
CREATE TABLE table_name_29 (area__km²_ INTEGER, deed_number VARCHAR, population VARCHAR)
SELECT MAX(area__km²_) FROM table_name_29 WHERE deed_number = "21352022" AND population > 184
What surface did Ruxandra Dragomir play on?
CREATE TABLE table_name_13 (surface VARCHAR, partner VARCHAR)
SELECT surface FROM table_name_13 WHERE partner = "ruxandra dragomir"
What is the psd-pc for 18-22/04/2009?
CREATE TABLE table_name_65 (psd___pc VARCHAR, date VARCHAR)
SELECT psd___pc FROM table_name_65 WHERE date = "18-22/04/2009"
How many inputs are there in the 'closure for signature' tab under the field 'sea (revised)'?
CREATE TABLE table_2001348_1 (closure_for_signature VARCHAR, field VARCHAR)
SELECT COUNT(closure_for_signature) FROM table_2001348_1 WHERE field = "Sea (revised)"
What is Location Attendance, when Team is "Orlando"?
CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_name_16 WHERE team = "orlando"
Who was the leading scorer when the visiting team was the Trail Blazers?
CREATE TABLE table_name_55 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT leading_scorer FROM table_name_55 WHERE visitor = "trail blazers"
When 86 is the amount of points what is the position?
CREATE TABLE table_22737506_1 (pos VARCHAR, points VARCHAR)
SELECT pos FROM table_22737506_1 WHERE points = 86
What years had a manager who lost more than 1 and drawn more than 11?
CREATE TABLE table_name_26 (ukraine_career VARCHAR, lost VARCHAR, drawn VARCHAR)
SELECT ukraine_career FROM table_name_26 WHERE lost > 1 AND drawn > 11
What shows for opened for the Nascar Major Series?
CREATE TABLE table_name_84 (opened VARCHAR, major_series VARCHAR)
SELECT opened FROM table_name_84 WHERE major_series = "nascar"
If the pole position is Johnny Rutherford and the track is the Ontario Motor Speedway, what is the RND total number?
CREATE TABLE table_22670216_1 (rnd VARCHAR, track VARCHAR, pole_position VARCHAR)
SELECT COUNT(rnd) FROM table_22670216_1 WHERE track = "Ontario Motor Speedway" AND pole_position = "Johnny Rutherford"
Name the extension for university of washington
CREATE TABLE table_22771048_3 (extension VARCHAR, city_neighborhood VARCHAR)
SELECT extension FROM table_22771048_3 WHERE city_neighborhood = "University of Washington"
Show the names and heights of buildings with at least two institutions founded after 1880.
CREATE TABLE building (name VARCHAR, height_feet VARCHAR, building_id VARCHAR); CREATE TABLE institution (building_id VARCHAR, founded INTEGER)
SELECT T1.name, T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING COUNT(*) >= 2
When the kilometers from kingston is 105.4 what is the minimum amount of length in feet?
CREATE TABLE table_16226584_1 (length_feet INTEGER, km_from_kingston VARCHAR)
SELECT MIN(length_feet) FROM table_16226584_1 WHERE km_from_kingston = "105.4"
What are the mhz when the profile is 8b?
CREATE TABLE table_2394927_1 (bandwidth___mhz__ VARCHAR, profile VARCHAR)
SELECT bandwidth___mhz__ FROM table_2394927_1 WHERE profile = "8b"
What is the finale number ranked at number 7?
CREATE TABLE table_19210674_1 (finale VARCHAR, rank VARCHAR)
SELECT finale FROM table_19210674_1 WHERE rank = 7
What average drawn has a played greater than 42?
CREATE TABLE table_name_21 (drawn INTEGER, played INTEGER)
SELECT AVG(drawn) FROM table_name_21 WHERE played > 42
who is the the writer(s) with original airdate being february 7, 2001
CREATE TABLE table_13956521_2 (writer_s_ VARCHAR, original_airdate VARCHAR)
SELECT writer_s_ FROM table_13956521_2 WHERE original_airdate = "February 7, 2001"
Who directed series episode number 201?
CREATE TABLE table_26866519_1 (director VARCHAR, series__number VARCHAR)
SELECT director FROM table_26866519_1 WHERE series__number = 201
What is recorded as the lowest Round for the Player Jim Thompson?
CREATE TABLE table_name_26 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_26 WHERE player = "jim thompson"
What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?
CREATE TABLE table_name_93 (recipients_and_nominees VARCHAR, category VARCHAR, year VARCHAR)
SELECT recipients_and_nominees FROM table_name_93 WHERE category = "outstanding achievement in drama" AND year = 1994
What was the original air date of the episode written by Michelle Offen?
CREATE TABLE table_19517621_4 (original_airdate VARCHAR, written_by VARCHAR)
SELECT original_airdate FROM table_19517621_4 WHERE written_by = "Michelle Offen"
When is a Roll of 9?
CREATE TABLE table_name_86 (years VARCHAR, roll VARCHAR)
SELECT years FROM table_name_86 WHERE roll = 9
Score of 3–4, and a Attendance larger than 34,609 happened on what date?
CREATE TABLE table_name_39 (date VARCHAR, score VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_39 WHERE score = "3–4" AND attendance > 34 OFFSET 609
What type has a scratch of 750 GB?
CREATE TABLE table_name_2 (type VARCHAR, scratch VARCHAR)
SELECT type FROM table_name_2 WHERE scratch = "750 gb"
What was the result for Andrew Gregg?
CREATE TABLE table_2668401_12 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_2668401_12 WHERE incumbent = "Andrew Gregg"
What Rd 3 has a Rd 2 1 of 0+1?
CREATE TABLE table_name_95 (rd_3 VARCHAR, rd_2_1 VARCHAR)
SELECT rd_3 FROM table_name_95 WHERE rd_2_1 = "0+1"
Which Score has a Date of june 22?
CREATE TABLE table_name_80 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_80 WHERE date = "june 22"
What is the lowest Against when the played is more than 10?
CREATE TABLE table_name_4 (against INTEGER, played INTEGER)
SELECT MIN(against) FROM table_name_4 WHERE played > 10
How many points does mia martini have?
CREATE TABLE table_name_1 (points VARCHAR, artist VARCHAR)
SELECT COUNT(points) FROM table_name_1 WHERE artist = "mia martini"
Tell me the 1958 when 1957 is dnf-9
CREATE TABLE table_name_24 (Id VARCHAR)
SELECT 1958 FROM table_name_24 WHERE 1957 = "dnf-9"
Name the least track with song of little sister
CREATE TABLE table_name_67 (track INTEGER, song_title VARCHAR)
SELECT MIN(track) FROM table_name_67 WHERE song_title = "little sister"
What is the ISBN of Japanese Title of 霧の訪問者 (kiri no hōmonsha)?
CREATE TABLE table_name_54 (isbn VARCHAR, japanese_title VARCHAR)
SELECT isbn FROM table_name_54 WHERE japanese_title = "霧の訪問者 (kiri no hōmonsha)"
Name the player for fiji
CREATE TABLE table_name_29 (player VARCHAR, country VARCHAR)
SELECT player FROM table_name_29 WHERE country = "fiji"
Who is the winning team of the South Pacific Trophy?
CREATE TABLE table_name_22 (winning_team VARCHAR, name VARCHAR)
SELECT winning_team FROM table_name_22 WHERE name = "south pacific trophy"
What are the descriptions and names of the courses that have student enrollment bigger than 2?
CREATE TABLE Student_Course_Enrolment (course_id VARCHAR); CREATE TABLE Courses (course_description VARCHAR, course_name VARCHAR, course_id VARCHAR)
SELECT T1.course_description, T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name HAVING COUNT(*) > 2
What is the name of organization that has the greatest number of contact individuals?
CREATE TABLE organization_contact_individuals (organization_id VARCHAR); CREATE TABLE organizations (organization_name VARCHAR, organization_id VARCHAR)
SELECT t1.organization_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id GROUP BY t1.organization_name ORDER BY COUNT(*) DESC LIMIT 1
What was the score on 8 September 1999?
CREATE TABLE table_name_93 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_93 WHERE date = "8 september 1999"
Tell me the sum of rank for when gold is more than 0 and silver less than 23 with total more than 32
CREATE TABLE table_name_59 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR)
SELECT SUM(rank) FROM table_name_59 WHERE gold > 0 AND total > 32 AND silver < 23
What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?
CREATE TABLE visit (visitor_id VARCHAR, Total_spent INTEGER); CREATE TABLE visitor (name VARCHAR, Level_of_membership VARCHAR, id VARCHAR)
SELECT t2.visitor_id, t1.name, t1.Level_of_membership FROM visitor AS t1 JOIN visit AS t2 ON t1.id = t2.visitor_id GROUP BY t2.visitor_id ORDER BY SUM(t2.Total_spent) DESC LIMIT 1
What was the total Attendance for Games while Chicago was the visiting Team?
CREATE TABLE table_name_61 (attendance INTEGER, visitor VARCHAR)
SELECT SUM(attendance) FROM table_name_61 WHERE visitor = "chicago"
Name the highest rank when silver is 4 and bronze is less than 3
CREATE TABLE table_name_13 (rank INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT MAX(rank) FROM table_name_13 WHERE silver = 4 AND bronze < 3
Which year has an Engine(s) of yamaha v8?
CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR)
SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8"
What was the score when the record was 18–14–4 with a toivonen decision?
CREATE TABLE table_name_11 (score VARCHAR, decision VARCHAR, record VARCHAR)
SELECT score FROM table_name_11 WHERE decision = "toivonen" AND record = "18–14–4"
How many episodes have 18.73 million viewers?
CREATE TABLE table_27481781_2 (no_in_series VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(no_in_series) FROM table_27481781_2 WHERE viewers__millions_ = "18.73"
How many masters fought using a boxing style?
CREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)
SELECT COUNT(masters) FROM table_14937957_1 WHERE martial_art_style = "Boxing"
How many data were given on 2010/2011 in Brazil?
CREATE TABLE table_27712_2 (country VARCHAR)
SELECT COUNT(2010 AS _11) FROM table_27712_2 WHERE country = "Brazil"
What high definition television options are available for Italia 1?
CREATE TABLE table_15887683_1 (hdtv VARCHAR, television_service VARCHAR)
SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 1"
Name the opponent for 7-1-0
CREATE TABLE table_21007907_1 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_21007907_1 WHERE record = "7-1-0"
Which team was played against in game 4?
CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR)
SELECT team FROM table_name_40 WHERE game = 4
Which Music has a Record label of moviebox/ speed records / music waves?
CREATE TABLE table_name_60 (music VARCHAR, record_label VARCHAR)
SELECT music FROM table_name_60 WHERE record_label = "moviebox/ speed records / music waves"
What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is greater than 0?
CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0
Who are all of the players on the Westchester High School club team?
CREATE TABLE table_10015132_9 (player VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_10015132_9 WHERE school_club_team = "Westchester High School"
List all document ids with at least two paragraphs.
CREATE TABLE Paragraphs (document_id VARCHAR)
SELECT document_id FROM Paragraphs GROUP BY document_id HAVING COUNT(*) >= 2
When 19/05/2002 is the date of withdrawn what is the name?
CREATE TABLE table_21795986_1 (name VARCHAR, withdrawn VARCHAR)
SELECT name FROM table_21795986_1 WHERE withdrawn = "19/05/2002"
What channel has station kdfw ++?
CREATE TABLE table_1353096_1 (channel_tv___dt__ VARCHAR, station VARCHAR)
SELECT channel_tv___dt__ FROM table_1353096_1 WHERE station = "KDFW ++"
What is the Fatalities when the tail number was unknown and in Kabul>
CREATE TABLE table_name_53 (fatalities VARCHAR, tail_number VARCHAR, location VARCHAR)
SELECT fatalities FROM table_name_53 WHERE tail_number = "unknown" AND location = "kabul"
Who won 2nd place when albertina fransisca mailoa was the winner of the putri pariwisata contest?
CREATE TABLE table_24014744_1 (putri_pariwisata_indonesia VARCHAR)
SELECT 1 AS st_runner_up FROM table_24014744_1 WHERE putri_pariwisata_indonesia = "Albertina Fransisca Mailoa"
Which Mark has an Athlete of tatyana lebedeva?
CREATE TABLE table_name_84 (mark VARCHAR, athlete VARCHAR)
SELECT mark FROM table_name_84 WHERE athlete = "tatyana lebedeva"
What is the GDP (nominal) for Uzbekistan?
CREATE TABLE table_11780179_1 (gdp__nominal_ VARCHAR, country VARCHAR)
SELECT gdp__nominal_ FROM table_11780179_1 WHERE country = "Uzbekistan"
What grid for denny hulme?
CREATE TABLE table_name_12 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_12 WHERE driver = "denny hulme"
What college does Jean-Nicolas Carriere play for?
CREATE TABLE table_16575609_3 (college VARCHAR, player VARCHAR)
SELECT college FROM table_16575609_3 WHERE player = "Jean-Nicolas Carriere"
When the Crowd is larger than 23,327, what Home team is playing?
CREATE TABLE table_name_65 (home_team VARCHAR, crowd INTEGER)
SELECT home_team FROM table_name_65 WHERE crowd > 23 OFFSET 327
who is the driver for the car constructed by ferrari with a time/retired of +1:06.683?
CREATE TABLE table_name_43 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683"
When is the first elected in the Florida 19 district?
CREATE TABLE table_1805191_10 (first_elected VARCHAR, district VARCHAR)
SELECT first_elected FROM table_1805191_10 WHERE district = "Florida 19"
What was the away team score for the game played at MCG?
CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "mcg"
What was the Tie no when Manchester United was the home team?
CREATE TABLE table_name_51 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_51 WHERE home_team = "manchester united"
What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?
CREATE TABLE table_name_88 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT AVG(average) FROM table_name_88 WHERE swimsuit < 9.109 AND country = "pennsylvania" AND evening_gown < 9.163
What is the Loan Club from Eng that ended on 22 February?
CREATE TABLE table_name_57 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)
SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 february"
Which 1997's 1992 was 1r when 1994 was a?
CREATE TABLE table_name_77 (Id VARCHAR)
SELECT 1997 FROM table_name_77 WHERE 1992 = "1r" AND 1994 = "a"
Who were the cover model(s) on the 4-05 issue?
CREATE TABLE table_1566852_6 (cover_model VARCHAR, date VARCHAR)
SELECT cover_model FROM table_1566852_6 WHERE date = "4-05"
What years is the private school in upper hutt?
CREATE TABLE table_name_90 (years VARCHAR, area VARCHAR, authority VARCHAR)
SELECT years FROM table_name_90 WHERE area = "upper hutt" AND authority = "private"
When was the Albi circuit race driven?
CREATE TABLE table_1140119_5 (date VARCHAR, circuit VARCHAR)
SELECT date FROM table_1140119_5 WHERE circuit = "Albi"
What is the average Gold award that has a Silver award greater than 2, and a Bronze award less than 13, and a Total greater than 24?
CREATE TABLE table_name_5 (gold INTEGER, total VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT AVG(gold) FROM table_name_5 WHERE silver > 2 AND bronze < 13 AND total > 24
What location did the Mavericks play against Milwaukee?
CREATE TABLE table_27723526_9 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_27723526_9 WHERE team = "Milwaukee"
What team 2 has a team 1 of harbour view?
CREATE TABLE table_name_82 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_82 WHERE team_1 = "harbour view"