text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR)
### Question:
What is the name of the school that is in Valparaiso?
### Answer:
SELECT school FROM table_name_37 WHERE location = "valparaiso" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)
### Question:
What is the average year having 142 points?
### Answer:
SELECT AVG(year) FROM table_name_61 WHERE points = 142 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2293510_1 (total__million_€__ VARCHAR, ppp__million_€_ VARCHAR)
### Question:
What's the total (in million €) in the region where PPP is 21779 million €?
### Answer:
SELECT total__million_€__ FROM table_2293510_1 WHERE ppp__million_€_ = 21779 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (stockholm VARCHAR, malmö VARCHAR)
### Question:
What was Stockholm's score when Malmo scored 2?
### Answer:
SELECT stockholm FROM table_name_54 WHERE malmö = "2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (lane INTEGER, rank VARCHAR)
### Question:
What is the Lane of the swimmer with a Rank of 8?
### Answer:
SELECT MAX(lane) FROM table_name_24 WHERE rank = 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_36 (position VARCHAR, school_club_team VARCHAR)
### Question:
What is the Position of the player from Vanderbilt?
### Answer:
SELECT position FROM table_name_36 WHERE school_club_team = "vanderbilt" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (virtual_channel VARCHAR, station_ownership VARCHAR, call_sign VARCHAR)
### Question:
Station Ownership of eicb tv, and a Call sign of ktcj-ld is what virtual network?
### Answer:
SELECT virtual_channel FROM table_name_25 WHERE station_ownership = "eicb tv" AND call_sign = "ktcj-ld" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (district VARCHAR, first_elected INTEGER)
### Question:
Which District has a First elected larger than 1858?
### Answer:
SELECT district FROM table_name_21 WHERE first_elected > 1858 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE mountain (Name VARCHAR, Height VARCHAR, Prominence VARCHAR)
### Question:
Show the names of mountains with height more than 5000 or prominence more than 1000.
### Answer:
SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (attendance INTEGER, week VARCHAR)
### Question:
How many people on average attended the game in week 14?
### Answer:
SELECT AVG(attendance) FROM table_name_68 WHERE week = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_80 (mahu VARCHAR, pergi VARCHAR)
### Question:
What is Mahu when pergi is pi?
### Answer:
SELECT mahu FROM table_name_80 WHERE pergi = "pi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (visitor VARCHAR, home VARCHAR, date VARCHAR)
### Question:
Who was the visitor for Chicago Black Hawks on May 6?
### Answer:
SELECT visitor FROM table_name_7 WHERE home = "chicago black hawks" AND date = "may 6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (year INTEGER, venue VARCHAR)
### Question:
What is the highest Year, when the Venue is Beijing, PR China?
### Answer:
SELECT MAX(year) FROM table_name_54 WHERE venue = "beijing, pr china" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (points_against VARCHAR, team VARCHAR, tries_against VARCHAR)
### Question:
How many points against has team Cardiff had when there were less than 7 tries?
### Answer:
SELECT COUNT(points_against) FROM table_name_97 WHERE team = "cardiff" AND tries_against < 7 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (team_1 VARCHAR)
### Question:
What is the 1st leg when team 1 is Chelsea?
### Answer:
SELECT 1 AS st_leg FROM table_name_58 WHERE team_1 = "chelsea" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_39 (league_goals VARCHAR, fa_cup_apps VARCHAR)
### Question:
Which league goals has FA cup apps of 2?
### Answer:
SELECT league_goals FROM table_name_39 WHERE fa_cup_apps = 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (high_points VARCHAR, high_rebounds VARCHAR)
### Question:
What had the high points when OT had high rebounds?
### Answer:
SELECT high_points FROM table_name_51 WHERE high_rebounds = "ot" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1859855_2 (age INTEGER, hometown VARCHAR)
### Question:
When austin, texas is the hometown what is the lowest age?
### Answer:
SELECT MIN(age) FROM table_1859855_2 WHERE hometown = "Austin, Texas" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (crowd INTEGER, venue VARCHAR)
### Question:
What is the sum of crowd(s) at princes park?
### Answer:
SELECT SUM(crowd) FROM table_name_45 WHERE venue = "princes park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22853654_9 (opponent VARCHAR, result VARCHAR)
### Question:
Name the opponent for 3–6, 4–6, 6–1, 6–7 (7–9)
### Answer:
SELECT opponent FROM table_22853654_9 WHERE result = "3–6, 4–6, 6–1, 6–7 (7–9)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (crowd INTEGER, venue VARCHAR)
### Question:
What was the crowd size at Junction Oval?
### Answer:
SELECT MAX(crowd) FROM table_name_78 WHERE venue = "junction oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (nominated_work VARCHAR, award VARCHAR)
### Question:
What nominated work has seattle international film festival as the award?
### Answer:
SELECT nominated_work FROM table_name_24 WHERE award = "seattle international film festival" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15366768_1 (element VARCHAR, isotopic_mass___u__ VARCHAR)
### Question:
What is the name of the element with isotopic mass of 158.925 34(2)?
### Answer:
SELECT element FROM table_15366768_1 WHERE isotopic_mass___u__ = "158.925 34(2)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (fleet_number_s_ VARCHAR, serial_numbers VARCHAR)
### Question:
What is the fleet number for the model with Serial number 68056?
### Answer:
SELECT fleet_number_s_ FROM table_name_27 WHERE serial_numbers = "68056" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (tv_station VARCHAR, romaji_title VARCHAR)
### Question:
What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou?
### Answer:
SELECT tv_station FROM table_name_84 WHERE romaji_title = "tokkyuu tanaka sangou" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)
### Question:
What is the result for barney frank?
### Answer:
SELECT result FROM table_1341598_22 WHERE incumbent = "Barney Frank" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25691838_11 (original_airdate VARCHAR, guest VARCHAR)
### Question:
What date did the episode originally air on with salvatore giunta as a guest?
### Answer:
SELECT original_airdate FROM table_25691838_11 WHERE guest = "Salvatore Giunta" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_262560_2 (location VARCHAR, nickname VARCHAR)
### Question:
Which city has a school where the nickname is Pioneers?
### Answer:
SELECT location FROM table_262560_2 WHERE nickname = "Pioneers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
### Question:
Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?
### Answer:
SELECT japanese_title FROM table_name_58 WHERE tv_station = "tbs" AND romaji_title = "hana yori dango" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR)
### Question:
Which date has an Away team of richmond?
### Answer:
SELECT date FROM table_name_21 WHERE away_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_100518_1 (weapon VARCHAR, consort VARCHAR)
### Question:
What weapon is used by the guardian whose consort is śacī?
### Answer:
SELECT weapon FROM table_100518_1 WHERE consort = "Śacī" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20345624_2 (original_airdate VARCHAR, director VARCHAR)
### Question:
Name the original airdate for guy verney
### Answer:
SELECT original_airdate FROM table_20345624_2 WHERE director = "Guy Verney" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_4 (written_by VARCHAR, production_code VARCHAR)
### Question:
Who wrote the episode that has the production code ad1c05?
### Answer:
SELECT written_by FROM table_name_4 WHERE production_code = "ad1c05" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (area_km_2 INTEGER, census_ranking VARCHAR)
### Question:
What is the area of the community with a census ranking of 636 of 5,008?
### Answer:
SELECT AVG(area_km_2) FROM table_name_97 WHERE census_ranking = "636 of 5,008" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (country VARCHAR, place VARCHAR)
### Question:
Which Country has a Place of 2?
### Answer:
SELECT country FROM table_name_60 WHERE place = "2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1926240_1 (waveform VARCHAR, bit_rate_ VARCHAR, _mbit_s_ VARCHAR)
### Question:
What was the waveform of the encoding with a bit rate of 6.203?
### Answer:
SELECT waveform FROM table_1926240_1 WHERE bit_rate_[_mbit_s_] = "6.203" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
### Question:
What is the average number of bronze medals of the Philippines, which has more than 0 gold?
### Answer:
SELECT AVG(bronze) FROM table_name_63 WHERE nation = "philippines" AND gold > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (attendance INTEGER, tie_no VARCHAR, away_team VARCHAR)
### Question:
How many people on average attended when Eastwood Town was the away team, and the tie number was less than 8?
### Answer:
SELECT AVG(attendance) FROM table_name_76 WHERE tie_no < 8 AND away_team = "eastwood town" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_3 (market_market_rank VARCHAR, saturday VARCHAR)
### Question:
What is the market for the 11pm-1am Saturday game?
### Answer:
SELECT market_market_rank FROM table_name_3 WHERE saturday = "11pm-1am" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (wicket_partnership VARCHAR, season VARCHAR)
### Question:
What was the partnership in the season of 1928
### Answer:
SELECT wicket_partnership FROM table_name_91 WHERE season = "1928" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15887683_10 (ppv VARCHAR, television_service VARCHAR, package_option VARCHAR, dar VARCHAR)
### Question:
Name the ppv for sky famiglia and dar 16:9 for mtv dance
### Answer:
SELECT ppv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "MTV Dance" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_191105_3 (music_by VARCHAR, episode_title VARCHAR)
### Question:
When interplanet janet is the episode title who is the music by?
### Answer:
SELECT music_by FROM table_191105_3 WHERE episode_title = "Interplanet Janet" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (shirt_sponsor VARCHAR, team VARCHAR)
### Question:
Who sponsors Middlesbrough?
### Answer:
SELECT shirt_sponsor FROM table_name_74 WHERE team = "middlesbrough" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2562572_2 (population__2011_ VARCHAR, cyrillic_name VARCHAR)
### Question:
How many 2011 populations have a Cyrillic name of футог?
### Answer:
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE cyrillic_name = "Футог" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)
### Question:
How many gold medals has the club with the most coaches won?
### Answer:
SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (total_number_of_ways VARCHAR)
### Question:
What is the 1st ship delivery date of 6 ways?
### Answer:
SELECT 1 AS st_ship_delivery_date FROM table_name_87 WHERE total_number_of_ways = "6 ways" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR)
### Question:
Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003?
### Answer:
SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 2003" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (total INTEGER, rank VARCHAR, gold VARCHAR)
### Question:
What is the highest Total for the rank 12, and gold less than 0?
### Answer:
SELECT MAX(total) FROM table_name_53 WHERE rank = "12" AND gold < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18974269_1 (player VARCHAR, original_season VARCHAR, eliminated VARCHAR)
### Question:
Who was the contestant eliminated on episode 8 of RW: Key West season?
### Answer:
SELECT player FROM table_18974269_1 WHERE original_season = "RW: Key West" AND eliminated = "Episode 8" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (grid INTEGER, time_retired VARCHAR, manufacturer VARCHAR)
### Question:
WHAT IS THE GRID WITH AN ACCIDENT AND HONDA MANUFACTURER?
### Answer:
SELECT MAX(grid) FROM table_name_72 WHERE time_retired = "accident" AND manufacturer = "honda" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (iata VARCHAR, airport VARCHAR)
### Question:
What is the IATA for Beijing Capital International Airport?
### Answer:
SELECT iata FROM table_name_14 WHERE airport = "beijing capital international airport" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20967430_4 (title VARCHAR, original_air_date VARCHAR)
### Question:
What was the name of the episode that aired originally on March 11, 1988?
### Answer:
SELECT title FROM table_20967430_4 WHERE original_air_date = "March 11, 1988" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, stu_num VARCHAR)
### Question:
What is the average gpa of the students enrolled in the course with code ACCT-211?
### Answer:
SELECT AVG(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_37 (category VARCHAR, nominated VARCHAR, year VARCHAR)
### Question:
Which category was Maite Perroni nominated for earlier than 2009?
### Answer:
SELECT category FROM table_name_37 WHERE nominated = "maite perroni" AND year < 2009 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_72 (tie_no VARCHAR, home_team VARCHAR)
### Question:
What is the tie number when the home team is Port Vale?
### Answer:
SELECT tie_no FROM table_name_72 WHERE home_team = "port vale" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (year INTEGER, working_horses VARCHAR, cows VARCHAR)
### Question:
What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
### Answer:
SELECT MIN(year) FROM table_name_97 WHERE working_horses = "3900.1" AND cows < 3852.1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (capacity INTEGER, locality VARCHAR)
### Question:
What is heaton chapel's capacity?
### Answer:
SELECT MAX(capacity) FROM table_name_54 WHERE locality = "heaton chapel" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (score VARCHAR, name VARCHAR)
### Question:
What is Score, when Name is Nicole 赖淞凤?
### Answer:
SELECT score FROM table_name_38 WHERE name = "nicole 赖淞凤" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26375386_22 (rank VARCHAR, couple VARCHAR)
### Question:
Name the rank for mikey and melanie
### Answer:
SELECT rank FROM table_26375386_22 WHERE couple = "Mikey and Melanie" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
### Question:
Where did Geelong play as the away team?
### Answer:
SELECT venue FROM table_name_14 WHERE away_team = "geelong" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (connection_with_australia VARCHAR, connection_with_america VARCHAR)
### Question:
What is the connection with Australia when the connection with America shows born in the u.s.; mother is u.s. citizen?
### Answer:
SELECT connection_with_australia FROM table_name_74 WHERE connection_with_america = "born in the u.s.; mother is u.s. citizen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (area INTEGER, capital VARCHAR)
### Question:
What is the average area with valparaíso as the capital?
### Answer:
SELECT AVG(area) FROM table_name_34 WHERE capital = "valparaíso" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (oklahoma_vs VARCHAR, current_streak VARCHAR, at_neutral_site VARCHAR)
### Question:
What is Oklahoma vs. when Current Streak is l 1, and Neutral Site is osu, 7-6?
### Answer:
SELECT oklahoma_vs FROM table_name_15 WHERE current_streak = "l 1" AND at_neutral_site = "osu, 7-6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (game_site VARCHAR, week VARCHAR)
### Question:
Where did they play in week 14?
### Answer:
SELECT game_site FROM table_name_57 WHERE week = "14" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR)
### Question:
Who is driver of the d6 chassis?
### Answer:
SELECT driver FROM table_name_99 WHERE chassis = "d6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1184344_1 (cr_no VARCHAR, l INTEGER, name VARCHAR)
### Question:
What was the maximum l&cr number for archimedes?
### Answer:
SELECT MAX(l) & cr_no FROM table_1184344_1 WHERE name = "Archimedes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25983027_1 (infiltration__km_3__year_ VARCHAR, region VARCHAR)
### Question:
In the Central region, what was the infiltration (km 3 /year)?
### Answer:
SELECT infiltration__km_3__year_ FROM table_25983027_1 WHERE region = "Central" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (Id VARCHAR)
### Question:
Name the 2010 for 2012 grand slam tournaments
### Answer:
SELECT 2010 FROM table_name_38 WHERE 2012 = "grand slam tournaments" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26250151_1 (order__number VARCHAR, original_recording_artist VARCHAR)
### Question:
What was the order # or Erma Franklin?
### Answer:
SELECT order__number FROM table_26250151_1 WHERE original_recording_artist = "Erma Franklin" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
### Question:
What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?
### Answer:
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (draws INTEGER, goals_conceded VARCHAR, games_played VARCHAR)
### Question:
What is the most draws when less than 154 goals were conceded, and less than 36 games played?
### Answer:
SELECT MAX(draws) FROM table_name_74 WHERE goals_conceded < 154 AND games_played < 36 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (sydney VARCHAR, auckland VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
### Question:
Which Sydney has a Gold Coast of yes, an Adelaide of no, and an Auckland of yes?
### Answer:
SELECT sydney FROM table_name_13 WHERE gold_coast = "yes" AND adelaide = "no" AND auckland = "yes" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23670057_1 (no VARCHAR, height__m_ VARCHAR)
### Question:
Name the number for 1.96 height
### Answer:
SELECT no FROM table_23670057_1 WHERE height__m_ = "1.96" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2267857_1 (year VARCHAR, driver VARCHAR)
### Question:
Name the number of year for dick hutcherson
### Answer:
SELECT COUNT(year) FROM table_2267857_1 WHERE driver = "Dick Hutcherson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17641206_6 (original_title VARCHAR, viewership VARCHAR)
### Question:
Name the original title for 6.05 million viewership
### Answer:
SELECT original_title FROM table_17641206_6 WHERE viewership = "6.05 million" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2930244_4 (deaths VARCHAR, number_of_hurricanes VARCHAR)
### Question:
How many deaths did the eyar with exactly 6 hurricanes have?
### Answer:
SELECT COUNT(deaths) FROM table_2930244_4 WHERE number_of_hurricanes = 6 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_78 (result VARCHAR, score VARCHAR)
### Question:
What game has a score of 44-20?
### Answer:
SELECT result FROM table_name_78 WHERE score = "44-20" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2930244_4 (deaths VARCHAR, number_of_hurricanes VARCHAR, number_of_major_hurricanes VARCHAR)
### Question:
How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?
### Answer:
SELECT deaths FROM table_2930244_4 WHERE number_of_hurricanes = 10 AND number_of_major_hurricanes = 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24285393_1 (country_or_region VARCHAR, highest_point VARCHAR)
### Question:
What country has the most height in the northwestern peak of rysy?
### Answer:
SELECT country_or_region FROM table_24285393_1 WHERE highest_point = "Northwestern peak of Rysy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (height VARCHAR, club VARCHAR)
### Question:
What is the height for club Havk Mladost?
### Answer:
SELECT height FROM table_name_49 WHERE club = "havk mladost" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (bronze INTEGER, rank VARCHAR, total VARCHAR)
### Question:
What is the lowest bronze total that has a rank of 1 and more than 34 total medals?
### Answer:
SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (winner VARCHAR, year VARCHAR)
### Question:
who was the winner in 2003?
### Answer:
SELECT winner FROM table_name_53 WHERE year = "2003" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR)
### Question:
What is the home team score when played at mcg?
### Answer:
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (race VARCHAR, purse VARCHAR)
### Question:
What Race has a Purse of $300,000?
### Answer:
SELECT race FROM table_name_43 WHERE purse = "$300,000" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11827596_4 (lyricist VARCHAR, film_name VARCHAR, co_singer VARCHAR)
### Question:
Who was the lyricist for gopal krishna and co singer of solo?
### Answer:
SELECT lyricist FROM table_11827596_4 WHERE film_name = "Gopal Krishna" AND co_singer = "Solo" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (week_3_sept_14 VARCHAR, week_7_oct_12 VARCHAR)
### Question:
What was the week 3 opponent for the year that had a week 7 opponent of Georgia (5-1)?
### Answer:
SELECT week_3_sept_14 FROM table_name_56 WHERE week_7_oct_12 = "georgia (5-1)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_75 (novelty VARCHAR, status VARCHAR)
### Question:
Who has the status of jr synonym of protosialis casca?
### Answer:
SELECT novelty FROM table_name_75 WHERE status = "jr synonym of protosialis casca" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Courses (author_id VARCHAR, course_name VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)
### Question:
Find the addresses of the course authors who teach the course with name "operating system" or "data structure".
### Answer:
SELECT T1.address_line_1 FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id WHERE T2.course_name = "operating system" OR T2.course_name = "data structure" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13836704_6 (_percentage_change_2008_2009 VARCHAR, airport VARCHAR)
### Question:
What is the percent change from 08/09 for belfast international?
### Answer:
SELECT _percentage_change_2008_2009 FROM table_13836704_6 WHERE airport = "Belfast International" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (winner VARCHAR, location VARCHAR, year VARCHAR)
### Question:
What is Winner, when Location is Connie Mack Stadium, and when Year is 1946?
### Answer:
SELECT winner FROM table_name_98 WHERE location = "connie mack stadium" AND year = 1946 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_269920_16 (speed__ghz_ VARCHAR, model VARCHAR)
### Question:
What is the speed of the model whose number is W3540?
### Answer:
SELECT speed__ghz_ FROM table_269920_16 WHERE model = "W3540" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_61 (losses VARCHAR, played INTEGER)
### Question:
How many losses had a played number that was more than 34?
### Answer:
SELECT COUNT(losses) FROM table_name_61 WHERE played > 34 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (score VARCHAR, home VARCHAR)
### Question:
what was the score in toronto
### Answer:
SELECT score FROM table_name_2 WHERE home = "toronto" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (latitude VARCHAR, township VARCHAR, geo_id VARCHAR, land___sqmi__ VARCHAR, water__sqmi_ VARCHAR)
### Question:
What was the latitude for van meter who had a land(sqmi) larger than 35.747, Water(sqmi) of 0 and a GEO ID smaller than 3809981860?
### Answer:
SELECT COUNT(latitude) FROM table_name_51 WHERE land___sqmi__ > 35.747 AND water__sqmi_ = 0 AND geo_id < 3809981860 AND township = "van meter" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR)
### Question:
Which away team had a Score of 2–0?
### Answer:
SELECT away_team FROM table_name_53 WHERE score = "2–0" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_75 (competition VARCHAR, date VARCHAR)
### Question:
what is the competition on 21 april 2001?
### Answer:
SELECT competition FROM table_name_75 WHERE date = "21 april 2001" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_63 (winner VARCHAR, college VARCHAR, hometown VARCHAR)
### Question:
Who is the winner who attended college at Connecticut and is from North Syracuse, NY?
### Answer:
SELECT winner FROM table_name_63 WHERE college = "connecticut" AND hometown = "north syracuse, ny" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_73 (laps INTEGER, rider VARCHAR)
### Question:
What's the highest amount of laps Garry Mccoy drove?
### Answer:
SELECT MAX(laps) FROM table_name_73 WHERE rider = "garry mccoy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (laps INTEGER, rider VARCHAR, grid VARCHAR)
### Question:
What is the lowest number of laps for Marco Simoncelli on a grid higher than 11?
### Answer:
SELECT MIN(laps) FROM table_name_86 WHERE rider = "marco simoncelli" AND grid > 11 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (year INTEGER, result VARCHAR, nominee_s_ VARCHAR)
### Question:
What is the latest year when Neal Baer was a nominee, and the result was nominated?
### Answer:
SELECT MAX(year) FROM table_name_38 WHERE result = "nominated" AND nominee_s_ = "neal baer" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.