Simple Question (Direct)
Simple Question
Q6504106
P19
Q56061
USER
Which administrative territory was Lawrence Grossmith born at ?
(Q6504106,P19,c(Q56061))
action filter_type
action find
entity Q6504106
relation P19
type Q56061
['Q6504106', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6504106 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Lawrence Grossmith
action filter_type
action find
entity Lawrence Grossmith
relation place of birth
type administrative territorial entity
['Lawrence Grossmith', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Lawrence_Grossmith property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q6504106,P19,c(Q56061))
action filter_type
action find
entity Q6504106
relation P19
type Q56061
Lawrence Grossmith was born in [ANSWER]
['Q6504106', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q6504106 property:P19 ?k . ?k rdf:type ontology:Q56061 }
London
Lawrence Grossmith was born in London
London
action filter_type
action find
entity Lawrence Grossmith
relation place of birth
type administrative territorial entity
['Lawrence Grossmith', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Lawrence_Grossmith property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6504106
P161
Q838948
USER
Which work of art has that person in its star cast ?
(c(Q838948),P161,Q84)
action filter_type
action find_reverse
entity Q6504106
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q84']
SELECT DISTINCT ?e WHERE { ?e property:P161 resource:Q6504106 . ?e rdf:type ontology:Q838948 }
Lawrence Grossmith
action filter_type
action find_reverse
entity Lawrence Grossmith
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'London']
SELECT DISTINCT ?e WHERE { ?e property:cast_member resource:Lawrence_Grossmith . ?e rdf:type ontology:work_of_art }
[]
work of art
Q3878228
SYSTEM
No Time for Comedy
Q3878228
(c(Q838948),P161,Q84)
action filter_type
action find_reverse
entity Q6504106
relation P161
type Q838948
[ANSWER] has that person in its star cast
[{'concept': 'Q838948'}, 'P161', 'Q84']
SELECT DISTINCT ?e WHERE { ?e property:P161 resource:Q6504106 . ?e rdf:type ontology:Q838948 }
No Time for Comedy
No Time for Comedy has that person in its star cast
No Time for Comedy
action filter_type
action find_reverse
entity Lawrence Grossmith
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'London']
SELECT DISTINCT ?e WHERE { ?e property:cast_member resource:Lawrence_Grossmith . ?e rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2195745 Q6504106
P27
Q15617994
USER
Which administrative territories are the native countriesof Lawrence Grossmith or Gerrit Bolhuis ?
OR((Q6504106,P27,c(Q15617994)), (Q2195745,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6504106
relation P27
action find
entity Q2195745
relation P27
type Q15617994
{'OR': [['Q6504106', 'P27', {'concept': 'Q15617994'}], ['Q2195745', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Q6504106 ) ( resource:Q2195745 ) } . ?o property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Gerrit Bolhuis Lawrence Grossmith
action filter_type
action union
action find
entity Lawrence Grossmith
relation country of citizenship
action find
entity Gerrit Bolhuis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lawrence Grossmith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerrit Bolhuis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Lawrence_Grossmith ) ( resource:Gerrit_Bolhuis ) } . ?o property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29999 Q145
SYSTEM
Kingdom of the Netherlands, United Kingdom
Q29999 Q145
OR((Q6504106,P27,c(Q15617994)), (Q2195745,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6504106
relation P27
action find
entity Q2195745
relation P27
type Q15617994
[ANSWERS] are the native countriesof Lawrence Grossmith or Gerrit Bolhuis
{'OR': [['Q6504106', 'P27', {'concept': 'Q15617994'}], ['Q2195745', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Q6504106 ) ( resource:Q2195745 ) } . ?o property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Kingdom of the Netherlands United Kingdom
Kingdom of the Netherlands and United Kingdom are the native countriesof Lawrence Grossmith or Gerrit Bolhuis
Kingdom of the Netherlands United Kingdom
action filter_type
action union
action find
entity Lawrence Grossmith
relation country of citizenship
action find
entity Gerrit Bolhuis
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lawrence Grossmith', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gerrit Bolhuis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?o ) { ( resource:Lawrence_Grossmith ) ( resource:Gerrit_Bolhuis ) } . ?o property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q145
P264
Q7725634
USER
Which literary works have that administrative territory as their recording sponsor ?
(c(Q7725634),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q7725634
[{'concept': 'Q7725634'}, 'P264', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P264 resource:Q145 . ?x rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation record label
type literary work
[{'concept': 'literary work'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:record_label resource:United_Kingdom . ?x rdf:type ontology:literary_work }
[]
literary work
Clarification for simple ques.
Q29999
SYSTEM
Did you mean Kingdom of the Netherlands ?
Q29999 Q145
(c(Q7725634),P264,Q29999) (c(Q7725634),P264,Q145)
[ANSWER]
[{'concept': 'Q7725634'}, 'P264', 'Q29999'] [{'concept': 'Q7725634'}, 'P264', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P264 resource:Q145 . ?x rdf:type ontology:Q7725634 }
Kingdom of the Netherlands United Kingdom
Did you mean Kingdom of the Netherlands ?
Kingdom of the Netherlands
[{'concept': 'literary work'}, 'record label', 'Kingdom of the Netherlands'] [{'concept': 'literary work'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:record_label resource:United_Kingdom . ?x rdf:type ontology:literary_work }
[]
Simple Question (Coreferenced)
USER
No, I meant United Kingdom. Could you tell me the answer for that?
(c(Q7725634),P264,Q145)
Q145
[{'concept': 'Q7725634'}, 'P264', 'Q145']
[{'concept': 'literary work'}, 'record label', 'United Kingdom']
[]
Q7995071 Q8056664
SYSTEM
White Mountain, You're the One
Q7995071 Q8056664
(c(Q7725634),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q7725634
[ANSWERS] have that administrative territory as their recording sponsor
[{'concept': 'Q7725634'}, 'P264', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P264 resource:Q145 . ?x rdf:type ontology:Q7725634 }
White Mountain You're the One
White Mountain and You're the One have that administrative territory as their recording sponsor
White Mountain You're the One
action filter_type
action find_reverse
entity United Kingdom
relation record label
type literary work
[{'concept': 'literary work'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:record_label resource:United_Kingdom . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q145
P840
Q15416 Q5398426
USER
How many television programs and television series have their narrative set in United Kingdom ?
(c(Q15416),P840,Q145) (c(Q5398426),P840,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P840
type Q15416
action filter_type
action find_reverse
entity Q145
relation P840
type Q5398426
[{'concept': 'Q15416'}, 'P840', 'Q145'] [{'concept': 'Q5398426'}, 'P840', 'Q145']
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { ?t rdf:type ontology:Q15416 . ?t property:P840 resource:Q145 } UNION { ?t property:P840 resource:Q145 . ?t rdf:type ontology:Q5398426 } }
United Kingdom
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television program
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television series
[{'concept': 'television program'}, 'narrative location', 'United Kingdom'] [{'concept': 'television series'}, 'narrative location', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { ?t rdf:type ontology:television_program . ?t property:narrative_location resource:United_Kingdom } UNION { ?t property:narrative_location resource:United_Kingdom . ?t rdf:type ontology:television_series } }
[]
television program television series
SYSTEM
69 television programs and 1 television series
Q17039455 Q16953956 Q20020291 Q16995658 Q19824815 Q16995048 Q193973 Q16994985 Q16993375 Q16995459 Q5519196 Q10337169 Q15109327 Q7832449 Q16958386 Q7641426 Q16961393 Q16995528 Q16996902 Q15619684 Q16988855 Q16679651 Q16996291 Q21450492 Q17018809 Q16993261 Q16953744 Q17104366 Q21775778 Q17016976 Q17033935 Q18712151 Q15974784 Q16992051 Q16956081 Q17150444 Q16997329 Q17018116 Q20713401 Q17022471 Q15109282 Q16992630 Q15270664 Q16385485 Q16997851 Q16994796 Q17019426 Q16993458 Q20718353 Q652460 Q17034138 Q16953842 Q19650404 Q16988682 Q7759292 Q2070312 Q15732968 Q17017945 Q6959460 Q16993244 Q17013583 Q16976961 Q7677671 Q17104024 Q16994352 Q21998276 Q15109310 Q1890400 Q16994324 Q17020225
(c(Q15416),P840,Q145) (c(Q5398426),P840,Q145)
action count
action union
action filter_type
action find_reverse
entity Q145
relation P840
type Q15416
action filter_type
action find_reverse
entity Q145
relation P840
type Q5398426
[ANSWER]
[{'concept': 'Q15416'}, 'P840', 'Q145'] [{'concept': 'Q5398426'}, 'P840', 'Q145']
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { ?t rdf:type ontology:Q15416 . ?t property:P840 resource:Q145 } UNION { ?t property:P840 resource:Q145 . ?t rdf:type ontology:Q5398426 } }
Wolf Hall The Brits who Built the Modern World 24 Hours in the Past Killer Magic Nurse Invasion of the Job Snatchers Secret State The Interceptor Grey Mates Jonathan Strange & Mr Norrell Gallowglass Noah and Saskia Tudor Monastery Farm Traffic Cops Cilla Sunshine Saving Britain's Past Junior Paramedics London Spy House of Fools Doctor Foster The Line of Beauty The Life of Rock with Brian Pern Victoria Remember Me The Great Interior Design Challenge The Big Allotment Challenge Mud, Sweat & Gears Josh Ordinary Lies Watchdog Test House Cara Fi The Great Train Robbery Famous, Rich and Hungry Castles in the Sky Barely Legal Drivers Mapp and Lucia Pound Shop Wars The Outcast Supermarket Secrets The Crane Gang The Game Framed Dickensian Mind the Gap: London vs the Rest In and Out of the Kitchen Sacred Wonders of Britain The Guess List Agatha Raisin Trinity Watermen: a Dirty Business Britain and the Sea Life in Squares Detectorists The Railway: Keeping Britain On Track Percy Stuart W1A Poldark Oakie Doke Great British Garden Revival The Passing Bells Pat & Cabbage Take Me River The House that £100k Built Tracey Ullman's Show Iceland Foods: Life in the Freezer Cabinet Terry Pratchett's The Colour of Magic Hotel of Mum and Dad The Secrets
69 television programs and 1 television series
action count
action union
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television program
action filter_type
action find_reverse
entity United Kingdom
relation narrative location
type television series
[{'concept': 'television program'}, 'narrative location', 'United Kingdom'] [{'concept': 'television series'}, 'narrative location', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { ?t rdf:type ontology:television_program . ?t property:narrative_location resource:United_Kingdom } UNION { ?t property:narrative_location resource:United_Kingdom . ?t rdf:type ontology:television_series } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q7725634
USER
Which languages are atmost 88 literary works composed in ?
(c(Q7725634),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
value 88
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?a ) WHERE { ?w property:P407 ?u . ?w rdf:type ontology:Q7725634 . ?u rdf:type ontology:Q34770 } GROUP BY ?u } . FILTER ( ?a <= 88 ) }
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
value 88
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?a ) WHERE { ?w property:language_of_work_or_name ?u . ?w rdf:type ontology:literary_work . ?u rdf:type ontology:language } GROUP BY ?u } . FILTER ( ?a <= 88 ) }
[]
language literary work
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q7725634),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q7725634
value 88
[ANSWERS]
[{'concept': 'Q7725634'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?a ) WHERE { ?w property:P407 ?u . ?w rdf:type ontology:Q7725634 . ?u rdf:type ontology:Q34770 } GROUP BY ?u } . FILTER ( ?a <= 88 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Which languages are atmost 88 literary works composed in
Old Egyptian Old Church Slavonic Etruscan
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type literary work
value 88
[{'concept': 'literary work'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?a ) WHERE { ?w property:language_of_work_or_name ?u . ?w rdf:type ontology:literary_work . ?u rdf:type ontology:language } GROUP BY ?u } . FILTER ( ?a <= 88 ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
How many languages utilizes approximately the same number of writing systems as the writing system as that language ?
(c(Q34770),P282,c(Q8192))
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
writing system language
Comparative|Count over More/Less|Single entity type|Clarification
Q447117
SYSTEM
Did you mean Old Egyptian ?
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Did you mean Old Egyptian ?
Old Egyptian
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Old Church Slavonic. Could you tell me the answer for that?
(c(Q34770),P282,c(Q8192))
Q35499
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
[]
SYSTEM
56
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
56
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P272
Q838948
USER
Which work of art was produced by United Kingdom ?
(c(Q838948),P272,Q145)
action filter_type
action find_reverse
entity Q145
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q145']
SELECT DISTINCT ?n WHERE { ?n property:P272 resource:Q145 . ?n rdf:type ontology:Q838948 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:production_company resource:United_Kingdom . ?n rdf:type ontology:work_of_art }
[]
work of art
Q7774772
SYSTEM
The Widow
Q7774772
(c(Q838948),P272,Q145)
action filter_type
action find_reverse
entity Q145
relation P272
type Q838948
[ANSWER] was produced by United Kingdom
[{'concept': 'Q838948'}, 'P272', 'Q145']
SELECT DISTINCT ?n WHERE { ?n property:P272 resource:Q145 . ?n rdf:type ontology:Q838948 }
The Widow
The Widow was produced by United Kingdom
The Widow
action filter_type
action find_reverse
entity United Kingdom
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'United Kingdom']
SELECT DISTINCT ?n WHERE { ?n property:production_company resource:United_Kingdom . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P30
Q2221906
USER
Which geographic location is United Kingdom a part of ?
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q145 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:United_Kingdom property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
Were [ANSWER] is United Kingdom a part of
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q145 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Europe
Were Europe is United Kingdom a part of
Europe
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:United_Kingdom property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q46
P47
Q2221906
USER
Which geographic locations have a shared border with that one ?
(Q46,P47,c(Q2221906))
action filter_type
action find
entity Q46
relation P47
type Q2221906
['Q46', 'P47', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q46 property:P47 ?w . ?w rdf:type ontology:Q2221906 }
Europe
action filter_type
action find
entity Europe
relation shares border with
type geographic location
['Europe', 'shares border with', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Europe property:shares_border_with ?w . ?w rdf:type ontology:geographic_location }
[]
geographic location
Q15 Q48
SYSTEM
Africa, Asia
Q15 Q48
(Q46,P47,c(Q2221906))
action filter_type
action find
entity Q46
relation P47
type Q2221906
[ANSWERS] have a shared border with that one
['Q46', 'P47', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q46 property:P47 ?w . ?w rdf:type ontology:Q2221906 }
Africa Asia
Africa and Asia have a shared border with that one
Africa Asia
action filter_type
action find
entity Europe
relation shares border with
type geographic location
['Europe', 'shares border with', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Europe property:shares_border_with ?w . ?w rdf:type ontology:geographic_location }
[]