Simple Question (Direct)
Simple Question
Q5370072
P97
Q4164871
USER
What was the heriditary title held by Oda Nobutoshi ?
(Q5370072,P97,c(Q4164871))
action filter_type
action find
entity Q5370072
relation P97
type Q4164871
['Q5370072', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?p WHERE { resource:Q5370072 property:P97 ?p . ?p rdf:type ontology:Q4164871 }
Oda Nobutoshi
action filter_type
action find
entity Oda Nobutoshi
relation noble title
type position
['Oda Nobutoshi', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?p WHERE { resource:Oda_Nobutoshi property:noble_title ?p . ?p rdf:type ontology:position }
[]
position
Q185902
SYSTEM
viscount
Q185902
(Q5370072,P97,c(Q4164871))
action filter_type
action find
entity Q5370072
relation P97
type Q4164871
The heriditary title held by Oda Nobutoshi was a [ANSWER]
['Q5370072', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?p WHERE { resource:Q5370072 property:P97 ?p . ?p rdf:type ontology:Q4164871 }
viscount
The heriditary title held by Oda Nobutoshi was a viscount
viscount
action filter_type
action find
entity Oda Nobutoshi
relation noble title
type position
['Oda Nobutoshi', 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?p WHERE { resource:Oda_Nobutoshi property:noble_title ?p . ?p rdf:type ontology:position }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5370072
P21
Q290
USER
What is the sex of Oda Nobutoshi ?
(Q5370072,P21,c(Q290))
action filter_type
action find
entity Q5370072
relation P21
type Q290
['Q5370072', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q5370072 property:P21 ?d }
Oda Nobutoshi
action filter_type
action find
entity Oda Nobutoshi
relation gender
type sex
['Oda Nobutoshi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Oda_Nobutoshi property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5370072,P21,c(Q290))
action filter_type
action find
entity Q5370072
relation P21
type Q290
The sex of Oda Nobutoshi is the [ANSWER]
['Q5370072', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q5370072 property:P21 ?d }
male
The sex of Oda Nobutoshi is the male
male
action filter_type
action find
entity Oda Nobutoshi
relation gender
type sex
['Oda Nobutoshi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Oda_Nobutoshi property:gender ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5370072
P734
Q82799
USER
Which name is associated with that person ?
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q5370072
relation P734
type Q82799
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q5370072 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Oda Nobutoshi
action filter_type
action find
entity Oda Nobutoshi
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Oda_Nobutoshi property:family_name ?u . ?u rdf:type ontology:name }
[]
name
Q16880652
SYSTEM
Oda
Q16880652
(Q6581097,P734,c(Q82799))
action filter_type
action find
entity Q5370072
relation P734
type Q82799
[ANSWER] is associated with that person
['Q6581097', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?u WHERE { resource:Q5370072 property:P734 ?u . ?u rdf:type ontology:Q82799 }
Oda
Oda is associated with that person
Oda
action filter_type
action find
entity Oda Nobutoshi
relation family name
type name
['male', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?u WHERE { resource:Oda_Nobutoshi property:family_name ?u . ?u rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q16880652 Q3845987
P734
Q502895
USER
Does Marco Capanna have that one as family name ?
(Q3845987,P734,Q16880652)
action is_in
entity Q3845987
action find
entity Q16880652
relation P734
['Q3845987', 'P734', 'Q16880652']
ASK WHERE { resource:Q16880652 property:P734 resource:Q3845987 }
Oda Marco Capanna
action is_in
entity Marco Capanna
action find
entity Oda
relation family name
['Marco Capanna', 'family name', 'Oda']
ASK WHERE { resource:Oda property:family_name resource:Marco_Capanna }
[]
common name
SYSTEM
NO
(Q3845987,P734,Q16880652)
action is_in
entity Q3845987
action find
entity Q16880652
relation P734
[ANSWER]
['Q3845987', 'P734', 'Q16880652']
ASK WHERE { resource:Q16880652 property:P734 resource:Q3845987 }
No
action is_in
entity Marco Capanna
action find
entity Oda
relation family name
['Marco Capanna', 'family name', 'Oda']
ASK WHERE { resource:Oda property:family_name resource:Marco_Capanna }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q11060274 Q386724
USER
Which names are expressed in max number of prints or works ?
(c(Q11060274)|c(Q386724),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
[[{'concept': 'Q11060274'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?u ) WHERE { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } } GROUP BY ?e } . FILTER ( ?u = ?s ) . { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } . ?z rdf:type ?a } GROUP BY ?y } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type print
action find_reverse_tuple_counts
relation depicts
type name
type work
[[{'concept': 'print'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?u ) WHERE { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:print ) ( ontology:work ) } } GROUP BY ?e } . FILTER ( ?u = ?s ) . { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:print ) ( ontology:work ) } . ?z rdf:type ?a } GROUP BY ?y } } }
[]
name print work
Q5
SYSTEM
human
Q5
(c(Q11060274)|c(Q386724),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
[ANSWER] is expressed in max number of prints or works
[[{'concept': 'Q11060274'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?u ) WHERE { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } } GROUP BY ?e } . FILTER ( ?u = ?s ) . { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:Q11060274 ) ( ontology:Q386724 ) } . ?z rdf:type ?a } GROUP BY ?y } } }
human
Human is expressed in max number of prints or works
human
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type print
action find_reverse_tuple_counts
relation depicts
type name
type work
[[{'concept': 'print'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?r ) AS ?u ) WHERE { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:print ) ( ontology:work ) } } GROUP BY ?e } . FILTER ( ?u = ?s ) . { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?k ) WHERE { VALUES ( ?a ) { ( ontology:print ) ( ontology:work ) } . ?z rdf:type ?a } GROUP BY ?y } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q26741034
P361
Q151885 Q9332 Q82799
USER
How many names are parts of more number of concepts and behaviors than Patti ?
(c(Q82799),P361,c(Q151885)|c(Q9332))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
action count
action filter_multi_types
action find
entity Q26741034
relation P361
type Q151885
type Q9332
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } . ?o rdf:type ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q26741034 property:P361 ?p . { { ?p rdf:type ontology:Q151885 } UNION { ?p rdf:type ontology:Q9332 } } } } . FILTER ( ?h > ?u ) }
Patti
action count
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
action count
action filter_multi_types
action find
entity Patti
relation part of
type concept
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:concept ) ( ontology:behavior ) } . ?o rdf:type ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Patti property:part_of ?p . { { ?p rdf:type ontology:concept } UNION { ?p rdf:type ontology:behavior } } } } . FILTER ( ?h > ?u ) }
[]
concept behavior name
SYSTEM
4
Q1058384 Q382004 Q746990 Q876933
(c(Q82799),P361,c(Q151885)|c(Q9332))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
action count
action filter_multi_types
action find
entity Q26741034
relation P361
type Q151885
type Q9332
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } . ?o rdf:type ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Q26741034 property:P361 ?p . { { ?p rdf:type ontology:Q151885 } UNION { ?p rdf:type ontology:Q9332 } } } } . FILTER ( ?h > ?u ) }
hakham Afa-Negus Brahman magi
4
action count
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
action count
action filter_multi_types
action find
entity Patti
relation part of
type concept
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?o ) AS ?h ) WHERE { VALUES ( ?k ) { ( ontology:concept ) ( ontology:behavior ) } . ?o rdf:type ?k } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { resource:Patti property:part_of ?p . { { ?p rdf:type ontology:concept } UNION { ?p rdf:type ontology:behavior } } } } . FILTER ( ?h > ?u ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q24090443
P361
Q151885 Q9332 Q82799
USER
And how about Matsuo?
(c(Q82799),P361,c(Q151885)|c(Q9332))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
action count
action filter_multi_types
action find
entity Q24090443
relation P361
type Q151885
type Q9332
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?m WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q24090443 property:P361 ?o . { { ?o rdf:type ontology:Q151885 } UNION { ?o rdf:type ontology:Q9332 } } } } . FILTER ( ?e > ?l ) }
Matsuo
action count
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
action count
action filter_multi_types
action find
entity Matsuo
relation part of
type concept
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?m WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:concept ) ( ontology:behavior ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Matsuo property:part_of ?o . { { ?o rdf:type ontology:concept } UNION { ?o rdf:type ontology:behavior } } } } . FILTER ( ?e > ?l ) }
[]
concept behavior name
SYSTEM
4
Q1058384 Q382004 Q746990 Q876933
(c(Q82799),P361,c(Q151885)|c(Q9332))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
action count
action filter_multi_types
action find
entity Q24090443
relation P361
type Q151885
type Q9332
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?m WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:Q151885 ) ( ontology:Q9332 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q24090443 property:P361 ?o . { { ?o rdf:type ontology:Q151885 } UNION { ?o rdf:type ontology:Q9332 } } } } . FILTER ( ?e > ?l ) }
hakham Afa-Negus Brahman magi
4
action count
action greater
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
action count
action filter_multi_types
action find
entity Matsuo
relation part of
type concept
type behavior
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) ?m WHERE { ?h rdf:type ?n . VALUES ( ?n ) { ( ontology:concept ) ( ontology:behavior ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Matsuo property:part_of ?o . { { ?o rdf:type ontology:concept } UNION { ?o rdf:type ontology:behavior } } } } . FILTER ( ?e > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q340169 Q386724
USER
How many names are expressed in exactly 1 medias or works ?
(c(Q340169)|c(Q386724),P180,c(Q82799))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
value 1
[[{'concept': 'Q340169'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:P180 ?x . ?u rdf:type ontology:Q340169 . ?x rdf:type ontology:Q82799 } UNION { ?u property:P180 ?x . ?x rdf:type ontology:Q82799 . ?u rdf:type ontology:Q386724 } } GROUP BY ?x } . FILTER ( ?t = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type work
value 1
[[{'concept': 'media'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:depicts ?x . ?u rdf:type ontology:media . ?x rdf:type ontology:name } UNION { ?u property:depicts ?x . ?x rdf:type ontology:name . ?u rdf:type ontology:work } } GROUP BY ?x } . FILTER ( ?t = 1 ) }
[]
name media work
SYSTEM
8
Q830 Q3736439 Q7368 Q7369 Q24067392 Q3537778 Q1367 Q9394
(c(Q340169)|c(Q386724),P180,c(Q82799))
action count
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q340169
action find_reverse_tuple_counts
relation P180
type Q82799
type Q386724
value 1
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:P180 ?x . ?u rdf:type ontology:Q340169 . ?x rdf:type ontology:Q82799 } UNION { ?u property:P180 ?x . ?x rdf:type ontology:Q82799 . ?u rdf:type ontology:Q386724 } } GROUP BY ?x } . FILTER ( ?t = 1 ) }
cattle duck Ovis aries dolphin Boy donkeys monkey rabbit
8
action count
action equal
action union
action find_reverse_tuple_counts
relation depicts
type name
type media
action find_reverse_tuple_counts
relation depicts
type name
type work
value 1
[[{'concept': 'media'}, {'concept': 'work'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:depicts ?x . ?u rdf:type ontology:media . ?x rdf:type ontology:name } UNION { ?u property:depicts ?x . ?x rdf:type ontology:name . ?u rdf:type ontology:work } } GROUP BY ?x } . FILTER ( ?t = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q447059 Q5370072
P20
Q56061
USER
Which administrative territories did the expiration of Oda Nobutoshi or Dulce María Loynaz occur ?
OR((Q5370072,P20,c(Q56061)), (Q447059,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5370072
relation P20
action find
entity Q447059
relation P20
type Q56061
{'OR': [['Q5370072', 'P20', {'concept': 'Q56061'}], ['Q447059', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5370072 property:P20 ?j } UNION { resource:Q447059 property:P20 ?j } } . ?j rdf:type ontology:Q56061 }
Dulce María Loynaz Oda Nobutoshi
action filter_type
action union
action find
entity Oda Nobutoshi
relation place of death
action find
entity Dulce María Loynaz
relation place of death
type administrative territorial entity
{'OR': [['Oda Nobutoshi', 'place of death', {'concept': 'administrative territorial entity'}], ['Dulce María Loynaz', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Oda_Nobutoshi property:place_of_death ?j } UNION { resource:Dulce_María_Loynaz property:place_of_death ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490 Q1563
SYSTEM
Tokyo, Havana
Q1490 Q1563
OR((Q5370072,P20,c(Q56061)), (Q447059,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5370072
relation P20
action find
entity Q447059
relation P20
type Q56061
The expiration of Oda Nobutoshi or Dulce María Loynaz occurred in [ANSWERS]
{'OR': [['Q5370072', 'P20', {'concept': 'Q56061'}], ['Q447059', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5370072 property:P20 ?j } UNION { resource:Q447059 property:P20 ?j } } . ?j rdf:type ontology:Q56061 }
Tokyo Havana
The expiration of Oda Nobutoshi or Dulce María Loynaz occurred in Tokyo and Havana
Tokyo Havana
action filter_type
action union
action find
entity Oda Nobutoshi
relation place of death
action find
entity Dulce María Loynaz
relation place of death
type administrative territorial entity
{'OR': [['Oda Nobutoshi', 'place of death', {'concept': 'administrative territorial entity'}], ['Dulce María Loynaz', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Oda_Nobutoshi property:place_of_death ?j } UNION { resource:Dulce_María_Loynaz property:place_of_death ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P361
Q56061 Q82794
USER
How many administrative territories and geographic regions are that administrative territory a part of ?
(Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1563,P361,c(Q56061)) (Q1563,P361,c(Q82794))
['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1563', 'P361', {'concept': 'Q56061'}] ['Q1563', 'P361', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q1967008 property:P361 ?z } UNION { resource:Q1967008 property:P361 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82794 }
['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Havana', 'part of', {'concept': 'administrative territorial entity'}] ['Havana', 'part of', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Havana property:part_of ?z } UNION { resource:Havana property:part_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:geographic_region }
[]
administrative territorial entity geographic region
Quantitative|Count|Mult. entity type|Clarification
Q1490
SYSTEM
Did you mean Tokyo ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q1967008 property:P361 ?z } UNION { resource:Q1967008 property:P361 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82794 }
Did you mean Tokyo ?
Tokyo
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Havana property:part_of ?z } UNION { resource:Havana property:part_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:geographic_region }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1563,P361,c(Q56061)) (Q1563,P361,c(Q82794))
['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1563', 'P361', {'concept': 'Q56061'}] ['Q1563', 'P361', {'concept': 'Q82794'}]
['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Havana', 'part of', {'concept': 'administrative territorial entity'}] ['Havana', 'part of', {'concept': 'geographic region'}]
[]
SYSTEM
1 administrative territories and 1 geographic regions
Q132480 Q328121
(Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1490,P361,c(Q56061)) (Q1490,P361,c(Q82794)) (Q1563,P361,c(Q56061)) (Q1563,P361,c(Q82794))
[ANSWER]
['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1490', 'P361', {'concept': 'Q56061'}] ['Q1490', 'P361', {'concept': 'Q82794'}] ['Q1563', 'P361', {'concept': 'Q56061'}] ['Q1563', 'P361', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q396867 property:P361 ?z } UNION { resource:Q396867 property:P361 ?y } UNION { resource:Q1967008 property:P361 ?z } UNION { resource:Q1967008 property:P361 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q82794 }
Kantō region Greater Tokyo Area
1 administrative territories and 1 geographic regions
['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Tokyo', 'part of', {'concept': 'administrative territorial entity'}] ['Tokyo', 'part of', {'concept': 'geographic region'}] ['Havana', 'part of', {'concept': 'administrative territorial entity'}] ['Havana', 'part of', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Tokyo property:part_of ?z } UNION { resource:Tokyo property:part_of ?y } UNION { resource:Havana property:part_of ?z } UNION { resource:Havana property:part_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:geographic_region }
[]