Simple Question (Direct)
Simple Question
Q386031
P102
Q7210356
USER
Which party does Asbjørn Holm belong to ?
(Q386031,P102,c(Q7210356))
action filter_type
action find
entity Q386031
relation P102
type Q7210356
['Q386031', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q386031 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Asbjørn Holm
action filter_type
action find
entity Asbjørn Holm
relation member of political party
type political organization
['Asbjørn Holm', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Asbjørn_Holm property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
political organization
Q1771531
SYSTEM
Socialist People's Party
Q1771531
(Q386031,P102,c(Q7210356))
action filter_type
action find
entity Q386031
relation P102
type Q7210356
Asbjørn Holm belongs to [ANSWER]
['Q386031', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?b WHERE { resource:Q386031 property:P102 ?b . ?b rdf:type ontology:Q7210356 }
Socialist People's Party
Asbjørn Holm belongs to Socialist People's Party
Socialist People's Party
action filter_type
action find
entity Asbjørn Holm
relation member of political party
type political organization
['Asbjørn Holm', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?b WHERE { resource:Asbjørn_Holm property:member_of_political_party ?b . ?b rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories do that political organization belong to ?
(Q1771531,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1771531
relation P17
type Q15617994
['Q1771531', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q1771531 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity Socialist People's Party
relation country
type designation for an administrative territorial entity
["Socialist People's Party", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Socialist_People's_Party property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q20
(Q1771531,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1771531
relation P17
type Q15617994
[ANSWER]
['Q1771531', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q1771531 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Norway
1
action count
action filter_type
action find
entity Socialist People's Party
relation country
type designation for an administrative territorial entity
["Socialist People's Party", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Socialist_People's_Party property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q386031
P937
Q56061
USER
What is the location where Asbjørn Holm worked ?
(Q386031,P937,c(Q56061))
action filter_type
action find
entity Q386031
relation P937
type Q56061
['Q386031', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q386031 property:P937 ?q }
Asbjørn Holm
action filter_type
action find
entity Asbjørn Holm
relation work location
type administrative territorial entity
['Asbjørn Holm', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Asbjørn_Holm property:work_location ?q }
[]
administrative territorial entity
Q585
SYSTEM
Oslo
Q585
(Q386031,P937,c(Q56061))
action filter_type
action find
entity Q386031
relation P937
type Q56061
The location Asbjørn Holm worked is in [ANSWER]
['Q386031', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q386031 property:P937 ?q }
Oslo
The location Asbjørn Holm worked is in Oslo
Oslo
action filter_type
action find
entity Asbjørn Holm
relation work location
type administrative territorial entity
['Asbjørn Holm', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Asbjørn_Holm property:work_location ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q386031
P39
Q12737077
USER
What was the position held by Asbjørn Holm ?
(Q386031,P39,c(Q12737077))
action filter_type
action find
entity Q386031
relation P39
type Q12737077
['Q386031', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q386031 property:P39 ?d }
Asbjørn Holm
action filter_type
action find
entity Asbjørn Holm
relation position held
type occupation
['Asbjørn Holm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Asbjørn_Holm property:position_held ?d }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q386031,P39,c(Q12737077))
action filter_type
action find
entity Q386031
relation P39
type Q12737077
The position held by Asbjørn Holm was a [ANSWER]
['Q386031', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q386031 property:P39 ?d }
member of the Parliament of Norway
The position held by Asbjørn Holm was a member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Asbjørn Holm
relation position held
type occupation
['Asbjørn Holm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Asbjørn_Holm property:position_held ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q386031
P21
Q290
USER
Which sex does Asbjørn Holm belong to ?
(Q386031,P21,c(Q290))
action filter_type
action find
entity Q386031
relation P21
type Q290
['Q386031', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q386031 property:P21 ?a . ?a rdf:type ontology:Q290 }
Asbjørn Holm
action filter_type
action find
entity Asbjørn Holm
relation gender
type sex
['Asbjørn Holm', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Asbjørn_Holm property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q386031,P21,c(Q290))
action filter_type
action find
entity Q386031
relation P21
type Q290
Asbjørn Holm belongs to [ANSWER]
['Q386031', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?a WHERE { resource:Q386031 property:P21 ?a . ?a rdf:type ontology:Q290 }
male
Asbjørn Holm belongs to male
male
action filter_type
action find
entity Asbjørn Holm
relation gender
type sex
['Asbjørn Holm', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?a WHERE { resource:Asbjørn_Holm property:gender ?a . ?a rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q386031
P106
Q12737077
USER
What does that person do for a living ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q386031
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q386031 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Asbjørn Holm
action filter_type
action find
entity Asbjørn Holm
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Asbjørn_Holm property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q386031
relation P106
type Q12737077
[ANSWER] that person does for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q386031 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
politician
Politician that person does for a living
politician
action filter_type
action find
entity Asbjørn Holm
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Asbjørn_Holm property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories are exactly 1 holidays and people a patron saint of ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:Q1445650 . ?i rdf:type ontology:Q56061 . ?i property:P417 ?x } UNION { ?i rdf:type ontology:Q56061 . ?x rdf:type ontology:Q502895 . ?i property:P417 ?x } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
action equal
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 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:holiday . ?i rdf:type ontology:administrative_territorial_entity . ?i property:patron_saint ?x } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:common_name . ?i property:patron_saint ?x } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
[]
holiday common name administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action equal
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
value 1
[ANSWERS] are exactly 1 holidays and people a patron saint of
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:Q1445650 . ?i rdf:type ontology:Q56061 . ?i property:P417 ?x } UNION { ?i rdf:type ontology:Q56061 . ?x rdf:type ontology:Q502895 . ?i property:P417 ?x } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brolo Kastritsa Platres Altrei Molista Mölten Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan are exactly 1 holidays and people a patron saint of
Moscow Madrid Milan
action equal
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 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?o ) WHERE { { ?x rdf:type ontology:holiday . ?i rdf:type ontology:administrative_territorial_entity . ?i property:patron_saint ?x } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?x rdf:type ontology:common_name . ?i property:patron_saint ?x } } GROUP BY ?i } . FILTER ( ?o = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3111093
P190
Q56061
USER
Are Lowville (village), New York sister town of those ones ?
(Q3111093,P190,Q649) (Q3111093,P190,Q2807) (Q3111093,P190,Q490)
action is_in
entity prev_answer
action find
entity Q3111093
relation P190
['Q3111093', 'P190', 'Q649'] ['Q3111093', 'P190', 'Q2807'] ['Q3111093', 'P190', 'Q490']
ASK WHERE { VALUES ( ?w ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q3111093 property:P190 ?w }
Lowville (village), New York
action is_in
entity prev_answer
action find
entity Lowville (village), New York
relation sister city
['Lowville (village), New York', 'sister city', 'Moscow'] ['Lowville (village), New York', 'sister city', 'Madrid'] ['Lowville (village), New York', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?w ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Lowville_(village),_New_York property:sister_city ?w }
[]
administrative territorial entity
SYSTEM
NO
(Q3111093,P190,Q649) (Q3111093,P190,Q2807) (Q3111093,P190,Q490)
action is_in
entity prev_answer
action find
entity Q3111093
relation P190
[ANSWER]
['Q3111093', 'P190', 'Q649'] ['Q3111093', 'P190', 'Q2807'] ['Q3111093', 'P190', 'Q490']
ASK WHERE { VALUES ( ?w ) { ( resource:Q5818 ) ( resource:Q187352 ) ( resource:Q11974 ) } . resource:Q3111093 property:P190 ?w }
No
action is_in
entity prev_answer
action find
entity Lowville (village), New York
relation sister city
['Lowville (village), New York', 'sister city', 'Moscow'] ['Lowville (village), New York', 'sister city', 'Madrid'] ['Lowville (village), New York', 'sister city', 'Milan']
ASK WHERE { VALUES ( ?w ) { ( resource:Córdoba ) ( resource:Kavala ) ( resource:Las_Palmas_de_Gran_Canaria ) } . resource:Lowville_(village),_New_York property:sister_city ?w }
[]