Simple Question (Direct)
Simple Question
Q6384089
P21
Q290
USER
Which sex does Keith Bowker belong to ?
(Q6384089,P21,c(Q290))
action filter_type
action find
entity Q6384089
relation P21
type Q290
['Q6384089', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6384089 property:P21 ?x . ?x rdf:type ontology:Q290 }
Keith Bowker
action filter_type
action find
entity Keith Bowker
relation gender
type sex
['Keith Bowker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Keith_Bowker property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6384089,P21,c(Q290))
action filter_type
action find
entity Q6384089
relation P21
type Q290
Keith Bowker belongs to [ANSWER]
['Q6384089', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q6384089 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
Keith Bowker belongs to male
male
action filter_type
action find
entity Keith Bowker
relation gender
type sex
['Keith Bowker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Keith_Bowker property:gender ?x . ?x rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6384089
P641
Q349
USER
Which sport was that person a part of ?
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q6384089
relation P641
type Q349
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q6384089 property:P641 ?n . ?n rdf:type ontology:Q349 }
Keith Bowker
action filter_type
action find
entity Keith Bowker
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Keith_Bowker property:sport ?n . ?n rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6581097,P641,c(Q349))
action filter_type
action find
entity Q6384089
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q6581097', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { resource:Q6384089 property:P641 ?n . ?n rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Keith Bowker
relation sport
type sport
['male', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { resource:Keith_Bowker property:sport ?n . ?n rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6384089
P106
Q12737077
USER
Which occupation is the profession of Keith Bowker ?
(Q6384089,P106,c(Q12737077))
action filter_type
action find
entity Q6384089
relation P106
type Q12737077
['Q6384089', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6384089 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Keith Bowker
action filter_type
action find
entity Keith Bowker
relation occupation
type occupation
['Keith Bowker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Keith_Bowker property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6384089,P106,c(Q12737077))
action filter_type
action find
entity Q6384089
relation P106
type Q12737077
Player [ANSWER] is the profession of Keith Bowker
['Q6384089', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q6384089 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Keith Bowker
association football player
action filter_type
action find
entity Keith Bowker
relation occupation
type occupation
['Keith Bowker', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Keith_Bowker property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6384089
P19
Q56061
USER
Which administrative territory was Keith Bowker born at ?
(Q6384089,P19,c(Q56061))
action filter_type
action find
entity Q6384089
relation P19
type Q56061
['Q6384089', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q6384089 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Keith Bowker
action filter_type
action find
entity Keith Bowker
relation place of birth
type administrative territorial entity
['Keith Bowker', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Keith_Bowker property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q212826
SYSTEM
West Bromwich
Q212826
(Q6384089,P19,c(Q56061))
action filter_type
action find
entity Q6384089
relation P19
type Q56061
Keith Bowker was born in [ANSWER]
['Q6384089', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q6384089 property:P19 ?g . ?g rdf:type ontology:Q56061 }
West Bromwich
Keith Bowker was born in West Bromwich
West Bromwich
action filter_type
action find
entity Keith Bowker
relation place of birth
type administrative territorial entity
['Keith Bowker', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Keith_Bowker property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6384089
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q212826,P27,c(Q15617994))
action filter_type
action find
entity Q6384089
relation P27
type Q15617994
['Q212826', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q6384089 property:P27 ?s }
Keith Bowker
action filter_type
action find
entity Keith Bowker
relation country of citizenship
type designation for an administrative territorial entity
['West Bromwich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Keith_Bowker property:country_of_citizenship ?s }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q212826,P27,c(Q15617994))
action filter_type
action find
entity Q6384089
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q212826', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q6384089 property:P27 ?s }
United Kingdom
That person belongs to the United Kingdom
United Kingdom
action filter_type
action find
entity Keith Bowker
relation country of citizenship
type designation for an administrative territorial entity
['West Bromwich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Keith_Bowker property:country_of_citizenship ?s }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q26
P840
Q56061 Q166142 Q15416
USER
Which administrative territories are less number of applications and television programs set in than Northern Ireland ?
(c(Q166142)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q26
relation P840
type Q166142
type Q15416
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?d WHERE { { ?o property:P840 ?d . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q166142 } UNION { ?o property:P840 ?d . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P840 resource:Q26 . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } } } } . FILTER ( ?c < ?b ) }
Northern Ireland
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Northern Ireland
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?d WHERE { { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:application } UNION { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:narrative_location resource:Northern_Ireland . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:application ) ( ontology:television_program ) } } } } . FILTER ( ?c < ?b ) }
[]
administrative territorial entity application television program
Q1085 Q72 Q2807
SYSTEM
Prague, Zürich, Madrid
Q3579 Q1715 Q704257 Q7436 Q34804 Q21075005 Q990616 Q1183 Q3711 Q33486 Q1874 Q331990 Q1826473 Q210292 Q28729 Q25286 Q25287 Q128499 Q2280 Q3805 Q501661 Q804569 Q49233 Q1255278 Q42096 Q18808 Q467664 Q23725 Q1050826 Q4093 Q3659 Q16563 Q23337 Q8692 Q2656 Q1289 Q585 Q124739 Q3413045 Q79873 Q81788 Q43453 Q1754 Q1022 Q308891 Q2500974 Q7054337 Q101625 Q48320 Q80985 Q12892 Q215646 Q80734 Q7880 Q82858 Q1930 Q1435589 Q597 Q690 Q257536 Q334 Q22889 Q3437 Q75459 Q49272 Q12273 Q365 Q5836 Q12994 Q1635139 Q667268 Q25319 Q33935 Q54140 Q180294 Q8818 Q34739 Q215177 Q27168 Q2048321 Q1335 Q594807 Q1891 Q9427 Q48274 Q83317 Q12340599 Q262483 Q186237 Q2567585 Q37776 Q1489 Q209055 Q7094142 Q3561 Q11864 Q83387 Q406 Q462799 Q8673 Q2861 Q11703 Q2868 Q490 Q6346 Q495 Q2044 Q48370 Q36036 Q3703 Q208287 Q2141 Q192517 Q54212 Q23436 Q43301 Q490584 Q3141 Q3630 Q1246235 Q17151 Q237 Q6046 Q25416 Q239 Q25410 Q16558 Q16559 Q5212975 Q16554 Q753121 Q16556 Q8686 Q994 Q35178 Q113546 Q3037 Q52437 Q723329 Q490737 Q1563 Q900 Q1741 Q14815 Q1748 Q169492 Q26881 Q13670 Q1911961 Q85 Q128321 Q42462 Q5112 Q1735 Q1737 Q613441 Q729006 Q64123 Q37320 Q25390 Q214178 Q735022 Q45301 Q25395 Q11592 Q78 Q34863 Q72 Q71 Q70 Q178168 Q37100 Q16869 Q2214 Q38022 Q172 Q270 Q2028 Q37066 Q486439 Q2073798 Q26887 Q184587 Q208472 Q79980 Q82490 Q79985 Q49241 Q49243 Q3766 Q472 Q41604 Q1070 Q3590079 Q837165 Q41819 Q1861 Q2177880 Q5092 Q1011683 Q41329 Q956 Q1555 Q1490 Q1491 Q1492 Q16562 Q6225 Q437 Q124539 Q2118905 Q134672 Q1479 Q1780 Q2302168 Q690052 Q2090 Q2073211 Q1851 Q2807 Q18705 Q3820 Q621549 Q49149 Q1353 Q1352 Q676689 Q271411 Q13496 Q27119 Q1524 Q220 Q340 Q125434 Q494728 Q25331 Q25231 Q25230 Q617 Q612 Q430464 Q21855637 Q3305102 Q990168 Q1015727 Q34713 Q1218 Q30096 Q915 Q48292 Q319476 Q985531 Q193082 Q162890 Q1020373 Q23070 Q2634 Q863058 Q1659757 Q268873 Q530090 Q8717 Q3825 Q159232 Q1757 Q5818 Q1867 Q384 Q5813 Q12439 Q27393 Q12191 Q126148 Q202337 Q837478 Q184345 Q13362 Q6537 Q6106 Q49111 Q499196 Q495373 Q10313 Q42810 Q49255 Q3640 Q647 Q727 Q41621 Q3012 Q2301524 Q852778 Q3483936 Q3358921 Q323813 Q158119 Q79848 Q42735 Q580 Q586 Q43919 Q1449 Q47048 Q1764 Q34932 Q12340625 Q2211 Q41262 Q2704 Q47716 Q1040 Q6441 Q165972 Q374748 Q485172 Q26793 Q10686 Q4190 Q897848 Q165413 Q350 Q62677 Q1574020 Q3992 Q1781238 Q3110 Q3114 Q743521 Q1348 Q630533 Q1156 Q3619316 Q2751 Q41876 Q485186 Q42448 Q41970 Q34647 Q33986 Q1085
(c(Q166142)|c(Q15416),P840,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action find_reverse_tuple_counts
relation P840
type Q56061
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q26
relation P840
type Q166142
type Q15416
[ANSWERS] are less number of applications and television programs set in than Northern Ireland
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?d WHERE { { ?o property:P840 ?d . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q166142 } UNION { ?o property:P840 ?d . ?d rdf:type ontology:Q56061 . ?o rdf:type ontology:Q15416 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P840 resource:Q26 . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:Q166142 ) ( ontology:Q15416 ) } } } } . FILTER ( ?c < ?b ) }
Tripoli Hanover Albany Gatchina Albuquerque Serritslev Harwich Puerto Rico Belgrade Hartford Odessa Korean Demilitarized Zone Tversted Yozgat Kozhikode Uppsala Gothenburg Yalta Minsk Amman Schleswig Bala, Ontario Orlando Dragør Miryang Pyongyang Butte Byzantium Greater Los Angeles Area Glasgow N'Djamena Memphis Salt Lake City Bilbao Palermo Grenoble Oslo Tijuana Farsø Tombstone Giza Plzeň Stockholm Stuttgart special wards of Tokyo Richmond North Buxton, Ontario Marrakesh Kōbe Fes Antwerp Edo Campagna Toulouse Sigmaringen Ottawa Folsom Lisbon Delft Janesville Singapore Bath Perugia Delphi Chandler Gijón Cologne Toledo Bruges Hvalpsund Nevada City Aarhus Tel Aviv Salem Jaffa Valencia Dayton Skagen Randers Varde Montevideo Søborg Bologna Timbuktu Nashua Mosul Vedersø Deadwood Joensuu Dybbøl Besançon Mexico City Torquay Onllwyn Algiers Junagadh Diyarbakır Istanbul Evanston Lagos Rostock United States Virgin Islands Lima Milan Indianapolis Turin Florence Manchester Lviv Bamako Kauniainen Halifax Boulder Barnsley Edinburgh Fresno Flint Melbourne Jakarta Nørresundby Thessaloniki Vatican City Novara Stavanger Brussels Aalborg Fort Worth Austin Damsholte Denver Atacames Phoenix Shanghai Tbilisi Kuwait City Blackeberg Kathmandu Murano Ascot Bloomington Havana Kazan Vienna Weißenfels Copenhagen Neukölln Helsingør Syracuse Thorning Cairo Midland York Adelaide Innsbruck Bregenz Middelfart Chatham Meiringen Cleveland Leeuwarden Nablus Walnut Grove, Minnesota Trabzon Newark Sonoma Basel Oklahoma City Zürich Geneva Bern Mitrovica Auckland Constantinople Pskov St. Louis Toronto Warsaw Verona Bismarck Cedar Rapids Welch Davenport Grand Rapids Bingöl Varanasi Lyme Regis Kodiak Lexington Riverside Damascus Sofia Amiens Ahmedabad Hvidovre Hyrylä Kansas City Bangkok Ågerup Baltimore Rødbyhavn Linz Beijing Guatemala City Tokyo La Paz Barcelona El Paso Coventry Ljubljana Whitechapel Purley Exeter Bordeaux Bratislava Kjellerup Trebinje Nuremberg Talamone Arkhangelsk Madrid Bajram Curri Beirut Inglewood Nantucket Delhi Chennai Gravesend Malindi Brindisi Kolding Athens Rome Montreal Port Elizabeth West Covina Odense Svalbard Guernsey Padua Dubai Dearborn Hvilsager Tsamantas Keighley Mbale Salzburg Jerusalem Frederiksberg Perm Arles Cumaná Tulkarm Svishtov Xanten Jindabyne Sneek Naples Summerside Gimli Newport Beach Jerichow Seville Libreville Santa Cruz Helsinki Córdoba Taipei Skopje Canary Islands Detroit Herning Nantes Tangier Nauplion Sabinov Viña del Mar Ferrara Vicenza Portland Cambridge Costa Mesa Visalia Donostia/San Sebastián Le Havre Tampa Ankara Rennes Amsterdam Haifa Ulm Stege Whitby Sils Maria Overschild Jamestown Ramallah Southampton Olympia Łódź Bonn Salem Genoa Oulu Reykjavík Brisbane Vejlby Malmö Nottingham Pescara Charleston Karlsruhe Montpellier Fort Lauderdale Jenin Ann Arbor Bergen Belfast Passau Brande Baikonur Cambridge Karakorum The Hamptons Liège Stureby San Salvador Canberra Scarborough Kolkata Tire Mumbai Grenå Siena Reims Key West Sheffield Pyatigorsk Johannesburg Valparaíso Prague
Prague, Zürich and Madrid are less number of applications and television programs set in than Northern Ireland
Prague Zürich Madrid
action less
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Northern Ireland
relation narrative location
type application
type television program
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?c ) ?d WHERE { { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:application } UNION { ?o property:narrative_location ?d . ?d rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:television_program } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:narrative_location resource:Northern_Ireland . { ?k rdf:type ?e . VALUES ( ?e ) { ( ontology:application ) ( ontology:television_program ) } } } } . FILTER ( ?c < ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2807
P17
Q7275
USER
Which states are that administrative territory situated in ?
(Q2807,P17,c(Q7275))
action filter_type
action find
entity Q2807
relation P17
type Q7275
['Q2807', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { resource:Q2807 property:P17 ?f . ?f rdf:type ontology:Q7275 }
Madrid
action filter_type
action find
entity Madrid
relation country
type state
['Madrid', 'country', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { resource:Madrid property:country ?f . ?f rdf:type ontology:state }
[]
state
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q1085 Q72 Q2807
(Q1085,P17,c(Q7275)) (Q72,P17,c(Q7275)) (Q2807,P17,c(Q7275))
[ANSWER]
['Q1085', 'P17', {'concept': 'Q7275'}] ['Q72', 'P17', {'concept': 'Q7275'}] ['Q2807', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { resource:Q2807 property:P17 ?f . ?f rdf:type ontology:Q7275 }
Prague Zürich Madrid
Did you mean Prague ?
Prague
['Prague', 'country', {'concept': 'state'}] ['Zürich', 'country', {'concept': 'state'}] ['Madrid', 'country', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { resource:Madrid property:country ?f . ?f rdf:type ontology:state }
[]
Simple Question (Coreferenced)
USER
No, I meant Madrid. Could you tell me the answer for that?
(Q2807,P17,c(Q7275))
Q2807
['Q2807', 'P17', {'concept': 'Q7275'}]
['Madrid', 'country', {'concept': 'state'}]
[]
Q179293 Q217196
SYSTEM
Kingdom of Castile, Crown of Castile
Q179293 Q217196
(Q2807,P17,c(Q7275))
action filter_type
action find
entity Q2807
relation P17
type Q7275
That administrative territory are situated in [ANSWERS]
['Q2807', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { resource:Q2807 property:P17 ?f . ?f rdf:type ontology:Q7275 }
Kingdom of Castile Crown of Castile
That administrative territory are situated in Kingdom of Castile and Crown of Castile
Kingdom of Castile Crown of Castile
action filter_type
action find
entity Madrid
relation country
type state
['Madrid', 'country', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { resource:Madrid property:country ?f . ?f rdf:type ontology:state }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2996063 Q217196
P36
Q56061
USER
Which administrative territories are called the capital of Crown of Castile or Las Villuercas ?
OR((Q217196,P36,c(Q56061)), (Q2996063,P36,c(Q56061)))
action filter_type
action union
action find
entity Q217196
relation P36
action find
entity Q2996063
relation P36
type Q56061
{'OR': [['Q217196', 'P36', {'concept': 'Q56061'}], ['Q2996063', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q2996063 property:P36 ?x } UNION { resource:Q217196 property:P36 ?x } } . ?x rdf:type ontology:Q56061 }
Las Villuercas Crown of Castile
action filter_type
action union
action find
entity Crown of Castile
relation capital
action find
entity Las Villuercas
relation capital
type administrative territorial entity
{'OR': [['Crown of Castile', 'capital', {'concept': 'administrative territorial entity'}], ['Las Villuercas', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Las_Villuercas property:capital ?x } UNION { resource:Crown_of_Castile property:capital ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q695504 Q9580
SYSTEM
Guadalupe, Burgos
Q695504 Q9580
OR((Q217196,P36,c(Q56061)), (Q2996063,P36,c(Q56061)))
action filter_type
action union
action find
entity Q217196
relation P36
action find
entity Q2996063
relation P36
type Q56061
[ANSWERS] are called the capital of Crown of Castile or Las Villuercas
{'OR': [['Q217196', 'P36', {'concept': 'Q56061'}], ['Q2996063', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q2996063 property:P36 ?x } UNION { resource:Q217196 property:P36 ?x } } . ?x rdf:type ontology:Q56061 }
Guadalupe Burgos
Guadalupe and Burgos are called the capital of Crown of Castile or Las Villuercas
Guadalupe Burgos
action filter_type
action union
action find
entity Crown of Castile
relation capital
action find
entity Las Villuercas
relation capital
type administrative territorial entity
{'OR': [['Crown of Castile', 'capital', {'concept': 'administrative territorial entity'}], ['Las Villuercas', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Las_Villuercas property:capital ?x } UNION { resource:Crown_of_Castile property:capital ?x } } . ?x rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q695504
P21 P20
Q502895
USER
Which people expired at Guadalupe and have the gender as male ?
AND((c(Q502895),P20,Q695504), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q695504
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q695504'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P20 resource:Q695504 }
male Guadalupe
action filter_type
action intersection
action find_reverse
entity Guadalupe
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Guadalupe'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:place_of_death resource:Guadalupe }
[]
common name
Q1975522
SYSTEM
Alonso Enríquez
Q1975522
AND((c(Q502895),P20,Q695504), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q695504
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] expired at Guadalupe and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q695504'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P21 resource:Q6581097 . ?i property:P20 resource:Q695504 }
Alonso Enríquez
Alonso Enríquez expired at Guadalupe and have the gender as male
Alonso Enríquez
action filter_type
action intersection
action find_reverse
entity Guadalupe
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Guadalupe'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:gender resource:male . ?i property:place_of_death resource:Guadalupe }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1975522 Q674418 Q39317
P27
Q15617994
USER
Is Alonso Enríquez a civilian of Steinakirchen am Forst and Cremenaga ?
(Q1975522,P27,Q674418) (Q1975522,P27,Q39317)
action is_in
entity Q1975522
action intersection
action find_reverse
entity Q674418
relation P27
action find_reverse
entity Q39317
relation P27
['Q1975522', 'P27', 'Q674418'] ['Q1975522', 'P27', 'Q39317']
ASK WHERE { resource:Q1975522 property:P27 resource:Q674418 . resource:Q1975522 property:P27 resource:Q39317 }
Alonso Enríquez Steinakirchen am Forst Cremenaga
action is_in
entity Alonso Enríquez
action intersection
action find_reverse
entity Steinakirchen am Forst
relation country of citizenship
action find_reverse
entity Cremenaga
relation country of citizenship
['Alonso Enríquez', 'country of citizenship', 'Steinakirchen am Forst'] ['Alonso Enríquez', 'country of citizenship', 'Cremenaga']
ASK WHERE { resource:Alonso_Enríquez property:country_of_citizenship resource:Steinakirchen_am_Forst . resource:Alonso_Enríquez property:country_of_citizenship resource:Cremenaga }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1975522,P27,Q674418) (Q1975522,P27,Q39317)
action is_in
entity Q1975522
action intersection
action find_reverse
entity Q674418
relation P27
action find_reverse
entity Q39317
relation P27
[ANSWER]
['Q1975522', 'P27', 'Q674418'] ['Q1975522', 'P27', 'Q39317']
ASK WHERE { resource:Q1975522 property:P27 resource:Q674418 . resource:Q1975522 property:P27 resource:Q39317 }
No
action is_in
entity Alonso Enríquez
action intersection
action find_reverse
entity Steinakirchen am Forst
relation country of citizenship
action find_reverse
entity Cremenaga
relation country of citizenship
['Alonso Enríquez', 'country of citizenship', 'Steinakirchen am Forst'] ['Alonso Enríquez', 'country of citizenship', 'Cremenaga']
ASK WHERE { resource:Alonso_Enríquez property:country_of_citizenship resource:Steinakirchen_am_Forst . resource:Alonso_Enríquez property:country_of_citizenship resource:Cremenaga }
[]