Simple Question (Direct)
Simple Question
Q2192024
P57
Q502895
USER
Who directed Rabat ?
(Q2192024,P57,c(Q502895))
action filter_type
action find
entity Q2192024
relation P57
type Q502895
['Q2192024', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q2192024 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Rabat
action filter_type
action find
entity Rabat
relation director
type common name
['Rabat', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Rabat property:director ?z . ?z rdf:type ontology:common_name }
[]
common name
Q15877011
SYSTEM
Jim Taihuttu
Q15877011
(Q2192024,P57,c(Q502895))
action filter_type
action find
entity Q2192024
relation P57
type Q502895
[ANSWER] directed Rabat
['Q2192024', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q2192024 property:P57 ?z . ?z rdf:type ontology:Q502895 }
Jim Taihuttu
Jim Taihuttu directed Rabat
Jim Taihuttu
action filter_type
action find
entity Rabat
relation director
type common name
['Rabat', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Rabat property:director ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2192024
P495
Q15617994
USER
Where did Rabat originate ?
(Q2192024,P495,c(Q15617994))
action filter_type
action find
entity Q2192024
relation P495
type Q15617994
['Q2192024', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q2192024 property:P495 ?u }
Rabat
action filter_type
action find
entity Rabat
relation country of origin
type designation for an administrative territorial entity
['Rabat', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rabat property:country_of_origin ?u }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q2192024,P495,c(Q15617994))
action filter_type
action find
entity Q2192024
relation P495
type Q15617994
Rabat originated in [ANSWER]
['Q2192024', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q2192024 property:P495 ?u }
Netherlands
Rabat originated in Netherlands
Netherlands
action filter_type
action find
entity Rabat
relation country of origin
type designation for an administrative territorial entity
['Rabat', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rabat property:country_of_origin ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q55 Q19349931
P17
Q34442
USER
Is Molslaan situated in that administrative territory ?
(Q19349931,P17,Q55)
action is_in
entity Q55
action find
entity Q19349931
relation P17
['Q19349931', 'P17', 'Q55']
ASK WHERE { resource:Q19349931 property:P17 resource:Q55 }
Netherlands Molslaan
action is_in
entity Netherlands
action find
entity Molslaan
relation country
['Molslaan', 'country', 'Netherlands']
ASK WHERE { resource:Molslaan property:country resource:Netherlands }
[]
road
SYSTEM
YES
(Q19349931,P17,Q55)
action is_in
entity Q55
action find
entity Q19349931
relation P17
[ANSWER]
['Q19349931', 'P17', 'Q55']
ASK WHERE { resource:Q19349931 property:P17 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Molslaan
relation country
['Molslaan', 'country', 'Netherlands']
ASK WHERE { resource:Molslaan property:country resource:Netherlands }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q18426
P6
Q502895
USER
How many people do Netherlands or The Bronx serve as the head of government for ?
(Q55,P6,c(Q502895)) (Q18426,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q55
relation P6
type Q502895
action filter_type
action find
entity Q18426
relation P6
type Q502895
['Q55', 'P6', {'concept': 'Q502895'}] ['Q18426', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { resource:Q55 property:P6 ?a . ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q502895 . resource:Q18426 property:P6 ?a } }
Netherlands The Bronx
action count
action union
action filter_type
action find
entity Netherlands
relation head of government
type common name
action filter_type
action find
entity The Bronx
relation head of government
type common name
['Netherlands', 'head of government', {'concept': 'common name'}] ['The Bronx', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { resource:Netherlands property:head_of_government ?a . ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:common_name . resource:The_Bronx property:head_of_government ?a } }
[]
common name
SYSTEM
20
Q693053 Q686476 Q7376472 Q159840 Q345481 Q471204 Q781813 Q719701 Q634025 Q12769 Q380970 Q318334 Q221411 Q318320 Q133386 Q57792 Q735519 Q736026 Q983186 Q951705
(Q55,P6,c(Q502895)) (Q18426,P6,c(Q502895))
action count
action union
action filter_type
action find
entity Q55
relation P6
type Q502895
action filter_type
action find
entity Q18426
relation P6
type Q502895
[ANSWER]
['Q55', 'P6', {'concept': 'Q502895'}] ['Q18426', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { resource:Q55 property:P6 ?a . ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q502895 . resource:Q18426 property:P6 ?a } }
Dirk Jan de Geer Hendrikus Colijn Rubén Díaz, Jr. Ruud Lubbers Piet de Jong Barend Biesheuvel Jan de Quay Victor Marijnen Wim Schermerhorn Willem Drees Jelle Zijlstra Dries van Agt Wim Kok Joop den Uyl Jan Peter Balkenende Mark Rutte Louis Beel Jo Cals Charles Ruijs de Beerenbrouck Pieter Sjoerds Gerbrandy
20
action count
action union
action filter_type
action find
entity Netherlands
relation head of government
type common name
action filter_type
action find
entity The Bronx
relation head of government
type common name
['Netherlands', 'head of government', {'concept': 'common name'}] ['The Bronx', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { resource:Netherlands property:head_of_government ?a . ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:common_name . resource:The_Bronx property:head_of_government ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q843
P530
Q1048835
USER
How many political territories have diplomatic relations with Netherlands and Pakistan ?
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q843)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q843
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q843']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P530 resource:Q55 . ?y rdf:type ontology:Q1048835 . ?y property:P530 resource:Q843 . ?y rdf:type ontology:Q1048835 }
Netherlands Pakistan
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Pakistan
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Pakistan']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:diplomatic_relation resource:Netherlands . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation resource:Pakistan . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q55) (c(Q1048835),P530,Q843)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q843
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q55'] [{'concept': 'Q1048835'}, 'P530', 'Q843']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P530 resource:Q55 . ?y rdf:type ontology:Q1048835 . ?y property:P530 resource:Q843 . ?y rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Pakistan
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Netherlands'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Pakistan']
SELECT DISTINCT ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:diplomatic_relation resource:Netherlands . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation resource:Pakistan . ?y rdf:type ontology:political_territorial_entity }
[]