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_4 (team_1 VARCHAR, team_2 VARCHAR)
### Question:
What team 1 has a team 2 of universidad nacional?
### Answer:
SELECT team_1 FROM table_name_4 WHERE team_2 = "universidad nacional" |
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_48 (player VARCHAR, years_for_grizzlies VARCHAR)
### Question:
Which Player has Years for Grizzlies of 2002-2003?
### Answer:
SELECT player FROM table_name_48 WHERE years_for_grizzlies = "2002-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_38 (rank INTEGER, matches INTEGER)
### Question:
What is the average rank of a player with fewer than 3 matches?
### Answer:
SELECT AVG(rank) FROM table_name_38 WHERE matches < 3 |
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 (mission VARCHAR, date VARCHAR)
### Question:
Which Mission is on 2003 apr 1?
### Answer:
SELECT mission FROM table_name_21 WHERE date = "2003 apr 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_98 (airline VARCHAR, fleet_size VARCHAR, iata VARCHAR)
### Question:
Which Airline has a Fleet size larger than 17, and a IATA of pr?
### Answer:
SELECT airline FROM table_name_98 WHERE fleet_size > 17 AND iata = "pr" |
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_18524_6 (tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR, country VARCHAR)
### Question:
Name the tourism receipts 2003 for colombia
### Answer:
SELECT tourism_receipts__2003___as__percentage_of_gdp_ FROM table_18524_6 WHERE country = "Colombia" |
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 (home VARCHAR, date VARCHAR)
### Question:
On October 31 what team played at home?
### Answer:
SELECT home FROM table_name_56 WHERE date = "october 31" |
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_26263322_1 (candidate VARCHAR, background VARCHAR)
### Question:
How many times was the background self-employed - media agency?
### Answer:
SELECT COUNT(candidate) FROM table_26263322_1 WHERE background = "Self-employed - media agency" |
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_64 (draws VARCHAR, wins VARCHAR, against VARCHAR)
### Question:
Which Draws has a Wins smaller than 17, and an Against smaller than 1158?
### Answer:
SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158 |
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 (player VARCHAR, total VARCHAR, year_s__won VARCHAR)
### Question:
What golfer has a greater than 293 total, and won in 1989?
### Answer:
SELECT player FROM table_name_34 WHERE total > 293 AND year_s__won = "1989" |
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_62 (tournament VARCHAR, score VARCHAR, date VARCHAR)
### Question:
What is the tournament with a w/o score on November 5, 2007?
### Answer:
SELECT tournament FROM table_name_62 WHERE score = "w/o" AND date = "november 5, 2007" |
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_20 (engine VARCHAR)
### Question:
What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?
### Answer:
SELECT 0 AS _100km_h__62mph_ FROM table_name_20 WHERE engine = "supercharged 5.4l v8" |
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_27733258_6 (location_attendance VARCHAR, score VARCHAR)
### Question:
Name the location attendance for l 105–123 (ot)
### Answer:
SELECT location_attendance FROM table_27733258_6 WHERE score = "L 105–123 (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_10470082_3 (villains VARCHAR, no VARCHAR)
### Question:
How many villians were in No. 25?
### Answer:
SELECT COUNT(villains) FROM table_10470082_3 WHERE no = 25 |
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_17288861_5 (record VARCHAR, team VARCHAR)
### Question:
What was the team record when the team was Cleveland?
### Answer:
SELECT record FROM table_17288861_5 WHERE team = "Cleveland" |
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_22 (position VARCHAR, round VARCHAR, school_club_team VARCHAR)
### Question:
Which Position has a Round larger than 14, and a School/Club Team of north texas?
### Answer:
SELECT position FROM table_name_22 WHERE round > 14 AND school_club_team = "north 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_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, land_area__km_2__ VARCHAR)
### Question:
In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)?
### Answer:
SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = "8,543.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_89 (venue VARCHAR, away_team VARCHAR)
### Question:
Where was the game held where North Melbourne was the away team?
### Answer:
SELECT venue FROM table_name_89 WHERE away_team = "north melbourne" |
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 players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR)
### Question:
Find the average ranking for each player and their first name.
### Answer:
SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_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 table_name_21 (opponent VARCHAR, points VARCHAR, november VARCHAR)
### Question:
Which opponent has points less than 18, and a november greater than 11?
### Answer:
SELECT opponent FROM table_name_21 WHERE points < 18 AND november > 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_87 (score VARCHAR, tournament VARCHAR)
### Question:
What was the score for the match at the tournament in canada f7, toronto?
### Answer:
SELECT score FROM table_name_87 WHERE tournament = "canada f7, 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_21436373_8 (stadium VARCHAR, result_games VARCHAR)
### Question:
Which stadium had the result/game montreal 20 @ ottawa 10?
### Answer:
SELECT stadium FROM table_21436373_8 WHERE result_games = "Montreal 20 @ Ottawa 10" |
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 (silver INTEGER, nation VARCHAR, total VARCHAR)
### Question:
What is the largest silver from Malaysia with a Total smaller than 23?
### Answer:
SELECT MAX(silver) FROM table_name_34 WHERE nation = "malaysia" AND total < 23 |
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 (total INTEGER, gold VARCHAR, silver VARCHAR)
### Question:
What is the average total for countries with under 3 golds and 0 silvers?
### Answer:
SELECT AVG(total) FROM table_name_83 WHERE gold < 3 AND silver < 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_88 (final VARCHAR, event VARCHAR)
### Question:
What is the final for middleweight –75 kg?
### Answer:
SELECT final FROM table_name_88 WHERE event = "middleweight –75 kg" |
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_59 (record VARCHAR, opponent VARCHAR, method VARCHAR)
### Question:
What record has magomedkhan gamzatkhanov as the opponent, and submission as the method?
### Answer:
SELECT record FROM table_name_59 WHERE opponent = "magomedkhan gamzatkhanov" AND method = "submission" |
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_15187735_6 (segment_a VARCHAR, segment_c VARCHAR)
### Question:
What is the Segment A for when Segment C is s Sailboard?
### Answer:
SELECT segment_a FROM table_15187735_6 WHERE segment_c = "s Sailboard" |
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 (district VARCHAR, party VARCHAR, first_elected VARCHAR)
### Question:
Which was the district that had first elected greater than 2006 and is democratic?
### Answer:
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006 |
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 (score VARCHAR, winner VARCHAR)
### Question:
What was the score of Johnny Miller (7)?
### Answer:
SELECT score FROM table_name_80 WHERE winner = "johnny miller (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_1949746_1 (licensee VARCHAR, city_of_license VARCHAR)
### Question:
When portsmouth is the city of license who is the licensee?
### Answer:
SELECT licensee FROM table_1949746_1 WHERE city_of_license = "Portsmouth" |
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_62 (score VARCHAR, opponent VARCHAR)
### Question:
Which Score has an Opponent of seattle?
### Answer:
SELECT score FROM table_name_62 WHERE opponent = "seattle" |
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_12104319_1 (womens_singles VARCHAR, mens_doubles VARCHAR)
### Question:
What are the womens singles of imam sodikin irawan andi tandaputra?
### Answer:
SELECT womens_singles FROM table_12104319_1 WHERE mens_doubles = "Imam Sodikin Irawan Andi Tandaputra" |
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 (studio VARCHAR, director VARCHAR)
### Question:
Which Studio has a Director of oliver stone?
### Answer:
SELECT studio FROM table_name_97 WHERE director = "oliver stone" |
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 Movie (title VARCHAR, YEAR INTEGER)
### Question:
What is the name of the most recent movie?
### Answer:
SELECT title FROM Movie WHERE YEAR = (SELECT MAX(YEAR) FROM Movie) |
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_30 (region VARCHAR, format VARCHAR)
### Question:
What region is the Gold Vinyl format from?
### Answer:
SELECT region FROM table_name_30 WHERE format = "gold vinyl" |
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_16 (position INTEGER, draws VARCHAR, played VARCHAR)
### Question:
Which Position has Draws smaller than 7 and a Played larger than 22?
### Answer:
SELECT AVG(position) FROM table_name_16 WHERE draws < 7 AND played > 22 |
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_30 (record VARCHAR, score VARCHAR)
### Question:
which Record has a Score of 1–4?
### Answer:
SELECT record FROM table_name_30 WHERE score = "1–4" |
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_12 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
### Question:
What is Score Points, when Event is "WC Rio De Janeiro", and when Rank Points is "10"?
### Answer:
SELECT score_points FROM table_name_12 WHERE event = "wc rio de janeiro" AND rank_points = "10" |
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_1 (position VARCHAR, pick VARCHAR, player VARCHAR)
### Question:
Which Position has a Pick smaller than 14, and a Player of tyrone bogues?
### Answer:
SELECT position FROM table_name_1 WHERE pick < 14 AND player = "tyrone bogues" |
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_18183850_12 (outcome VARCHAR, opponent VARCHAR)
### Question:
How many outcomes were there when the opponent was Aleksandra Wozniak?
### Answer:
SELECT COUNT(outcome) FROM table_18183850_12 WHERE opponent = "Aleksandra Wozniak" |
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_1342359_4 (result VARCHAR, district VARCHAR)
### Question:
What was the result of the election in the Arkansas 4 district?
### Answer:
SELECT result FROM table_1342359_4 WHERE district = "Arkansas 4" |
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_224839_3 (vacator VARCHAR, successor VARCHAR)
### Question:
What is the number of vacators when the successor was William H. Wells ( F )?
### Answer:
SELECT COUNT(vacator) FROM table_224839_3 WHERE successor = "William H. Wells ( F )" |
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_29 (date VARCHAR, home_team VARCHAR)
### Question:
What date was Millwall the home team?
### Answer:
SELECT date FROM table_name_29 WHERE home_team = "millwall" |
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_77 (tikhak VARCHAR, yonguk VARCHAR)
### Question:
Which Tikhak has a Yonguk of wu¹ti¹?
### Answer:
SELECT tikhak FROM table_name_77 WHERE yonguk = "wu¹ti¹" |
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_1399994_5 (partner VARCHAR, year VARCHAR)
### Question:
How many partners were there in 1988?
### Answer:
SELECT COUNT(partner) FROM table_1399994_5 WHERE year = "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 table_name_38 (club VARCHAR, played VARCHAR, losing_bonus VARCHAR)
### Question:
What club has a play of 22, and losing bonus of 7?
### Answer:
SELECT club FROM table_name_38 WHERE played = "22" AND losing_bonus = "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_40 (attendance INTEGER, date VARCHAR)
### Question:
What was the Attendance on April 28?
### Answer:
SELECT SUM(attendance) FROM table_name_40 WHERE date = "april 28" |
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_2417340_3 (vacator VARCHAR, date_of_successors_formal_installation VARCHAR)
### Question:
List the number of vacators when successors were formally installed on June 22, 1868.
### Answer:
SELECT COUNT(vacator) FROM table_2417340_3 WHERE date_of_successors_formal_installation = "June 22, 1868" |
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_94 (year INTEGER, playoffs VARCHAR)
### Question:
Which Year has Playoffs which did not qualify?
### Answer:
SELECT AVG(year) FROM table_name_94 WHERE playoffs = "did not qualify" |
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_85 (high_assists VARCHAR, high_rebounds VARCHAR)
### Question:
What is the high assists score of Nick Collison (11)?
### Answer:
SELECT high_assists FROM table_name_85 WHERE high_rebounds = "nick collison (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_26099252_1 (vp9___webm__ VARCHAR, h264 VARCHAR)
### Question:
When h.264 is 9.0, how much is vp9 ( webm )
### Answer:
SELECT vp9___webm__ FROM table_26099252_1 WHERE h264 = "9.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_53 (gdp_per_capita__us INTEGER, literacy__2003_ VARCHAR, area__km²_ VARCHAR)
### Question:
Which GDP per capita (US$) (2004) has a Literacy (2003) of 90%, and an Area (km²) of 1247689.5?
### Answer:
SELECT AVG(gdp_per_capita__us) AS $___2004_ FROM table_name_53 WHERE literacy__2003_ = "90%" AND area__km²_ = 1247689.5 |
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_22 (round VARCHAR, res VARCHAR, record VARCHAR)
### Question:
What round was a loss with a record of 12-3?
### Answer:
SELECT round FROM table_name_22 WHERE res = "loss" AND record = "12-3" |
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_93 (railway_number_s_ VARCHAR, year_s__of_manufacture VARCHAR)
### Question:
Which Railway number(s) has a Year(s) of manufacture of 1899–1907?
### Answer:
SELECT railway_number_s_ FROM table_name_93 WHERE year_s__of_manufacture = "1899–1907" |
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_88 (player VARCHAR, year_s__won VARCHAR)
### Question:
What is the Player who won in 1931?
### Answer:
SELECT player FROM table_name_88 WHERE year_s__won = "1931" |
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_88 (number_range VARCHAR, class VARCHAR)
### Question:
What is the number range for the T 3 class?
### Answer:
SELECT number_range FROM table_name_88 WHERE class = "t 3" |
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_21058836_1 (game VARCHAR, opponent VARCHAR)
### Question:
What game did the Bruins play Santa Clara?
### Answer:
SELECT game FROM table_21058836_1 WHERE opponent = "Santa Clara" |
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_22481967_1 (status VARCHAR, operator VARCHAR)
### Question:
List the status for the operator Toronto transit commission.
### Answer:
SELECT status FROM table_22481967_1 WHERE operator = "Toronto Transit Commission" |
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_93 (withdrawn VARCHAR, number INTEGER)
### Question:
How many items withdrawn had numbers over 5?
### Answer:
SELECT COUNT(withdrawn) FROM table_name_93 WHERE number > 5 |
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 (area_km_2 INTEGER, census_ranking VARCHAR)
### Question:
What is the Area km 2 with a Census Ranking of 1,773 of 5,008?
### Answer:
SELECT SUM(area_km_2) FROM table_name_56 WHERE census_ranking = "1,773 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 (place VARCHAR, score VARCHAR)
### Question:
What is the Place of the Player with a Score of 70-75-70-74=289?
### Answer:
SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289 |
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_1507423_4 (team_s_ VARCHAR, position VARCHAR)
### Question:
How many teams had a 76th position finish?
### Answer:
SELECT COUNT(team_s_) FROM table_1507423_4 WHERE position = "76th" |
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_89 (teams VARCHAR, season VARCHAR)
### Question:
what is the teams for season 1950-51?
### Answer:
SELECT teams FROM table_name_89 WHERE season = "1950-51" |
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 (name VARCHAR, lost VARCHAR, position VARCHAR)
### Question:
Who lost 2 and had a position bigger than 1?
### Answer:
SELECT name FROM table_name_75 WHERE lost = 2 AND position > 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_85 (score VARCHAR, date VARCHAR)
### Question:
What is the score of the game on January 18?
### Answer:
SELECT score FROM table_name_85 WHERE date = "january 18" |
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_95 (front_side_bus VARCHAR, frequency VARCHAR)
### Question:
What is the front-side bus for the processor whose frequency is 733MHz?
### Answer:
SELECT front_side_bus FROM table_name_95 WHERE frequency = "733mhz" |
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_2241841_1 (manufacturer VARCHAR, date VARCHAR)
### Question:
Who made the car that won the race on May 21?
### Answer:
SELECT manufacturer FROM table_2241841_1 WHERE date = "May 21" |
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_23248940_7 (record VARCHAR, date VARCHAR)
### Question:
Name the record for december 8
### Answer:
SELECT record FROM table_23248940_7 WHERE date = "December 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_10413597_5 (original_air_date VARCHAR, setting VARCHAR)
### Question:
What was the original air date of an episode set in 1544?
### Answer:
SELECT original_air_date FROM table_10413597_5 WHERE setting = "1544" |
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 drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE laptimes (driverid VARCHAR, milliseconds INTEGER)
### Question:
List the forename and surname of all distinct drivers who once had laptime less than 93000 milliseconds?
### Answer:
SELECT DISTINCT T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE T2.milliseconds < 93000 |
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 (position VARCHAR, competition VARCHAR)
### Question:
What is the position of the commonwealth games?
### Answer:
SELECT position FROM table_name_98 WHERE competition = "commonwealth games" |
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 (december VARCHAR, february VARCHAR)
### Question:
Who is the December playmate with a February playmate Anne-Marie Fox?
### Answer:
SELECT december FROM table_name_76 WHERE february = "anne-marie fox" |
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_33 (finish VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
### Question:
What is Finish, when To Par is greater than 6, and when Year(s) Won is before 1961?
### Answer:
SELECT finish FROM table_name_33 WHERE to_par > 6 AND year_s__won < 1961 |
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_15314901_1 (proper_velocity_w_dx_dτ_in_units_of_c VARCHAR, condition_parameter VARCHAR)
### Question:
If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/dτ in units of c?
### Answer:
SELECT proper_velocity_w_dx_dτ_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 1 hyperbolic radian" |
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 driverstandings (driverid VARCHAR, position VARCHAR, wins VARCHAR); CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR)
### Question:
Find all the forenames of distinct drivers who was in position 1 as standing and won?
### Answer:
SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 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_92 (country VARCHAR, score VARCHAR, player VARCHAR)
### Question:
Which Country has a Score of 69, and a Player of mick soli?
### Answer:
SELECT country FROM table_name_92 WHERE score = 69 AND player = "mick soli" |
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_23680576_3 (week_32 VARCHAR, week_33 VARCHAR)
### Question:
What is the week 32 result when week 33 is 31.9%?
### Answer:
SELECT week_32 FROM table_23680576_3 WHERE week_33 = "31.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_141541_5 (domestic_freight VARCHAR, change VARCHAR)
### Question:
what's the domestic freight with change being +8.0%
### Answer:
SELECT domestic_freight FROM table_141541_5 WHERE change = "+8.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_57 (party VARCHAR, incumbent VARCHAR)
### Question:
What is the party affiliation of Virginia Foxx?
### Answer:
SELECT party FROM table_name_57 WHERE incumbent = "virginia foxx" |
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_47 (venue VARCHAR, home_team VARCHAR)
### Question:
What venue features collingwood as the home side?
### Answer:
SELECT venue FROM table_name_47 WHERE home_team = "collingwood" |
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_24334163_1 (Winners VARCHAR, player VARCHAR)
### Question:
How many group legs were won with player Mark Dudbridge?
### Answer:
SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge" |
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 mill (TYPE VARCHAR)
### Question:
What is the most common mill type, and how many are there?
### Answer:
SELECT TYPE, COUNT(*) FROM mill GROUP BY TYPE 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_13 (attendance INTEGER, score VARCHAR)
### Question:
When the Brewers score was 5-7, what was the lowest attendance?
### Answer:
SELECT MIN(attendance) FROM table_name_13 WHERE score = "5-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_47 (college VARCHAR, round VARCHAR, pick__number VARCHAR)
### Question:
Which college has a pick # 84 in round 3?
### Answer:
SELECT college FROM table_name_47 WHERE round = 3 AND pick__number = 84 |
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 (week VARCHAR, record VARCHAR)
### Question:
What is the total number of weeks that the Steelers had a record of 1–0?
### Answer:
SELECT COUNT(week) FROM table_name_99 WHERE record = "1–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_1134091_4 (date_successor_seated VARCHAR, vacator VARCHAR)
### Question:
When was the date successor seated when the vacator was charles e. chamberlain (r)?
### Answer:
SELECT date_successor_seated FROM table_1134091_4 WHERE vacator = "Charles E. Chamberlain (R)" |
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 (genre VARCHAR, type VARCHAR, developer_s_ VARCHAR)
### Question:
What type of 3D game did Valve Corporation release?
### Answer:
SELECT genre FROM table_name_4 WHERE type = "3d" AND developer_s_ = "valve corporation" |
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_23 (record VARCHAR, date VARCHAR)
### Question:
Which Record is on july 31?
### Answer:
SELECT record FROM table_name_23 WHERE date = "july 31" |
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 (resolution VARCHAR, dish VARCHAR)
### Question:
Name the resolution with dish of 8126
### Answer:
SELECT resolution FROM table_name_91 WHERE dish = "8126" |
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_14425454_1 (home_team VARCHAR, time VARCHAR)
### Question:
How many home team scores have a time of 4:40 PM?
### Answer:
SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = "4:40 PM" |
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 Restaurant (TIME VARCHAR); CREATE TABLE Visits_Restaurant (TIME VARCHAR); CREATE TABLE Student (TIME VARCHAR)
### Question:
When did Linda Smith visit Subway?
### Answer:
SELECT TIME FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID JOIN Restaurant ON Visits_Restaurant.ResID = Restaurant.ResID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" AND Restaurant.ResName = "Subway" |
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_27603010_14 (points VARCHAR, team__number1 VARCHAR)
### Question:
What was Team 1 Junior's points?
### Answer:
SELECT points FROM table_27603010_14 WHERE team__number1 = "Junior" |
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 (number_ VARCHAR, _name VARCHAR, description VARCHAR)
### Question:
What is the identifying number for a description of Stanier (Period III) full brake?
### Answer:
SELECT number_ & _name FROM table_name_57 WHERE description = "stanier (period iii) full brake" |
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 (against VARCHAR, difference VARCHAR, played VARCHAR)
### Question:
What is the number of against when the difference is 10 and played is greater than 8?
### Answer:
SELECT COUNT(against) FROM table_name_3 WHERE difference = "10" AND played > 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_12303563_1 (winners INTEGER, nation VARCHAR)
### Question:
How many times did bec tero sasana win?
### Answer:
SELECT MAX(winners) FROM table_12303563_1 WHERE nation = "BEC Tero Sasana" |
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 (tonnage_grt INTEGER, date VARCHAR)
### Question:
what is the most tonnage grt of any ship sunk or captured on 16 jan 16?
### Answer:
SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 16" |
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_32 (magazine_type VARCHAR, title VARCHAR)
### Question:
What was the type of the magazine that was named dengeki game appli?
### Answer:
SELECT magazine_type FROM table_name_32 WHERE title = "dengeki game appli" |
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 HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_Theme VARCHAR, Party_ID VARCHAR)
### Question:
Show the themes of parties and the names of the party hosts.
### Answer:
SELECT T3.Party_Theme, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID |
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 (heat INTEGER, nationality VARCHAR, rank VARCHAR)
### Question:
What is the sum of every heat for the nationality of Macedonia with a rank less than 114?
### Answer:
SELECT SUM(heat) FROM table_name_13 WHERE nationality = "macedonia" AND rank < 114 |
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 (time VARCHAR, ground VARCHAR)
### Question:
What is the Time with a Ground that is humber college north?
### Answer:
SELECT time FROM table_name_7 WHERE ground = "humber college north" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.