answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT lowest_point FROM table_1416612_1 WHERE highest_point = "Mount Greylock"
what's the lowest point with highest point being mount greylock
CREATE TABLE table_1416612_1 (lowest_point VARCHAR, highest_point VARCHAR)
SELECT label FROM table_name_91 WHERE catalog = "y8hr 1006" AND date = "1972"
Which label has a catalog of y8hr 1006 in 1972?
CREATE TABLE table_name_91 (label VARCHAR, catalog VARCHAR, date VARCHAR)
SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada"
How many Miss Waters has Canada had?
CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR)
SELECT t3.characteristic_name, t3.characteristic_data_type FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "cumin"
List all the characteristic names and data types of product "cumin".
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = "brett moffitt" AND team = "hattori racing enterprises"
What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?
CREATE TABLE table_name_23 (truck_s_ VARCHAR, driver_s_ VARCHAR, team VARCHAR)
SELECT COUNT(tie_no) FROM table_name_5 WHERE away_team = "harlow town"
What is the tie number total when Harlow Town is the away team?
CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR)
SELECT MIN(game) FROM table_name_81 WHERE score = "99-89"
What is the earliest game with a score of 99-89?
CREATE TABLE table_name_81 (game INTEGER, score VARCHAR)
SELECT example FROM table_30011_2 WHERE equivalent = "NTE160"
What is every example for the equivalent of NTE160?
CREATE TABLE table_30011_2 (example VARCHAR, equivalent VARCHAR)
SELECT location FROM table_name_9 WHERE date = "2006-04-07" AND circumstances = "direct fire"
Name the location on 2006-04-07 for direct fire
CREATE TABLE table_name_9 (location VARCHAR, date VARCHAR, circumstances VARCHAR)
SELECT game FROM table_23286223_5 WHERE high_rebounds = "Carlos Boozer (8)"
What's the number of the game in which Carlos Boozer (8) did the high rebounds?
CREATE TABLE table_23286223_5 (game VARCHAR, high_rebounds VARCHAR)
SELECT pts_[b_] FROM table_name_82 WHERE reb_[b_] > 636 AND no_[a_] = "50"
What is the points that is more than 636 and has a value of 50?
CREATE TABLE table_name_82 (pts_ VARCHAR, b_ VARCHAR, reb_ VARCHAR, no_ VARCHAR, a_ VARCHAR)
SELECT bronze FROM table_name_72 WHERE year = 1994
Who won bronze in 1994?
CREATE TABLE table_name_72 (bronze VARCHAR, year VARCHAR)
SELECT stadium FROM table_name_88 WHERE final_score = "17-31"
What stadium was the game held in when the final score was 17-31?
CREATE TABLE table_name_88 (stadium VARCHAR, final_score VARCHAR)
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt"
How many Antonov An-2 Colt aircraft are in service?
CREATE TABLE table_name_37 (in_service INTEGER, aircraft VARCHAR)
SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"
Which tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič?
CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_2 WHERE record = "5–4–3"
What is the Score of the game with a Record of 5–4–3?
CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR)
SELECT MAX(crowd) FROM table_name_7 WHERE venue = "arden street oval"
What is the highest crowd at arden street oval?
CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR)
SELECT AVG(ties) FROM table_name_21 WHERE wins < 5 AND goals_against > 37 AND games_played < 8
For teams with fewer than 5 wins, goals against over 37, and fewer than 8 games played, what is the average number of ties?
CREATE TABLE table_name_21 (ties INTEGER, games_played VARCHAR, wins VARCHAR, goals_against VARCHAR)
SELECT COUNT(year_named) FROM table_name_68 WHERE name = "ur sulcus" AND diameter < 1 OFFSET 145.0
How many years is ur sulcus listed with a diameter less than 1,145.0?
CREATE TABLE table_name_68 (year_named VARCHAR, name VARCHAR, diameter VARCHAR)
SELECT open_date FROM church GROUP BY open_date HAVING COUNT(*) >= 2
Show the opening year in whcih at least two churches opened.
CREATE TABLE church (open_date VARCHAR)
SELECT constructor FROM table_1140105_6 WHERE circuit = "Zeltweg Airfield"
what is the name of the constructor that has the circuit zeltweg airfield?
CREATE TABLE table_1140105_6 (constructor VARCHAR, circuit VARCHAR)
SELECT location FROM table_name_11 WHERE built = "1910"
Where is the historic place that was built in 1910?
CREATE TABLE table_name_11 (location VARCHAR, built VARCHAR)
SELECT man_of_the_match FROM table_name_28 WHERE venue = "home" AND opponent = "romford raiders"
Who was the Man of the Match when they played the Romford Raiders at home?
CREATE TABLE table_name_28 (man_of_the_match VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_32 WHERE partner = "stephen huss" AND date = "31 october 2010"
On what surface did he play with Stephen Huss on 31 October 2010?
CREATE TABLE table_name_32 (surface VARCHAR, partner VARCHAR, date VARCHAR)
SELECT date FROM table_name_60 WHERE venue = "firhill" AND opponent = "ayr united"
What day was the game held at Firhill against AYR United?
CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT ranking FROM table_21515673_2 WHERE rr2_pts = 4
What is the rank when RR2 has 4 points?
CREATE TABLE table_21515673_2 (ranking VARCHAR, rr2_pts VARCHAR)
SELECT winning_pitcher FROM table_12125069_2 WHERE attendance = 38109
Who is the winning pitcher when attendance is 38109?
CREATE TABLE table_12125069_2 (winning_pitcher VARCHAR, attendance VARCHAR)
SELECT club FROM table_name_84 WHERE try_bp = "0"
Can you tell me the Club thay has the Try BP of 0?
CREATE TABLE table_name_84 (club VARCHAR, try_bp VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "melbourne"
On what date did the away team Melbourne play?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(platform) FROM table_28178595_2 WHERE mystic_arte = "Celsius Calibur"
How many platforms have celsius calibur as mystic arte?
CREATE TABLE table_28178595_2 (platform VARCHAR, mystic_arte VARCHAR)
SELECT COUNT(game) FROM table_name_83 WHERE high_assists = "rajon rondo (6)"
What is the total number of Game, when High Assists is "Rajon Rondo (6)"?
CREATE TABLE table_name_83 (game VARCHAR, high_assists VARCHAR)
SELECT metropolitan_area FROM table_22916979_5 WHERE densest_incorporated_place = "North Bay Village"
Name the area for north bay village
CREATE TABLE table_22916979_5 (metropolitan_area VARCHAR, densest_incorporated_place VARCHAR)
SELECT opponent FROM table_name_86 WHERE bsu_head_coach = "bobby dye" AND year < 1994
Who was the opponent before 1994 with bobby dye as the BSU head coach?
CREATE TABLE table_name_86 (opponent VARCHAR, bsu_head_coach VARCHAR, year VARCHAR)
SELECT COUNT(enrollment) FROM table_1971074_1 WHERE nickname = "Barons"
How many different enrollment numbers are there for the school whose students are nicknamed Barons?
CREATE TABLE table_1971074_1 (enrollment VARCHAR, nickname VARCHAR)
SELECT genitive FROM table_name_1 WHERE ergative = "shen"
What is the genitive for the ergative shen?
CREATE TABLE table_name_1 (genitive VARCHAR, ergative VARCHAR)
SELECT away_team FROM table_name_46 WHERE tie_no = "14"
For the Tie number of 14 who was the away team?
CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR)
SELECT icao FROM table_name_83 WHERE iata = "sin"
What shows for ICAO when the IATA is sin?
CREATE TABLE table_name_83 (icao VARCHAR, iata VARCHAR)
SELECT position FROM table_name_76 WHERE overall = 304
What position does the player play with an overall of 304?
CREATE TABLE table_name_76 (position VARCHAR, overall VARCHAR)
SELECT COUNT(DISTINCT region_id) FROM affected_region
How many regions are affected?
CREATE TABLE affected_region (region_id VARCHAR)
SELECT call_sign FROM table_name_80 WHERE tail_code = "ed"
Which Call Sign that has Tail Code ed?
CREATE TABLE table_name_80 (call_sign VARCHAR, tail_code VARCHAR)
SELECT country FROM table_name_92 WHERE player = "nick faldo"
What country has player Nick Faldo?
CREATE TABLE table_name_92 (country VARCHAR, player VARCHAR)
SELECT COUNT(creators) FROM table_19534677_1 WHERE volume_title = "Flash of Two Worlds"
Name the umbr of creators for flash of two worlds
CREATE TABLE table_19534677_1 (creators VARCHAR, volume_title VARCHAR)
SELECT java_ee_compatibility FROM table_name_97 WHERE edition = "5.2.4"
What is the Java EE compatibility of the 5.2.4 edition?
CREATE TABLE table_name_97 (java_ee_compatibility VARCHAR, edition VARCHAR)
SELECT T1.series_name FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T2.Episode = "A Love of a Lifetime"
What is the TV Channel of TV series with Episode "A Love of a Lifetime"? List the TV Channel's series name.
CREATE TABLE TV_series (Channel VARCHAR, Episode VARCHAR); CREATE TABLE TV_Channel (series_name VARCHAR, id VARCHAR)
SELECT wins FROM table_name_98 WHERE fl = "0" AND poles = "0" AND position = "7th" AND points = "35"
What is the number of wins with a 0 F.L., 0 poles, a position of 7th, and 35 points?
CREATE TABLE table_name_98 (wins VARCHAR, points VARCHAR, position VARCHAR, fl VARCHAR, poles VARCHAR)
SELECT minoru FROM table_name_38 WHERE block_a = "koji kanemoto"
Name the minoru for block A being koji kanemoto
CREATE TABLE table_name_38 (minoru VARCHAR, block_a VARCHAR)
SELECT estimate FROM table_name_78 WHERE date = "april 27, 1865"
What was the estimated number of victims for the April 27, 1865 sinking?
CREATE TABLE table_name_78 (estimate VARCHAR, date VARCHAR)
SELECT score FROM table_name_10 WHERE set_2 = "17–25" AND total = "48–75"
Which score has a Set 2 of 17–25, and a Total of 48–75?
CREATE TABLE table_name_10 (score VARCHAR, set_2 VARCHAR, total VARCHAR)
SELECT format FROM table_name_90 WHERE label = "electropolis" AND date = "2002"
What is the Format with a Label of electropolis and a Date that is 2002?
CREATE TABLE table_name_90 (format VARCHAR, label VARCHAR, date VARCHAR)
SELECT SUM(round) FROM table_name_64 WHERE team = "team impul" AND date = "8 july"
What is the sum of team impul with the date of 8 july
CREATE TABLE table_name_64 (round INTEGER, team VARCHAR, date VARCHAR)
SELECT mens_doubles FROM table_28138035_26 WHERE mens_singles = "Wang Hao"
Who won the mens doubles when wang hao won the mens singles?
CREATE TABLE table_28138035_26 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT teams FROM table_name_41 WHERE season = "2006-07"
Which teams were in the 2006-07 season?
CREATE TABLE table_name_41 (teams VARCHAR, season VARCHAR)
SELECT party FROM table_2668367_21 WHERE district = "Virginia 12"
Name the party for virginia 12
CREATE TABLE table_2668367_21 (party VARCHAR, district VARCHAR)
SELECT MAX(goals) FROM table_23963781_3
What is the most amount of goals any of the players had?
CREATE TABLE table_23963781_3 (goals INTEGER)
SELECT home_team FROM table_name_68 WHERE venue = "junction oval"
What is the team set at junction oval?
CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR)
SELECT reidsville FROM table_25330991_3 WHERE information = "Enrollment"
Name the reidsville for enrollment
CREATE TABLE table_25330991_3 (reidsville VARCHAR, information VARCHAR)
SELECT original_airdate FROM table_27547668_2 WHERE _number = 6
What is the original air date of # 6?
CREATE TABLE table_27547668_2 (original_airdate VARCHAR, _number VARCHAR)
SELECT result FROM table_1342149_24 WHERE first_elected = 1920
Name the result for first elected of 1920
CREATE TABLE table_1342149_24 (result VARCHAR, first_elected VARCHAR)
SELECT record FROM table_name_68 WHERE date = "march 22"
What was the record on March 22?
CREATE TABLE table_name_68 (record VARCHAR, date VARCHAR)
SELECT COUNT(australian_open) FROM table_197638_6 WHERE player = "Roy Emerson"
How many times did Roy Emerson win the Australian Open?
CREATE TABLE table_197638_6 (australian_open VARCHAR, player VARCHAR)
SELECT MIN(round) FROM table_name_39 WHERE overall = 247 AND pick__number < 41
What is the lowest Round with Overall of 247 and pick less than 41?
CREATE TABLE table_name_39 (round INTEGER, overall VARCHAR, pick__number VARCHAR)
SELECT authority FROM table_name_32 WHERE decile = 6 AND name = "pongaroa school"
Name the authority when the decile is 6 for pongaroa school
CREATE TABLE table_name_32 (authority VARCHAR, decile VARCHAR, name VARCHAR)
SELECT series FROM table_name_38 WHERE title = "egghead rides again"
What series was called Egghead Rides Again?
CREATE TABLE table_name_38 (series VARCHAR, title VARCHAR)
SELECT subject FROM table_name_63 WHERE election = "general" AND office = "queen anne's county state's attorney"
What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?
CREATE TABLE table_name_63 (subject VARCHAR, election VARCHAR, office VARCHAR)
SELECT california FROM table_17425749_1 WHERE alaska = "Tennessee"
Name the california where alaska tennessee
CREATE TABLE table_17425749_1 (california VARCHAR, alaska VARCHAR)
SELECT home_team FROM table_name_2 WHERE away_team = "arsenal"
Who was the home team for the match against Arsenal?
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT method FROM table_name_99 WHERE event = "ufc fight night: teixeira vs. bader"
What methos did Keith Wisniewski use in the ufc fight night: teixeira vs. bader?
CREATE TABLE table_name_99 (method VARCHAR, event VARCHAR)
SELECT date FROM table_name_65 WHERE venue = "cadott rock fest"
When is Cadott Rock Fest taken place?
CREATE TABLE table_name_65 (date VARCHAR, venue VARCHAR)
SELECT nationality FROM table_name_85 WHERE pick = "153"
Tell me the nationality of pick of 153
CREATE TABLE table_name_85 (nationality VARCHAR, pick VARCHAR)
SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = "Nissan Leaf"
What is the epa rated combined fuel economy for the Nissan Leaf?
CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR)
SELECT MAX(point) FROM table_name_98 WHERE lost_point = 33 AND league_point < 52
Tell me the highest point with lost point being 33 and league point less than 52
CREATE TABLE table_name_98 (point INTEGER, lost_point VARCHAR, league_point VARCHAR)
SELECT service_charge FROM table_name_42 WHERE designation = "12-pdr light"
What is the service chage of the boat howitzers with a 12-pdr light destination?
CREATE TABLE table_name_42 (service_charge VARCHAR, designation VARCHAR)
SELECT change__2011_to_2012_ FROM table_14752049_6 WHERE country = "United Kingdom"
United kingdom is the country what is the change (2011 to 2012)?
CREATE TABLE table_14752049_6 (change__2011_to_2012_ VARCHAR, country VARCHAR)
SELECT date FROM table_name_30 WHERE opponent = "portland trail blazers" AND score = "106-104"
On what Date was the Score 106-104 against the Portland Trail Blazers?
CREATE TABLE table_name_30 (date VARCHAR, opponent VARCHAR, score VARCHAR)
SELECT MIN(wins) FROM table_name_17 WHERE rank > 4
What is the low win total for players ranked below 4?
CREATE TABLE table_name_17 (wins INTEGER, rank INTEGER)
SELECT date FROM table_15346009_1 WHERE tournament = "JELD-WEN Tradition"
What day was Jeld-Wen Tradition held?
CREATE TABLE table_15346009_1 (date VARCHAR, tournament VARCHAR)
SELECT Pilot_name FROM pilot WHERE NOT Pilot_ID IN (SELECT Pilot_ID FROM pilot_record)
List the names of pilots that do not have any record.
CREATE TABLE pilot_record (Pilot_name VARCHAR, Pilot_ID VARCHAR); CREATE TABLE pilot (Pilot_name VARCHAR, Pilot_ID VARCHAR)
SELECT record FROM table_name_90 WHERE opponent = "masahiro oishi"
In the match against Masahiro Oishi, what was the record?
CREATE TABLE table_name_90 (record VARCHAR, opponent VARCHAR)
SELECT result FROM table_22577693_1 WHERE runner_up = "[[|]] 151/8 (50.0 overs)"
If the runner-up is [[|]] 151/8 (50.0 overs), what were the results?
CREATE TABLE table_22577693_1 (result VARCHAR, runner_up VARCHAR)
SELECT kickoff_time FROM table_name_72 WHERE date = "january 7, 2002"
What is the Kickoff Time on January 7, 2002?
CREATE TABLE table_name_72 (kickoff_time VARCHAR, date VARCHAR)
SELECT points AS won FROM table_23501776_16 WHERE points = 1230
Name the points won for 1230
CREATE TABLE table_23501776_16 (points VARCHAR)
SELECT school FROM table_name_76 WHERE hometown = "riverside, ca"
Which school is in Riverside, CA?
CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR)
SELECT first_elected FROM table_name_21 WHERE state = "vic" AND member = "hon don chipp"
What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp?
CREATE TABLE table_name_21 (first_elected VARCHAR, state VARCHAR, member VARCHAR)
SELECT result FROM table_name_57 WHERE round = "sf"
What is Result, when Round is SF?
CREATE TABLE table_name_57 (result VARCHAR, round VARCHAR)
SELECT locality FROM table_name_47 WHERE ofsted < 106478 AND school = "meadowbank primary and nursery school"
Where is the locality with Ofsted less than 106478 for Meadowbank Primary and Nursery School?
CREATE TABLE table_name_47 (locality VARCHAR, ofsted VARCHAR, school VARCHAR)
SELECT league_position FROM table_name_31 WHERE result_f___a = "2 – 0" AND opponents = "queens park rangers"
What League position has a Result F – A of 2 – 0, and Opponents of queens park rangers?
CREATE TABLE table_name_31 (league_position VARCHAR, result_f___a VARCHAR, opponents VARCHAR)
SELECT career FROM table_name_94 WHERE average > 0.361 AND player = "tymerlan huseynov"
What years did Tymerlan Huseynov, whose average is larger than 0.361, play?
CREATE TABLE table_name_94 (career VARCHAR, average VARCHAR, player VARCHAR)
SELECT MAX(game) FROM table_23284271_9 WHERE record = "46-22"
How many games had been played when the Mavericks had a 46-22 record?
CREATE TABLE table_23284271_9 (game INTEGER, record VARCHAR)
SELECT location FROM table_16432543_3 WHERE enrollment = 12400
What school location had an enrollment of 12400?
CREATE TABLE table_16432543_3 (location VARCHAR, enrollment VARCHAR)
SELECT COUNT(call_sign) FROM table_18536769_1 WHERE owner = "Vista Radio"
When vista radio is the owner how many call signs are there?
CREATE TABLE table_18536769_1 (call_sign VARCHAR, owner VARCHAR)
SELECT subject_name FROM SUBJECTS
List all the subject names.
CREATE TABLE SUBJECTS (subject_name VARCHAR)
SELECT date_of_notes FROM Assessment_Notes
What are the dates of the assessment notes?
CREATE TABLE Assessment_Notes (date_of_notes VARCHAR)
SELECT T1.student_id, T2.course_name FROM student_course_registrations AS T1 JOIN courses AS T2 ON T1.course_id = T2.course_id
What are the ids of all students for courses and what are the names of those courses?
CREATE TABLE courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE student_course_registrations (student_id VARCHAR, course_id VARCHAR)
SELECT province FROM table_19905183_1 WHERE team = "Ruhuna Royals"
What province does the Ruhuna Royals team come from?
CREATE TABLE table_19905183_1 (province VARCHAR, team VARCHAR)
SELECT specifically_stains FROM table_13570_1 WHERE nucleus = "Blue/black"
A nucleus that is blue/black will specifically stain what?
CREATE TABLE table_13570_1 (specifically_stains VARCHAR, nucleus VARCHAR)
SELECT points FROM table_name_39 WHERE goal_difference < 38 AND wins = 12 AND club = "real oviedo"
In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins?
CREATE TABLE table_name_39 (points VARCHAR, club VARCHAR, goal_difference VARCHAR, wins VARCHAR)
SELECT score FROM table_name_31 WHERE record = "17–18–6"
What score had a record of 17–18–6?
CREATE TABLE table_name_31 (score VARCHAR, record VARCHAR)
SELECT 2007 FROM table_name_92 WHERE 2003 = "ch callaway's copyright"
What is the 2007 with ch callaway's copyright in 2003?
CREATE TABLE table_name_92 (Id VARCHAR)
SELECT points FROM table_2110959_1 WHERE season = "1958-59"
What were the points in the 1958-59 season?
CREATE TABLE table_2110959_1 (points VARCHAR, season VARCHAR)
SELECT T1.event_id, T1.event_details FROM EVENTS AS T1 JOIN Participants_in_Events AS T2 ON T1.Event_ID = T2.Event_ID GROUP BY T1.Event_ID HAVING COUNT(*) > 1
What are the ids and details of events that have more than one participants?
CREATE TABLE EVENTS (event_id VARCHAR, event_details VARCHAR, Event_ID VARCHAR); CREATE TABLE Participants_in_Events (Event_ID VARCHAR)