Simple Question (Direct)
Simple Question
Q1407292
P19
Q56061
USER
Which administrative territory was Walter Berlini born at ?
(Q1407292,P19,c(Q56061))
action filter_type
action find
entity Q1407292
relation P19
type Q56061
['Q1407292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1407292 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Walter Berlini
action filter_type
action find
entity Walter Berlini
relation place of birth
type administrative territorial entity
['Walter Berlini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Walter_Berlini property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q111804
SYSTEM
Coriano
Q111804
(Q1407292,P19,c(Q56061))
action filter_type
action find
entity Q1407292
relation P19
type Q56061
Walter Berlini was born in [ANSWER]
['Q1407292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1407292 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Coriano
Walter Berlini was born in Coriano
Coriano
action filter_type
action find
entity Walter Berlini
relation place of birth
type administrative territorial entity
['Walter Berlini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Walter_Berlini property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1407292
P21
Q290
USER
Which sex does that person have ?
(Q111804,P21,c(Q290))
action filter_type
action find
entity Q1407292
relation P21
type Q290
['Q111804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1407292 property:P21 ?u . ?u rdf:type ontology:Q290 }
Walter Berlini
action filter_type
action find
entity Walter Berlini
relation gender
type sex
['Coriano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Walter_Berlini property:gender ?u . ?u rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q111804,P21,c(Q290))
action filter_type
action find
entity Q1407292
relation P21
type Q290
That person has a [ANSWER]
['Q111804', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { resource:Q1407292 property:P21 ?u . ?u rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Walter Berlini
relation gender
type sex
['Coriano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { resource:Walter_Berlini property:gender ?u . ?u rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
How many administrative territories are atmost 2 holidays and people a patron saint of ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action atmost
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 2
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?i WHERE { { ?i property:P417 ?a . ?i rdf:type ontology:Q56061 . ?a rdf:type ontology:Q1445650 } UNION { ?i property:P417 ?a . ?i rdf:type ontology:Q56061 . ?a rdf:type ontology:Q502895 } } GROUP BY ?i } . FILTER ( ?q <= 2 ) }
action count
action atmost
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 2
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?i WHERE { { ?i property:patron_saint ?a . ?i rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:holiday } UNION { ?i property:patron_saint ?a . ?i rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:common_name } } GROUP BY ?i } . FILTER ( ?q <= 2 ) }
[]
holiday common name administrative territorial entity
SYSTEM
130
Q264716 Q5818 Q187352 Q11974 Q12883498 Q40801 Q212841 Q54494 Q454875 Q14209773 Q50057 Q34111 Q117388 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q6221 Q2028 Q46718 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q54119 Q53825 Q200908 Q15090 Q81258 Q36647 Q13375 Q47074 Q59257 Q15088 Q4361 Q2914723 Q10305 Q53265 Q6340 Q101229 Q100129 Q52547 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q495798 Q82208 Q116440 Q2284679 Q3557616 Q374108 Q3562704 Q428018 Q220 Q90 Q496890 Q297224 Q431389 Q5991813 Q380189 Q617 Q470461 Q259039 Q733574 Q54556 Q932648 Q487786 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q100943 Q51400 Q504216 Q244193 Q1747381 Q51315 Q492475 Q334577 Q210470 Q39493 Q11959 Q329984 Q47034 Q52215 Q15095 Q215080 Q270288 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q102820 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action count
action atmost
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 2
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?i WHERE { { ?i property:P417 ?a . ?i rdf:type ontology:Q56061 . ?a rdf:type ontology:Q1445650 } UNION { ?i property:P417 ?a . ?i rdf:type ontology:Q56061 . ?a rdf:type ontology:Q502895 } } GROUP BY ?i } . FILTER ( ?q <= 2 ) }
Carzano Córdoba Kavala Las Palmas de Gran Canaria Pano Platres Borca di Cadore Drama Belvedere di Spinello Amarante Municipality San Lorenzo de' Picenardi Cagnano Amiterno Pozzallo Strangolagalli Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Brescia Verona Carrè Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino San Pedro Altilia Rethymno Lleida Padula Cork Pisa Aielli Montefortino Tarragona Curitiba Nemausus Zaragoza Gemona del Friuli Castel Giorgio Martinengo Calvenzano Campomaggiore Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Brolo Kastritsa Arpino General Alvear, Mendoza Platres Altrei Molista Mölten Rome Paris Balestrate Padergnone Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Giardinello Istiaia Africo Didymoteicho Orihuela Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Sorbolo Spoltore St. Martin in Passeier Cagno Polykastro Villamagna Valença Quetzaltenango Katerini Cantello Alicante Úbeda Espoo Tuglie Albacete Machala Riccò del Golfo di Spezia Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Nibbiano Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
130
action count
action atmost
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
value 2
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?i WHERE { { ?i property:patron_saint ?a . ?i rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:holiday } UNION { ?i property:patron_saint ?a . ?i rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:common_name } } GROUP BY ?i } . FILTER ( ?q <= 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q111804
P17
Q15617994
USER
Which administrative territory does Coriano belong to ?
(Q111804,P17,c(Q15617994))
action filter_type
action find
entity Q111804
relation P17
type Q15617994
['Q111804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q111804 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Coriano
action filter_type
action find
entity Coriano
relation country
type designation for an administrative territorial entity
['Coriano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Coriano property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q111804,P17,c(Q15617994))
action filter_type
action find
entity Q111804
relation P17
type Q15617994
Coriano belongs to [ANSWER]
['Q111804', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q111804 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Italy
Coriano belongs to Italy
Italy
action filter_type
action find
entity Coriano
relation country
type designation for an administrative territorial entity
['Coriano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Coriano property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26663139
Q15617994
USER
And also tell me about Sycamore House?
(Q26663139,P17,c(Q15617994))
action filter_type
action find
entity Q26663139
relation P17
type Q15617994
['Q26663139', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q26663139 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Sycamore House
action filter_type
action find
entity Sycamore House
relation country
type designation for an administrative territorial entity
['Sycamore House', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sycamore_House property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26663139,P17,c(Q15617994))
action filter_type
action find
entity Q26663139
relation P17
type Q15617994
[ANSWER]
['Q26663139', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q26663139 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom
action filter_type
action find
entity Sycamore House
relation country
type designation for an administrative territorial entity
['Sycamore House', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Sycamore_House property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q81299 Q37143
P463
Q484652
USER
Is United Kingdom a member of Organization for Security and Co-operation in Europe and G8 ?
(Q145,P463,Q81299) (Q145,P463,Q37143)
action is_in
entity Q145
action intersection
action find_reverse
entity Q81299
relation P463
action find_reverse
entity Q37143
relation P463
['Q145', 'P463', 'Q81299'] ['Q145', 'P463', 'Q37143']
ASK WHERE { resource:Q145 property:P463 resource:Q81299 . resource:Q145 property:P463 resource:Q37143 }
United Kingdom Organization for Security and Co-operation in Europe G8
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Organization for Security and Co-operation in Europe
relation member of
action find_reverse
entity G8
relation member of
['United Kingdom', 'member of', 'Organization for Security and Co-operation in Europe'] ['United Kingdom', 'member of', 'G8']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organization_for_Security_and_Co-operation_in_Europe . resource:United_Kingdom property:member_of resource:G8 }
[]
international organization
SYSTEM
YES
(Q145,P463,Q81299) (Q145,P463,Q37143)
action is_in
entity Q145
action intersection
action find_reverse
entity Q81299
relation P463
action find_reverse
entity Q37143
relation P463
[ANSWER]
['Q145', 'P463', 'Q81299'] ['Q145', 'P463', 'Q37143']
ASK WHERE { resource:Q145 property:P463 resource:Q81299 . resource:Q145 property:P463 resource:Q37143 }
Yes
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Organization for Security and Co-operation in Europe
relation member of
action find_reverse
entity G8
relation member of
['United Kingdom', 'member of', 'Organization for Security and Co-operation in Europe'] ['United Kingdom', 'member of', 'G8']
ASK WHERE { resource:United_Kingdom property:member_of resource:Organization_for_Security_and_Co-operation_in_Europe . resource:United_Kingdom property:member_of resource:G8 }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q27
P530
Q15617994
USER
Does Ireland hold diplomatic relationship with Italy ?
(Q38,P530,Q27)
action is_in
entity Q27
action find
entity Q38
relation P530
['Q38', 'P530', 'Q27']
ASK WHERE { resource:Q38 property:P530 resource:Q27 }
Italy Ireland
action is_in
entity Ireland
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Ireland']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Ireland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q27)
action is_in
entity Q27
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q27']
ASK WHERE { resource:Q38 property:P530 resource:Q27 }
Yes
action is_in
entity Ireland
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Ireland']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Ireland }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P159
Q4830453
USER
Which business enterprises have their head office location at Italy ?
(c(Q4830453),P159,Q38)
action filter_type
action find_reverse
entity Q38
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q38']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q38 . ?h rdf:type ontology:Q4830453 }
Italy
action filter_type
action find_reverse
entity Italy
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Italy']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Italy . ?h rdf:type ontology:business_enterprise }
[]
business enterprise
Q3502873 Q355626 Q1331424
SYSTEM
Telepace, Adem, Elka
Q355626 Q3502873 Q20009912 Q1331424
(c(Q4830453),P159,Q38)
action filter_type
action find_reverse
entity Q38
relation P159
type Q4830453
[ANSWERS] have their head office location at Italy
[{'concept': 'Q4830453'}, 'P159', 'Q38']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q38 . ?h rdf:type ontology:Q4830453 }
Adem Telepace Society of Trusts and Investments Elka
Telepace, Adem and Elka have their head office location at Italy
Telepace Adem Elka
action filter_type
action find_reverse
entity Italy
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Italy']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Italy . ?h rdf:type ontology:business_enterprise }
[]