Simple Question (Direct)
Simple Question
Q2118140
P1412
Q34770
USER
Which language can Al Freeman read ?
(Q2118140,P1412,c(Q34770))
action filter_type
action find
entity Q2118140
relation P1412
type Q34770
['Q2118140', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2118140 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Al Freeman
action filter_type
action find
entity Al Freeman
relation languages spoken, written or signed
type language
['Al Freeman', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Al_Freeman property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q2118140,P1412,c(Q34770))
action filter_type
action find
entity Q2118140
relation P1412
type Q34770
Al Freeman can read in [ANSWER]
['Q2118140', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q2118140 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
English
Al Freeman can read in English
English
action filter_type
action find
entity Al Freeman
relation languages spoken, written or signed
type language
['Al Freeman', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Al_Freeman property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2118140
P161
Q838948
USER
Which works of art stars Al Freeman as actor ?
(c(Q838948),P161,Q2118140)
action filter_type
action find_reverse
entity Q2118140
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2118140']
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q2118140 . ?n rdf:type ontology:Q838948 }
Al Freeman
action filter_type
action find_reverse
entity Al Freeman
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Al Freeman']
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Al_Freeman . ?n rdf:type ontology:work_of_art }
[]
work of art
Q923925 Q258319 Q925809
SYSTEM
Sue X, Castle Keep, The Detective
Q923925 Q2177752 Q7091836 Q258319 Q925809 Q3018600 Q727951 Q1198750
(c(Q838948),P161,Q2118140)
action filter_type
action find_reverse
entity Q2118140
relation P161
type Q838948
Star [ANSWERS] star Al Freeman as actor
[{'concept': 'Q838948'}, 'P161', 'Q2118140']
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q2118140 . ?n rdf:type ontology:Q838948 }
Sue X Down in the Delta Once Upon a Time...When We Were Colored Castle Keep The Detective The Lost Man Ensign Pulver Finian's Rainbow
Star Sue X, Castle Keep and The Detective star Al Freeman as actor
Sue X Castle Keep The Detective
action filter_type
action find_reverse
entity Al Freeman
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Al Freeman']
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Al_Freeman . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q923925 Q258319 Q925809
P86
Q502895
USER
Who wrote the music for Sue X, Castle Keep and The Detective ?
(Q923925,P86,c(Q502895)) (Q258319,P86,c(Q502895)) (Q925809,P86,c(Q502895))
action union
action filter_type
action find
entity Q923925
relation P86
type Q502895
action filter_type
action find
entity Q258319
relation P86
type Q502895
action filter_type
action find
entity Q925809
relation P86
type Q502895
['Q923925', 'P86', {'concept': 'Q502895'}] ['Q258319', 'P86', {'concept': 'Q502895'}] ['Q925809', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q502895 . resource:Q923925 property:P86 ?f } UNION { resource:Q258319 property:P86 ?f . ?f rdf:type ontology:Q502895 } }
Sue X Castle Keep The Detective
action union
action filter_type
action find
entity Sue X
relation composer
type common name
action filter_type
action find
entity Castle Keep
relation composer
type common name
action filter_type
action find
entity The Detective
relation composer
type common name
['Sue X', 'composer', {'concept': 'common name'}] ['Castle Keep', 'composer', {'concept': 'common name'}] ['The Detective', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:common_name . resource:Sue_X property:composer ?f } UNION { resource:Castle_Keep property:composer ?f . ?f rdf:type ontology:common_name } }
[]
common name
Q967230 Q313281 Q235077
SYSTEM
Terence Blanchard, Michel Legrand, Jerry Goldsmith
Q967230 Q313281 Q235077
(Q923925,P86,c(Q502895)) (Q258319,P86,c(Q502895)) (Q925809,P86,c(Q502895))
action union
action filter_type
action find
entity Q923925
relation P86
type Q502895
action filter_type
action find
entity Q258319
relation P86
type Q502895
action filter_type
action find
entity Q925809
relation P86
type Q502895
And [ANSWERS] wrote the music for Sue X, Castle Keep and The Detective
['Q923925', 'P86', {'concept': 'Q502895'}] ['Q258319', 'P86', {'concept': 'Q502895'}] ['Q925809', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:Q502895 . resource:Q923925 property:P86 ?f } UNION { resource:Q258319 property:P86 ?f . ?f rdf:type ontology:Q502895 } }
Terence Blanchard Michel Legrand Jerry Goldsmith
And Terence Blanchard, Michel Legrand and Jerry Goldsmith wrote the music for Sue X, Castle Keep and The Detective
Terence Blanchard Michel Legrand Jerry Goldsmith
action union
action filter_type
action find
entity Sue X
relation composer
type common name
action filter_type
action find
entity Castle Keep
relation composer
type common name
action filter_type
action find
entity The Detective
relation composer
type common name
['Sue X', 'composer', {'concept': 'common name'}] ['Castle Keep', 'composer', {'concept': 'common name'}] ['The Detective', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { ?f rdf:type ontology:common_name . resource:Sue_X property:composer ?f } UNION { resource:Castle_Keep property:composer ?f . ?f rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q967230 Q313281 Q235077
P86
Q838948
USER
What are those people a composer of ?
(c(Q838948),P86,Q967230) (c(Q838948),P86,Q313281) (c(Q838948),P86,Q235077)
action filter_type
action find_reverse
entity prev_answer
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q967230'] [{'concept': 'Q838948'}, 'P86', 'Q313281'] [{'concept': 'Q838948'}, 'P86', 'Q235077']
SELECT DISTINCT ?k WHERE { ?k property:P86 ?g . VALUES ( ?g ) { ( resource:Q967230 ) ( resource:Q313281 ) ( resource:Q235077 ) } . ?k rdf:type ontology:Q838948 }
Terence Blanchard Michel Legrand Jerry Goldsmith
action filter_type
action find_reverse
entity prev_answer
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Terence Blanchard'] [{'concept': 'work of art'}, 'composer', 'Michel Legrand'] [{'concept': 'work of art'}, 'composer', 'Jerry Goldsmith']
SELECT DISTINCT ?k WHERE { ?k property:composer ?g . VALUES ( ?g ) { ( resource:Terence_Blanchard ) ( resource:Michel_Legrand ) ( resource:Jerry_Goldsmith ) } . ?k rdf:type ontology:work_of_art }
[]
work of art
Q1048846 Q1002100 Q923925
SYSTEM
The Sum of All Fears, Miracle at St. Anna, Sue X
Q2025414 Q1002100 Q1766681 Q19885337 Q916221 Q2702930 Q1166150 Q8088106 Q923925 Q2277762 Q1234074 Q3284333 Q16248744 Q2154858 Q2534007 Q1146503 Q232106 Q2390402 Q684538 Q81224 Q519592 Q218458 Q1506057 Q1148304 Q3808313 Q2151912 Q821290 Q807818 Q2268296 Q2480715 Q1150713 Q701706 Q912672 Q149431 Q1211929 Q1214975 Q613290 Q13479300 Q653251 Q1810886 Q2625031 Q768133 Q683360 Q3228386 Q1320705 Q180279 Q1143361 Q3548924 Q3061215 Q495271 Q3227556 Q1781831 Q13360029 Q7757039 Q1148491 Q26720568 Q2558048 Q303235 Q3206966 Q3518562 Q1211216 Q664020 Q943473 Q753122 Q2251852 Q210182 Q3213740 Q3540036 Q3278137 Q788256 Q3877761 Q7077577 Q1686150 Q5617792 Q3365472 Q3549730 Q1199628 Q489564 Q2365712 Q1410244 Q2521659 Q780469 Q1545251 Q3414436 Q1367513 Q2972767 Q7538754 Q378838 Q1988228 Q258319 Q1217981 Q1544835 Q6588276 Q3223631 Q16652614 Q3824199 Q1479998 Q7242271 Q4004213 Q1305437 Q16254136 Q16864691 Q551552 Q163868 Q641897 Q2980162 Q3319967 Q669359 Q3357078 Q756329 Q3064787 Q3414756 Q3423416 Q3279816 Q83623 Q1219423 Q2667089 Q1195447 Q2849584 Q1193529 Q1475321 Q3836687 Q527826 Q1824915 Q223043 Q2140247 Q2335405 Q451630 Q1740859 Q1362240 Q7770006 Q1193347 Q778709 Q205983 Q283134 Q1749386 Q1289046 Q49396 Q1632217 Q546471 Q1332263 Q509913 Q807742 Q586154 Q2743017 Q319783 Q389773 Q922402 Q2366200 Q59534 Q505712 Q1756698 Q7760087 Q222018 Q1198096 Q706586 Q810012 Q562177 Q1473486 Q806357 Q7728071 Q1200038 Q1200034 Q2061368 Q334735 Q834165 Q7442352 Q318016 Q495123 Q1199715 Q3203708 Q464111 Q714992 Q503018 Q5428376 Q1158528 Q644987 Q2277024 Q1330737 Q2163972 Q798696 Q1127625 Q1428099 Q609467 Q7749847 Q506390 Q3208286 Q1142051 Q1048846 Q116468 Q1218847 Q610945 Q1862355 Q339876 Q537407 Q499692 Q1146977 Q239794 Q3035710 Q934535 Q759333 Q1963035 Q1543837 Q786019 Q241218 Q107940 Q1219738 Q2036469 Q1042099 Q498383 Q392355 Q1059536 Q490076 Q3284028 Q1059527 Q499535 Q4921434 Q1754896 Q1740610 Q7811148 Q774450 Q1546938 Q263714 Q854532 Q44686 Q932505 Q499935 Q12110972 Q499904 Q925809 Q7499842 Q784211 Q202508 Q1754611 Q1198381 Q495982 Q598860 Q12107808 Q497622 Q751341 Q103569 Q836298 Q3107519 Q3281505 Q5981314 Q333971 Q770020 Q217220 Q6167871 Q1691545 Q1539667 Q496019 Q797881 Q541414 Q1098140 Q748030 Q3222706 Q3699434 Q1740544 Q4197748 Q673198 Q2291957 Q244963 Q493865 Q258092 Q910887 Q728488 Q3778086 Q1856846 Q7969822 Q407184 Q940186 Q596965 Q673437 Q221236 Q1750118 Q916287 Q469639 Q616301 Q515218 Q1515747 Q783486 Q241958 Q388319 Q1169609 Q165164 Q146673
(c(Q838948),P86,Q967230) (c(Q838948),P86,Q313281) (c(Q838948),P86,Q235077)
action filter_type
action find_reverse
entity prev_answer
relation P86
type Q838948
Those people a composer of are [ANSWERS]
[{'concept': 'Q838948'}, 'P86', 'Q967230'] [{'concept': 'Q838948'}, 'P86', 'Q313281'] [{'concept': 'Q838948'}, 'P86', 'Q235077']
SELECT DISTINCT ?k WHERE { ?k property:P86 ?g . VALUES ( ?g ) { ( resource:Q967230 ) ( resource:Q313281 ) ( resource:Q235077 ) } . ?k rdf:type ontology:Q838948 }
Sugar Hill Miracle at St. Anna The Caveman's Valentine Chiraq Glitter Bunraku Dark Blue Waist Deep Sue X Bamboozled Jungle Fever Eve's Bayou Black and White Get on the Bus Crooklyn Love & Basketball 'Til There Was You Talk to Me Original Sin Inside Man She Hate Me 25th Hour Red Tails 4 Little Girls Jim Brown: All-American Trial by Jury Drum Barbershop Clockers All the Invisible Children Summer of Sam People I Know Next Friday Cadillac Records The Lady in the Car with Glasses and a Gun The Young Girls of Rochefort Le Mans Sweet November Breezy A Matter of Resistance A Woman Is a Woman Le Gentleman d'Epsom Madeline The Counterfeiters of Paris Ice Station Zebra Never Say Never Again A Slightly Pregnant Man Un peu de soleil dans l'eau froide Eva Le Cadeau A Time for Loving Summer of '42 Max Rose The Pickle My Life to Live Your Ticket Is No Longer Valid Disco The Three Musketeers Season's Beatings Wasteland Bande à part The Go-Between Hearth Fires The Married Couple of the Year Two F for Fake La Piscine The Old Maid Trois places pour le 26 Maigret Sees Red Switching Channels Pieces of Dreams Ode to Billy Joe The Hunter Gulliver's Travels Parking Une ravissante idiote Cléo from 5 to 7 And Now... Ladies and Gentlemen The Other Side of Midnight Cops and Robbers Lola Yentl The Happy Ending Who Are You, Polly Maggoo? Peau d'Âne Roads to the South Slapstick of Another Kind The Oldest Profession Tender Scoundrel Castle Keep Bay of Angels Partir, revenir Love Is a Ball Le Joli Mai The Price of Fame 40 Carats The Thomas Crown Affair Pretty Polly One Is a Lonely Number Play Dirty The Picasso Summer The Spy Who Went Into Hell A Love in Germany The Umbrellas of Cherbourg The Outside Man Club de rencontres Mon premier amour Bequest to the Nation Oscar and the Lady in Pink Atlantic City Falling in Love Again Wuthering Heights La Bottega dell'orefice A Doll's House Best Friends Lovers Like Us Lady Oscar Seconds Angie Criminal Law Psycho II Raggedy Man Freud: The Secret Passion The Agony and the Ecstasy A Patch of Blue Under Fire Rio Conchos The River Wild Malice In Harm's Way The Traveling Executioner Sleeping with the Enemy Extreme Prejudice A Gathering of Eagles Supergirl Mr. Baseball Damnation Alley Lonely Are the Brave Medicine Man The First Great Train Robbery Small Soldiers Legend Omen III: The Final Conflict The Russia House S*P*Y*S Rambo: First Blood Part II Hour of the Gun Along Came a Spider Ransom Planet of the Apes Gremlins 2: The New Batch The Last Run The Reincarnation of Peter Proud Total Recall The Wind and the Lion The Cassandra Crossing Basic Instinct 2 MacArthur Link Bandolero! The Crimebusters Our Man Flint In Like Flint Islands in the Stream Lilies of the Field Looney Tunes: Back in Action Sebastian Twilight's Last Gleaming Inchon The Swarm The Chairman The Boys from Brazil Von Ryan's Express Logan's Run Face of a Fugitive Damien: Omen II Chinatown Justine Twilight Zone: The Movie Fly-by-Night Bad Girls Take Her, She's Mine Warlock Capricorn One The Man Innerspace Stagecoach Executive Decision The Sum of All Fears Runaway The Last Castle The Mephisto Waltz King Solomon's Mines L.A. Confidential Mulan Chain Reaction Deep Rising Outland The Don Is Dead Take a Hard Ride The Edge One Little Indian Powder The Haunting Star Trek V: The Final Frontier Star Trek: The Motion Picture The Stripper The Challenge The Land Before Time XIII: The Wisdom of Friends Coma Rambo III The Other Night Crossing The Flim-Flam Man The Satan Bug U.S. Marshals Black Patch The List of Adrian Messenger Leviathan To Trap a Spy The Lonely Guy The Shadow Caboblanco Fate is the Hunter City Hall Breakout Poltergeist II: The Other Side The Culpepper Cattle Co. I.Q. The Detective Shock Treatment Hoosiers The Mummy Seven Days in May The Blue Max The Salamander Congo City of Fear Poltergeist The Prize Alien The Omen Rudy The Illustrated Man The Last Hard Men First Knight Explorers Patton The Spiral Road Wild Rovers Matinee Fierce Creatures Baby: Secret of the Lost Legend Morituri Hollow Man The 13th Warrior Shamus Lionheart The 'Burbs Players Star Trek: Insurrection Love Field First Blood Mom and Dad Save the World Tora! Tora! Tora! Magic The Ghost and the Darkness The Trouble with Angels The Ballad of Cable Hogue Warning Shot Air Force One Breakheart Pass Papillon Rio Lobo Star Trek: First Contact Not Without My Daughter The Sand Pebbles Escape from the Planet of the Apes The Vanishing Forever Young Rent-a-Cop Dennis the Menace Gremlins Star Trek: Nemesis Six Degrees of Separation 100 Rifles Basic Instinct
Those people a composer of are The Sum of All Fears, Miracle at St. Anna and Sue X
The Sum of All Fears Miracle at St. Anna Sue X
action filter_type
action find_reverse
entity prev_answer
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Terence Blanchard'] [{'concept': 'work of art'}, 'composer', 'Michel Legrand'] [{'concept': 'work of art'}, 'composer', 'Jerry Goldsmith']
SELECT DISTINCT ?k WHERE { ?k property:composer ?g . VALUES ( ?g ) { ( resource:Terence_Blanchard ) ( resource:Michel_Legrand ) ( resource:Jerry_Goldsmith ) } . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1048846
P915
Q56061
USER
Which locations were The Sum of All Fears filmed ?
(Q1048846,P915,c(Q56061))
action filter_type
action find
entity Q1048846
relation P915
type Q56061
['Q1048846', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q1048846 property:P915 ?v }
The Sum of All Fears
action filter_type
action find
entity The Sum of All Fears
relation filming location
type administrative territorial entity
['The Sum of All Fears', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:The_Sum_of_All_Fears property:filming_location ?v }
[]
administrative territorial entity
Q649 Q340 Q5092
SYSTEM
Moscow, Montreal, Baltimore
Q340 Q5092 Q649 Q1930
(Q1048846,P915,c(Q56061))
action filter_type
action find
entity Q1048846
relation P915
type Q56061
The Sum of All Fears were filmed in [ANSWERS]
['Q1048846', 'P915', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q1048846 property:P915 ?v }
Montreal Baltimore Moscow Ottawa
The Sum of All Fears were filmed in Moscow, Montreal and Baltimore
Moscow Montreal Baltimore
action filter_type
action find
entity The Sum of All Fears
relation filming location
type administrative territorial entity
['The Sum of All Fears', 'filming location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:The_Sum_of_All_Fears property:filming_location ?v }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q649 Q340 Q5092
P190
Q56061
USER
Which administrative territories are twin cities of those ones ?
(Q649,P190,c(Q56061)) (Q340,P190,c(Q56061)) (Q5092,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q649', 'P190', {'concept': 'Q56061'}] ['Q340', 'P190', {'concept': 'Q56061'}] ['Q5092', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . VALUES ( ?x ) { ( resource:Q340 ) ( resource:Q5092 ) ( resource:Q649 ) } . ?x property:P190 ?l }
Moscow Montreal Baltimore
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Montreal', 'sister city', {'concept': 'administrative territorial entity'}] ['Baltimore', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . VALUES ( ?x ) { ( resource:Montreal ) ( resource:Baltimore ) ( resource:Moscow ) } . ?x property:sister_city ?l }
[]
administrative territorial entity
Q1085 Q2807 Q490
SYSTEM
Prague, Madrid, Milan
Q807 Q41572 Q13498 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q1490 Q1741 Q196678 Q3805 Q1520 Q1524 Q1491 Q987 Q1780 Q3630 Q140147 Q25409 Q33935 Q131290 Q3561 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q239 Q2807 Q956 Q3640 Q64 Q1218 Q133026 Q186576 Q1085 Q8686 Q727 Q3274 Q3110 Q1715 Q41843 Q1524 Q3561 Q51103 Q239 Q490 Q3805 Q65 Q1492 Q3820 Q1874 Q15682 Q34370 Q130514 Q985291 Q87 Q58976 Q1083 Q1449 Q60956
(Q649,P190,c(Q56061)) (Q340,P190,c(Q56061)) (Q5092,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are twin cities of those ones
['Q649', 'P190', {'concept': 'Q56061'}] ['Q340', 'P190', {'concept': 'Q56061'}] ['Q5092', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . VALUES ( ?x ) { ( resource:Q340 ) ( resource:Q5092 ) ( resource:Q649 ) } . ?x property:P190 ?l }
Lausanne Mykolaiv Taranto Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Tokyo Vienna Torzhok Amman Astana Athens La Paz New Delhi Bratislava Jakarta Brest Košice Tel Aviv Ganja Algiers London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw Brussels Madrid Beijing Ankara Berlin Jerusalem Kolomna Pazardzhik Prague Shanghai Amsterdam Managua San Salvador Hanover Beersheba Athens Algiers Cali Brussels Milan Amman Los Angeles Barcelona Beirut Odessa Cádiz Rotterdam Luxor Gbarnga Alexandria Piraeus Salerno Genoa Ashkelon
Prague, Madrid and Milan are twin cities of those ones
Prague Madrid Milan
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Moscow', 'sister city', {'concept': 'administrative territorial entity'}] ['Montreal', 'sister city', {'concept': 'administrative territorial entity'}] ['Baltimore', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . VALUES ( ?x ) { ( resource:Montreal ) ( resource:Baltimore ) ( resource:Moscow ) } . ?x property:sister_city ?l }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1085 Q2807 Q490
P1376
Q1048835
USER
Which political territories have those administrative territories as their county seat ?
(Q1085,P1376,c(Q1048835)) (Q2807,P1376,c(Q1048835)) (Q490,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
['Q1085', 'P1376', {'concept': 'Q1048835'}] ['Q2807', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . VALUES ( ?v ) { ( resource:Q807 ) ( resource:Q41572 ) ( resource:Q13498 ) } . ?v property:P1376 ?c }
Prague Madrid Milan
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Prague', 'capital of', {'concept': 'political territorial entity'}] ['Madrid', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . VALUES ( ?v ) { ( resource:Lausanne ) ( resource:Mykolaiv ) ( resource:Taranto ) } . ?v property:capital_of ?c }
[]
political territorial entity
Q188399 Q5756 Q18288155
SYSTEM
Central Bohemian Region, Community of Madrid, Metropolitan City of Milan
Q188399 Q5756 Q18288155
(Q1085,P1376,c(Q1048835)) (Q2807,P1376,c(Q1048835)) (Q490,P1376,c(Q1048835))
action filter_type
action find
entity prev_answer
relation P1376
type Q1048835
[ANSWERS] have those administrative territories as their county seat
['Q1085', 'P1376', {'concept': 'Q1048835'}] ['Q2807', 'P1376', {'concept': 'Q1048835'}] ['Q490', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1048835 . VALUES ( ?v ) { ( resource:Q807 ) ( resource:Q41572 ) ( resource:Q13498 ) } . ?v property:P1376 ?c }
Central Bohemian Region Community of Madrid Metropolitan City of Milan
Central Bohemian Region, Community of Madrid and Metropolitan City of Milan have those administrative territories as their county seat
Central Bohemian Region Community of Madrid Metropolitan City of Milan
action filter_type
action find
entity prev_answer
relation capital of
type political territorial entity
['Prague', 'capital of', {'concept': 'political territorial entity'}] ['Madrid', 'capital of', {'concept': 'political territorial entity'}] ['Milan', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:political_territorial_entity . VALUES ( ?v ) { ( resource:Lausanne ) ( resource:Mykolaiv ) ( resource:Taranto ) } . ?v property:capital_of ?c }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q188399 Q5756 Q18288155
P1376
Q56061
USER
Which administrative territories are the county seat of those political territories ?
(c(Q56061),P1376,Q188399) (c(Q56061),P1376,Q5756) (c(Q56061),P1376,Q18288155)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q188399'] [{'concept': 'Q56061'}, 'P1376', 'Q5756'] [{'concept': 'Q56061'}, 'P1376', 'Q18288155']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . ?d property:P1376 ?f . VALUES ( ?f ) { ( resource:Q188399 ) ( resource:Q5756 ) ( resource:Q18288155 ) } }
Central Bohemian Region Community of Madrid Metropolitan City of Milan
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Central Bohemian Region'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Community of Madrid'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Metropolitan City of Milan']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . ?d property:capital_of ?f . VALUES ( ?f ) { ( resource:Central_Bohemian_Region ) ( resource:Community_of_Madrid ) ( resource:Metropolitan_City_of_Milan ) } }
[]
administrative territorial entity
Q1085 Q2807 Q490
SYSTEM
Prague, Madrid, Milan
Q1085 Q2807 Q490
(c(Q56061),P1376,Q188399) (c(Q56061),P1376,Q5756) (c(Q56061),P1376,Q18288155)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWERS] are the county seat of those political territories
[{'concept': 'Q56061'}, 'P1376', 'Q188399'] [{'concept': 'Q56061'}, 'P1376', 'Q5756'] [{'concept': 'Q56061'}, 'P1376', 'Q18288155']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . ?d property:P1376 ?f . VALUES ( ?f ) { ( resource:Q188399 ) ( resource:Q5756 ) ( resource:Q18288155 ) } }
Prague Madrid Milan
Prague, Madrid and Milan are the county seat of those political territories
Prague Madrid Milan
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Central Bohemian Region'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Community of Madrid'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Metropolitan City of Milan']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . ?d property:capital_of ?f . VALUES ( ?f ) { ( resource:Central_Bohemian_Region ) ( resource:Community_of_Madrid ) ( resource:Metropolitan_City_of_Milan ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1085 Q2807 Q490
P1376
Q7275
USER
Which states have Prague, Madrid and Milan have their first city ?
(Q1085,P1376,c(Q7275)) (Q2807,P1376,c(Q7275)) (Q490,P1376,c(Q7275))
action union
action filter_type
action find
entity Q1085
relation P1376
type Q7275
action filter_type
action find
entity Q2807
relation P1376
type Q7275
action filter_type
action find
entity Q490
relation P1376
type Q7275
['Q1085', 'P1376', {'concept': 'Q7275'}] ['Q2807', 'P1376', {'concept': 'Q7275'}] ['Q490', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { { resource:Q1085 property:P1376 ?z . ?z rdf:type ontology:Q7275 } UNION { resource:Q2807 property:P1376 ?z . ?z rdf:type ontology:Q7275 } }
Prague Madrid Milan
action union
action filter_type
action find
entity Prague
relation capital of
type state
action filter_type
action find
entity Madrid
relation capital of
type state
action filter_type
action find
entity Milan
relation capital of
type state
['Prague', 'capital of', {'concept': 'state'}] ['Madrid', 'capital of', {'concept': 'state'}] ['Milan', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { { resource:Prague property:capital_of ?z . ?z rdf:type ontology:state } UNION { resource:Madrid property:capital_of ?z . ?z rdf:type ontology:state } }
[]
state
Q33946 Q1709185 Q1044536
SYSTEM
Czechoslovakia, Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration
Q2162698 Q33946 Q1998866 Q42585 Q497777 Q1709185 Q1044536 Q178038 Q209857 Q746443 Q223936
(Q1085,P1376,c(Q7275)) (Q2807,P1376,c(Q7275)) (Q490,P1376,c(Q7275))
action union
action filter_type
action find
entity Q1085
relation P1376
type Q7275
action filter_type
action find
entity Q2807
relation P1376
type Q7275
action filter_type
action find
entity Q490
relation P1376
type Q7275
[ANSWERS] have Prague, Madrid and Milan have their first city
['Q1085', 'P1376', {'concept': 'Q7275'}] ['Q2807', 'P1376', {'concept': 'Q7275'}] ['Q490', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?z WHERE { { resource:Q1085 property:P1376 ?z . ?z rdf:type ontology:Q7275 } UNION { resource:Q2807 property:P1376 ?z . ?z rdf:type ontology:Q7275 } }
Duchy of Bohemia Czechoslovakia Czech and Slovak Federal Republic Kingdom of Bohemia First Spanish Republic Kingdom of Spain under Joseph Bonaparte Spain under the Restoration Second Spanish Republic Kingdom of Lombardy–Venetia Golden Ambrosian Republic Kingdom of Italy
Czechoslovakia, Kingdom of Spain under Joseph Bonaparte and Spain under the Restoration have Prague, Madrid and Milan have their first city
Czechoslovakia Kingdom of Spain under Joseph Bonaparte Spain under the Restoration
action union
action filter_type
action find
entity Prague
relation capital of
type state
action filter_type
action find
entity Madrid
relation capital of
type state
action filter_type
action find
entity Milan
relation capital of
type state
['Prague', 'capital of', {'concept': 'state'}] ['Madrid', 'capital of', {'concept': 'state'}] ['Milan', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?z WHERE { { resource:Prague property:capital_of ?z . ?z rdf:type ontology:state } UNION { resource:Madrid property:capital_of ?z . ?z rdf:type ontology:state } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P710
Q1190554
USER
Which event did that administrative territory participate in ?
(c(Q1190554),P710,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q1085']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q1085 . ?r rdf:type ontology:Q1190554 }
Prague
action filter_type
action find_reverse
entity Prague
relation participant
type event
[{'concept': 'event'}, 'participant', 'Prague']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Prague . ?r rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q33946 Q1709185 Q1044536
(c(Q1190554),P710,Q33946) (c(Q1190554),P710,Q1709185) (c(Q1190554),P710,Q1044536)
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q33946'] [{'concept': 'Q1190554'}, 'P710', 'Q1709185'] [{'concept': 'Q1190554'}, 'P710', 'Q1044536']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q1085 . ?r rdf:type ontology:Q1190554 }
Czechoslovakia Kingdom of Spain under Joseph Bonaparte Spain under the Restoration
Did you mean Prague ?
Prague
[{'concept': 'event'}, 'participant', 'Czechoslovakia'] [{'concept': 'event'}, 'participant', 'Kingdom of Spain under Joseph Bonaparte'] [{'concept': 'event'}, 'participant', 'Spain under the Restoration']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Prague . ?r rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1190554),P710,Q1085)
[{'concept': 'Q1190554'}, 'P710', 'Q1085']
[{'concept': 'event'}, 'participant', 'Prague']
[]
Q4870163
SYSTEM
Battle for Czech Radio
Q4870163
(c(Q1190554),P710,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P710
type Q1190554
That administrative territory participated in [ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q1085']
SELECT DISTINCT ?r WHERE { ?r property:P710 resource:Q1085 . ?r rdf:type ontology:Q1190554 }
Battle for Czech Radio
That administrative territory participated in Battle for Czech Radio
Battle for Czech Radio
action filter_type
action find_reverse
entity Prague
relation participant
type event
[{'concept': 'event'}, 'participant', 'Prague']
SELECT DISTINCT ?r WHERE { ?r property:participant resource:Prague . ?r rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4870163 Q5446229
P276
Q56061
USER
Is Ffos-y-ffin the place where that event is located ?
(Q4870163,P276,Q5446229)
action is_in
entity Q5446229
action find
entity Q4870163
relation P276
['Q4870163', 'P276', 'Q5446229']
ASK WHERE { resource:Q4870163 property:P276 resource:Q5446229 }
Battle for Czech Radio Ffos-y-ffin
action is_in
entity Ffos-y-ffin
action find
entity Battle for Czech Radio
relation location
['Battle for Czech Radio', 'location', 'Ffos-y-ffin']
ASK WHERE { resource:Battle_for_Czech_Radio property:location resource:Ffos-y-ffin }
[]
administrative territorial entity
SYSTEM
NO
(Q4870163,P276,Q5446229)
action is_in
entity Q5446229
action find
entity Q4870163
relation P276
[ANSWER]
['Q4870163', 'P276', 'Q5446229']
ASK WHERE { resource:Q4870163 property:P276 resource:Q5446229 }
No
action is_in
entity Ffos-y-ffin
action find
entity Battle for Czech Radio
relation location
['Battle for Czech Radio', 'location', 'Ffos-y-ffin']
ASK WHERE { resource:Battle_for_Czech_Radio property:location resource:Ffos-y-ffin }
[]