question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What institution won in 2010 with student Cheng Herng Yi?
CREATE TABLE table_name_82 (institution VARCHAR, year VARCHAR, name VARCHAR)
SELECT institution FROM table_name_82 WHERE year > 2010 AND name = "cheng herng yi"
What is the most recent year founded with an enrollment of 42,708?
CREATE TABLE table_name_81 (founded INTEGER, enrollment VARCHAR)
SELECT MAX(founded) FROM table_name_81 WHERE enrollment = 42 OFFSET 708
What are the distinct template type descriptions for the templates ever used by any document?
CREATE TABLE Templates (template_type_code VARCHAR, Template_ID VARCHAR); CREATE TABLE Documents (template_ID VARCHAR); CREATE TABLE Ref_template_types (template_type_description VARCHAR, template_type_code VARCHAR)
SELECT DISTINCT T1.template_type_description FROM Ref_template_types AS T1 JOIN Templates AS T2 ON T1.template_type_code = T2.template_type_code JOIN Documents AS T3 ON T2.Template_ID = T3.template_ID
what's the 1st leg where opponents is galatasaray
CREATE TABLE table_1061075_1 (opponents VARCHAR)
SELECT 1 AS st_leg FROM table_1061075_1 WHERE opponents = "Galatasaray"
Show name and distance for all aircrafts.
CREATE TABLE Aircraft (name VARCHAR, distance VARCHAR)
SELECT name, distance FROM Aircraft
What was the date of the tournament held in Indonesia?
CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR)
SELECT date FROM table_name_23 WHERE country = "indonesia"
What is the diameter of the feature with longitude 8.0e?
CREATE TABLE table_16799784_13 (diameter__km_ VARCHAR, longitude VARCHAR)
SELECT diameter__km_ FROM table_16799784_13 WHERE longitude = "8.0E"
How many districts featured the democrat nicholas von stein?
CREATE TABLE table_name_57 (district VARCHAR, democratic VARCHAR)
SELECT COUNT(district) FROM table_name_57 WHERE democratic = "nicholas von stein"
Show the party and the number of drivers in each party.
CREATE TABLE driver (party VARCHAR)
SELECT party, COUNT(*) FROM driver GROUP BY party
What is the lowest 2nd (m) when the points were larger than 251.6?
CREATE TABLE table_name_99 (points INTEGER)
SELECT MIN(2 AS nd__m_) FROM table_name_99 WHERE points > 251.6
What was the Outcome in 1983 of the WD Event?
CREATE TABLE table_name_11 (outcome VARCHAR, event VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_11 WHERE event = "wd" AND year = "1983"
Find the name of account that has the lowest total checking and saving balance.
CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
Who is the away team that goes against Team Zambia?
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_13 WHERE home_team = "zambia"
What is nigel mansell's time/retired?
CREATE TABLE table_name_6 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_6 WHERE driver = "nigel mansell"
What is the smalledt position when the difference was 6?
CREATE TABLE table_15331868_1 (position INTEGER, difference VARCHAR)
SELECT MIN(position) FROM table_15331868_1 WHERE difference = "6"
Which keys (x modes) have a Supplier of wolfking?
CREATE TABLE table_name_55 (keys__x_modes_ VARCHAR, supplier VARCHAR)
SELECT keys__x_modes_ FROM table_name_55 WHERE supplier = "wolfking"
what is the number of the episode where maria mcerlane where gramer guest
CREATE TABLE table_17413485_1 (episode VARCHAR, graemes_guest VARCHAR)
SELECT episode FROM table_17413485_1 WHERE graemes_guest = "Maria McErlane"
Which webcast was in Spanish contemporary on xhnoe.com?
CREATE TABLE table_name_86 (webcast VARCHAR, format VARCHAR, website VARCHAR)
SELECT webcast FROM table_name_86 WHERE format = "spanish contemporary" AND website = "xhnoe.com"
Who is the first driver(s) when the country is romania?
CREATE TABLE table_27279050_3 (first_driver_s_ VARCHAR, country VARCHAR)
SELECT first_driver_s_ FROM table_27279050_3 WHERE country = "Romania"
What is the highest effic with an avg/g of 91.9?
CREATE TABLE table_name_68 (effic INTEGER, avg_g VARCHAR)
SELECT MAX(effic) FROM table_name_68 WHERE avg_g = 91.9
where is hte second place winner from united kingdom?
CREATE TABLE table_1359212_2 (winner VARCHAR, second_place VARCHAR)
SELECT winner FROM table_1359212_2 WHERE second_place = "United Kingdom"
What was the hometown of the player who attended Athens Drive High School?
CREATE TABLE table_11677100_5 (hometown VARCHAR, school VARCHAR)
SELECT hometown FROM table_11677100_5 WHERE school = "Athens Drive High school"
What was the home team's score when they played Richmond?
CREATE TABLE table_name_13 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_13 WHERE away_team = "richmond"
How many production codes were there for the episode that aired on November 15?
CREATE TABLE table_25691838_11 (production_code VARCHAR, original_airdate VARCHAR)
SELECT COUNT(production_code) FROM table_25691838_11 WHERE original_airdate = "November 15"
Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot of rebels?
CREATE TABLE table_name_88 (year_joined INTEGER, mascot VARCHAR, size VARCHAR, previous_conference VARCHAR)
SELECT AVG(year_joined) FROM table_name_88 WHERE size > 93 AND previous_conference = "none (new school)" AND mascot = "rebels"
What is the smallest sales area (m²) that has €4,094/m² and more than 2 stores?
CREATE TABLE table_name_20 (sales_area__m²_ INTEGER, sales_per_area VARCHAR, no_of_stores VARCHAR)
SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = "€4,094/m²" AND no_of_stores > 2
Which Game has an Opponent of detroit red wings, and a March smaller than 12?
CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR)
SELECT COUNT(game) FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 12
What is the lowest Total for Italy with less than 0 silver?
CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
What is the call sign for country station fm 93.1?
CREATE TABLE table_name_34 (call_sign VARCHAR, format VARCHAR, frequency VARCHAR)
SELECT call_sign FROM table_name_34 WHERE format = "country" AND frequency = "fm 93.1"
Name the least population 2007 for barangay is poblacion ii
CREATE TABLE table_1686313_1 (population__2007_ INTEGER, barangay VARCHAR)
SELECT MIN(population__2007_) FROM table_1686313_1 WHERE barangay = "Poblacion II"
What is the rank of the episode with a share of 6 and timeslot rank smaller than 4?
CREATE TABLE table_name_39 (overall_rank INTEGER, share VARCHAR, timeslot_rank VARCHAR)
SELECT AVG(overall_rank) FROM table_name_39 WHERE share = 6 AND timeslot_rank < 4
What is every time(cet) for the name of Lillehammer 2?
CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR)
SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2"
Which James Bond 007: Agent Under Fire from Electronic Arts is compatible with 60 gb pal/80 gb NTSC PS3 (CECHC/CECHE)?
CREATE TABLE table_10875694_11 (compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ VARCHAR, publisher VARCHAR, title VARCHAR)
SELECT compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ FROM table_10875694_11 WHERE publisher = "Electronic Arts" AND title = "James Bond 007: Agent Under Fire"
What is the sum of draws for all byes larger than 0?
CREATE TABLE table_name_94 (draws INTEGER, byes INTEGER)
SELECT SUM(draws) FROM table_name_94 WHERE byes > 0
What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?
CREATE TABLE table_name_79 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_79 WHERE time_retired = "+17.276" AND laps > 22
What was the average of games that were one in 1978 that were smaller than 141?
CREATE TABLE table_name_42 (wins INTEGER, years VARCHAR, games VARCHAR)
SELECT AVG(wins) FROM table_name_42 WHERE years = "1978" AND games < 141
What is the Venue with a Date with 27-02-2003?
CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_22 WHERE date = "27-02-2003"
What team had the record asscoiated with the 9th inning?
CREATE TABLE table_name_54 (team VARCHAR, inn VARCHAR)
SELECT team FROM table_name_54 WHERE inn = "9th"
What is the average Joined with a Nickname of wildcats in longmeadow, massachusetts?
CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR)
SELECT AVG(joined) FROM table_name_55 WHERE nickname = "wildcats" AND location = "longmeadow, massachusetts"
Name the opponent for april 24
CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_5 WHERE date = "april 24"
what's the 54 holes where winning score is −19 (67-66-67-69=269)
CREATE TABLE table_11570261_1 (winning_score VARCHAR)
SELECT 54 AS _holes FROM table_11570261_1 WHERE winning_score = −19(67 - 66 - 67 - 69 = 269)
What is the title of the TV series in 2012?
CREATE TABLE table_name_70 (title VARCHAR, year VARCHAR)
SELECT title FROM table_name_70 WHERE year = "2012"
What's the total rank of the lane smaller than 8 with a time of 59.80?
CREATE TABLE table_name_15 (rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT SUM(rank) FROM table_name_15 WHERE time = "59.80" AND lane < 8
Name the number of application for modeling, computer aided design, animation
CREATE TABLE table_19495707_1 (application VARCHAR, mainly_used_for VARCHAR)
SELECT COUNT(application) FROM table_19495707_1 WHERE mainly_used_for = "Modeling, Computer Aided Design, Animation"
How many years have a longitude measure of 20.0e?
CREATE TABLE table_16799784_9 (year_named VARCHAR, longitude VARCHAR)
SELECT COUNT(year_named) FROM table_16799784_9 WHERE longitude = "20.0E"
What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932?
CREATE TABLE table_name_92 (nordbayern VARCHAR, year VARCHAR, württemberg VARCHAR)
SELECT nordbayern FROM table_name_92 WHERE year < 1932 AND württemberg = "union böckingen"
What is the lowest amount of floors after rank 1 in the Trillium (residential) building?
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)"
What is the Segment A for when Segment C is s Sailboard?
CREATE TABLE table_15187735_6 (segment_a VARCHAR, segment_c VARCHAR)
SELECT segment_a FROM table_15187735_6 WHERE segment_c = "s Sailboard"
WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W
CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)
SELECT city_of_license FROM table_name_42 WHERE fcc_info = "fcc" AND erp_w = "10,000 horizontal 3,000 vertical"
How big was the crowd when Richmond was the away team?
CREATE TABLE table_name_28 (crowd VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_28 WHERE away_team = "richmond"
How many lanes featured a swimmer ranked above 4, in a heat later than 1, from australia, named ashley callus?
CREATE TABLE table_name_62 (lane VARCHAR, name VARCHAR, nationality VARCHAR, rank VARCHAR, heat VARCHAR)
SELECT COUNT(lane) FROM table_name_62 WHERE rank > 4 AND heat > 1 AND nationality = "australia" AND name = "ashley callus"
What is the score when Biron got the decision and Philadelphia was the visitor on March 1?
CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_38 WHERE decision = "biron" AND visitor = "philadelphia" AND date = "march 1"
How many games played catagories are there for Lauren McGee?
CREATE TABLE table_25401874_1 (games_played VARCHAR, name VARCHAR)
SELECT COUNT(games_played) FROM table_25401874_1 WHERE name = "Lauren McGee"
What was week 3 score?
CREATE TABLE table_name_79 (result VARCHAR, week VARCHAR)
SELECT result FROM table_name_79 WHERE week = 3
Name the US R&B for 1981
CREATE TABLE table_name_39 (us_r VARCHAR, b VARCHAR, year VARCHAR)
SELECT us_r & b FROM table_name_39 WHERE year = 1981
Which Loss has a Record of 41–32–6?
CREATE TABLE table_name_38 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_38 WHERE record = "41–32–6"
For an ICAO of VCCT, what is the IATA?
CREATE TABLE table_name_66 (iata VARCHAR, icao VARCHAR)
SELECT iata FROM table_name_66 WHERE icao = "vcct"
What was the lowest Crowd total from a game in which Essendon was the Away team?
CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_35 WHERE away_team = "essendon"
How many titles does the episode written by Joe Toplyn have?
CREATE TABLE table_25716397_1 (title VARCHAR, written_by VARCHAR)
SELECT COUNT(title) FROM table_25716397_1 WHERE written_by = "Joe Toplyn"
Please list all songs in volumes in ascending alphabetical order.
CREATE TABLE volume (Song VARCHAR)
SELECT Song FROM volume ORDER BY Song
what is the school that hosts mikael renberg
CREATE TABLE table_name_91 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_91 WHERE player = "mikael renberg"
What is the additional information in the song mera yaar bana hai dulha
CREATE TABLE table_2528382_2 (additional_info VARCHAR, song VARCHAR)
SELECT additional_info FROM table_2528382_2 WHERE song = "Mera Yaar Bana Hai Dulha"
What is the highest number of losses for teams with under 3 draws and 51 points?
CREATE TABLE table_name_49 (loses INTEGER, draws VARCHAR, points VARCHAR)
SELECT MAX(loses) FROM table_name_49 WHERE draws < 3 AND points = 51
where has a Score of match reports?
CREATE TABLE table_name_49 (location VARCHAR, score VARCHAR)
SELECT location FROM table_name_49 WHERE score = "match reports"
In which ceremony was Jayant nominated for an award?
CREATE TABLE table_name_69 (ceremony VARCHAR, nominee VARCHAR)
SELECT ceremony FROM table_name_69 WHERE nominee = "jayant"
What positions does Tom Hammond play?
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_14342592_3 WHERE player = "Tom Hammond"
what are all the date withdrawn for twin screw ro-ro motorship
CREATE TABLE table_11662133_3 (date_withdrawn VARCHAR, type_of_ship VARCHAR)
SELECT date_withdrawn FROM table_11662133_3 WHERE type_of_ship = "Twin Screw Ro-Ro Motorship"
When did the Texans play BYE?
CREATE TABLE table_name_8 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_8 WHERE opponent = "bye"
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
CREATE TABLE table_name_91 (Id VARCHAR)
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes"
When Fabrizio Baldassari is the runner-up what is the total prize money?
CREATE TABLE table_12454156_1 (prize_money VARCHAR, runner_up VARCHAR)
SELECT prize_money FROM table_12454156_1 WHERE runner_up = "Fabrizio Baldassari"
Which Attendance has a Result of l 29–23?
CREATE TABLE table_name_54 (attendance VARCHAR, result VARCHAR)
SELECT attendance FROM table_name_54 WHERE result = "l 29–23"
What is the Status of the Paris with a Census Ranking of 3,474 of 5,008?
CREATE TABLE table_name_2 (status VARCHAR, census_ranking VARCHAR)
SELECT status FROM table_name_2 WHERE census_ranking = "3,474 of 5,008"
Which Pos has a Driver of brian scott (r)?
CREATE TABLE table_name_23 (pos INTEGER, driver VARCHAR)
SELECT SUM(pos) FROM table_name_23 WHERE driver = "brian scott (r)"
Who was at home when the score was 2:2?
CREATE TABLE table_name_88 (home VARCHAR, score VARCHAR)
SELECT home FROM table_name_88 WHERE score = "2:2"
How many points did the club with 13 losses and 461 points against have?
CREATE TABLE table_name_59 (points VARCHAR, lost VARCHAR, points_against VARCHAR)
SELECT points FROM table_name_59 WHERE lost = "13" AND points_against = "461"
What are the cargo tonnes when the international (non-CIS) is 297 421?
CREATE TABLE table_name_90 (cargo__tonnes_ VARCHAR, international__non_cis_ VARCHAR)
SELECT cargo__tonnes_ FROM table_name_90 WHERE international__non_cis_ = "297 421"
What sort of Fuel/Trans does the Grey & Red locomotive have?
CREATE TABLE table_name_15 (fuel__trans VARCHAR, colour VARCHAR)
SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red"
Which Place has a To par of −1 and don pooley?
CREATE TABLE table_name_1 (place VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT place FROM table_name_1 WHERE to_par = "−1" AND player = "don pooley"
Who's the director of Buddy of the Apes?
CREATE TABLE table_name_80 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_80 WHERE title = "buddy of the apes"
In connecticut the school/club team/country had a set height in ft. what is true for them?
CREATE TABLE table_11734041_10 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT height_in_ft FROM table_11734041_10 WHERE school_club_team_country = "Connecticut"
what's the trim with engine being 3.5l lz4 v6
CREATE TABLE table_1373768_1 (trim VARCHAR, engine VARCHAR)
SELECT trim FROM table_1373768_1 WHERE engine = "3.5L LZ4 V6"
What team played on November 28?
CREATE TABLE table_name_37 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_37 WHERE date = "november 28"
Who held the title of Ruler?
CREATE TABLE table_name_31 (name VARCHAR, title VARCHAR)
SELECT name FROM table_name_31 WHERE title = "ruler"
How many battles resulted in Battle of the Yellow Sea?
CREATE TABLE table_26977890_1 (result VARCHAR, battles VARCHAR)
SELECT COUNT(result) FROM table_26977890_1 WHERE battles = "Battle of the Yellow Sea"
What is the Cook PVI for the location that has a representative of Mike Thompson?
CREATE TABLE table_19283806_4 (cook_pvi VARCHAR, representative VARCHAR)
SELECT cook_pvi FROM table_19283806_4 WHERE representative = "Mike Thompson"
Name the average year with Laps of 6
CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE laps = 6
Name the record on june 22
CREATE TABLE table_name_89 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_89 WHERE date = "june 22"
Which Kit Manufacturer supports team Everton?
CREATE TABLE table_name_90 (kit_manufacturer VARCHAR, team VARCHAR)
SELECT kit_manufacturer FROM table_name_90 WHERE team = "everton"
What is the Year of the game with Result of 4–3 and Champions of Daegu Tongyang Orions?
CREATE TABLE table_name_86 (year VARCHAR, result VARCHAR, champions VARCHAR)
SELECT year FROM table_name_86 WHERE result = "4–3" AND champions = "daegu tongyang orions"
What is the frequency of Walterboro, SC?
CREATE TABLE table_name_74 (frequency_mhz VARCHAR, city_of_license VARCHAR)
SELECT frequency_mhz FROM table_name_74 WHERE city_of_license = "walterboro, sc"
What school colors for the friends' school with over 1000 enrolled?
CREATE TABLE table_name_70 (school VARCHAR, enrolment VARCHAR)
SELECT school AS Colors FROM table_name_70 WHERE enrolment > 1000 AND school = "the friends' school"
Which player made 4 touchdowns while playing left halfback?
CREATE TABLE table_14342210_6 (player VARCHAR, touchdowns VARCHAR, position VARCHAR)
SELECT player FROM table_14342210_6 WHERE touchdowns = 4 AND position = "Left halfback"
how many laps was the driver jacques villeneuve and the grid more than 7?
CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jacques villeneuve" AND grid > 7
How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?
CREATE TABLE table_name_53 (laps VARCHAR, winnings VARCHAR, car__number VARCHAR)
SELECT COUNT(laps) FROM table_name_53 WHERE winnings = "$116,033" AND car__number < 18
What year did the Leo Jackson Racing team win?
CREATE TABLE table_22298383_1 (year VARCHAR, team VARCHAR)
SELECT year FROM table_22298383_1 WHERE team = "Leo Jackson Racing"
Which countries won by 9 strokes?
CREATE TABLE table_1520559_1 (country VARCHAR, margin_of_victory VARCHAR)
SELECT country FROM table_1520559_1 WHERE margin_of_victory = "9 strokes"
What is the sum of people in the total region when more than 5,060 were in Mt. Morgan?
CREATE TABLE table_name_90 (total_region INTEGER, mt_morgan INTEGER)
SELECT SUM(total_region) FROM table_name_90 WHERE mt_morgan > 5 OFFSET 060
What is the 2006 value with a 2011 value greater than 4113 and a 2008 value less than 7181?
CREATE TABLE table_name_83 (Id VARCHAR)
SELECT SUM(2006) FROM table_name_83 WHERE 2011 > 4113 AND 2008 < 7181
What Player is from Connecticut?
CREATE TABLE table_name_39 (player VARCHAR, college_country_team VARCHAR)
SELECT player FROM table_name_39 WHERE college_country_team = "connecticut"
What is the result for week 12 against the Green Bay Packers?
CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_94 WHERE week > 12 AND opponent = "green bay packers"