Simple Question (Direct)
Simple Question
Q2543426
P186
Q5447188
USER
Which solution is used to craft Dancing Satyr of Mazara del Vallo ?
(Q2543426,P186,c(Q5447188))
action filter_type
action find
entity Q2543426
relation P186
type Q5447188
['Q2543426', 'P186', {'concept': 'Q5447188'}]
SELECT DISTINCT ?q WHERE { resource:Q2543426 property:P186 ?q . ?q rdf:type ontology:Q5447188 }
Dancing Satyr of Mazara del Vallo
action filter_type
action find
entity Dancing Satyr of Mazara del Vallo
relation material used
type solution
['Dancing Satyr of Mazara del Vallo', 'material used', {'concept': 'solution'}]
SELECT DISTINCT ?q WHERE { resource:Dancing_Satyr_of_Mazara_del_Vallo property:material_used ?q . ?q rdf:type ontology:solution }
[]
solution
Q34095
SYSTEM
bronze
Q34095
(Q2543426,P186,c(Q5447188))
action filter_type
action find
entity Q2543426
relation P186
type Q5447188
The [ANSWER] is used to craft Dancing Satyr of Mazara del Vallo
['Q2543426', 'P186', {'concept': 'Q5447188'}]
SELECT DISTINCT ?q WHERE { resource:Q2543426 property:P186 ?q . ?q rdf:type ontology:Q5447188 }
bronze
The bronze is used to craft Dancing Satyr of Mazara del Vallo
bronze
action filter_type
action find
entity Dancing Satyr of Mazara del Vallo
relation material used
type solution
['Dancing Satyr of Mazara del Vallo', 'material used', {'concept': 'solution'}]
SELECT DISTINCT ?q WHERE { resource:Dancing_Satyr_of_Mazara_del_Vallo property:material_used ?q . ?q rdf:type ontology:solution }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34095
P425
Q12737077
USER
Which occupation does that solution belong to ?
(c(Q12737077),P425,Q34095)
action filter_type
action find_reverse
entity Q34095
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q34095']
SELECT DISTINCT ?m WHERE { ?m property:P425 resource:Q34095 . ?m rdf:type ontology:Q12737077 }
bronze
action filter_type
action find_reverse
entity bronze
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'bronze']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation resource:bronze . ?m rdf:type ontology:occupation }
[]
occupation
Q2926103
SYSTEM
bronze caster
Q2926103
(c(Q12737077),P425,Q34095)
action filter_type
action find_reverse
entity Q34095
relation P425
type Q12737077
That solution belongs to [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q34095']
SELECT DISTINCT ?m WHERE { ?m property:P425 resource:Q34095 . ?m rdf:type ontology:Q12737077 }
bronze caster
That solution belongs to bronze caster
bronze caster
action filter_type
action find_reverse
entity bronze
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'bronze']
SELECT DISTINCT ?m WHERE { ?m property:field_of_this_occupation resource:bronze . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34095
P138
Q4373292
USER
Which physical property is the eponym of that solution ?
(c(Q4373292),P138,Q2926103)
action filter_type
action find_reverse
entity Q34095
relation P138
type Q4373292
[{'concept': 'Q4373292'}, 'P138', 'Q2926103']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q4373292 . ?w property:P138 resource:Q34095 }
bronze
action filter_type
action find_reverse
entity bronze
relation named after
type physical property
[{'concept': 'physical property'}, 'named after', 'bronze caster']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:physical_property . ?w property:named_after resource:bronze }
[]
physical property
Q2778382
SYSTEM
bronze
Q2778382
(c(Q4373292),P138,Q2926103)
action filter_type
action find_reverse
entity Q34095
relation P138
type Q4373292
[ANSWER] is the eponym of that solution
[{'concept': 'Q4373292'}, 'P138', 'Q2926103']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q4373292 . ?w property:P138 resource:Q34095 }
bronze
Bronze is the eponym of that solution
bronze
action filter_type
action find_reverse
entity bronze
relation named after
type physical property
[{'concept': 'physical property'}, 'named after', 'bronze caster']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:physical_property . ?w property:named_after resource:bronze }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the patron saint of approximately 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P417 ?a . ?a rdf:type ontology:Q502895 . ?r rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?u = 2 ) }
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:patron_saint ?a . ?a rdf:type ontology:common_name . ?r rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?u = 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action approx
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the patron saint of approximately 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:P417 ?a . ?a rdf:type ontology:Q502895 . ?r rdf:type ontology:Q12737077 } GROUP BY ?a } . FILTER ( ?u = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the patron saint of approximately 2 occupations
Isidore of Seville Catherine of Siena Jerome
action approx
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?u ) WHERE { ?r property:patron_saint ?a . ?a rdf:type ontology:common_name . ?r rdf:type ontology:occupation } GROUP BY ?a } . FILTER ( ?u = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q44248
P21
Q290
USER
Which sex does that person belong to ?
(Q44248,P21,c(Q290))
action filter_type
action find
entity Q44248
relation P21
type Q290
['Q44248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q44248 property:P21 ?p . ?p rdf:type ontology:Q290 }
Jerome
action filter_type
action find
entity Jerome
relation gender
type sex
['Jerome', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Jerome property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q166876
SYSTEM
Did you mean Isidore of Seville ?
Q166876 Q229190 Q44248
(Q166876,P21,c(Q290)) (Q229190,P21,c(Q290)) (Q44248,P21,c(Q290))
[ANSWER]
['Q166876', 'P21', {'concept': 'Q290'}] ['Q229190', 'P21', {'concept': 'Q290'}] ['Q44248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q44248 property:P21 ?p . ?p rdf:type ontology:Q290 }
Isidore of Seville Catherine of Siena Jerome
Did you mean Isidore of Seville ?
Isidore of Seville
['Isidore of Seville', 'gender', {'concept': 'sex'}] ['Catherine of Siena', 'gender', {'concept': 'sex'}] ['Jerome', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Jerome property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Jerome. Could you tell me the answer for that?
(Q44248,P21,c(Q290))
Q44248
['Q44248', 'P21', {'concept': 'Q290'}]
['Jerome', 'gender', {'concept': 'sex'}]
[]
Q6581097
SYSTEM
male
Q6581097
(Q44248,P21,c(Q290))
action filter_type
action find
entity Q44248
relation P21
type Q290
That person belongs to [ANSWER]
['Q44248', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q44248 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Jerome
relation gender
type sex
['Jerome', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Jerome property:gender ?p . ?p rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q11628000
P21
Q502895
USER
Does Hidetoshi Nishijima have the gender as that sex ?
(Q11628000,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11628000
relation P21
['Q11628000', 'P21', 'Q6581097']
ASK WHERE { resource:Q11628000 property:P21 resource:Q6581097 }
male Hidetoshi Nishijima
action is_in
entity male
action find
entity Hidetoshi Nishijima
relation gender
['Hidetoshi Nishijima', 'gender', 'male']
ASK WHERE { resource:Hidetoshi_Nishijima property:gender resource:male }
[]
common name
SYSTEM
YES
(Q11628000,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q11628000
relation P21
[ANSWER]
['Q11628000', 'P21', 'Q6581097']
ASK WHERE { resource:Q11628000 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Hidetoshi Nishijima
relation gender
['Hidetoshi Nishijima', 'gender', 'male']
ASK WHERE { resource:Hidetoshi_Nishijima property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q44248 Q26254344
P20
Q56061
USER
Is Bhaini Ala the place of death of Jerome ?
(Q44248,P20,Q26254344)
action is_in
entity Q26254344
action find
entity Q44248
relation P20
['Q44248', 'P20', 'Q26254344']
ASK WHERE { resource:Q44248 property:P20 resource:Q26254344 }
Jerome Bhaini Ala
action is_in
entity Bhaini Ala
action find
entity Jerome
relation place of death
['Jerome', 'place of death', 'Bhaini Ala']
ASK WHERE { resource:Jerome property:place_of_death resource:Bhaini_Ala }
[]
administrative territorial entity
SYSTEM
NO
(Q44248,P20,Q26254344)
action is_in
entity Q26254344
action find
entity Q44248
relation P20
[ANSWER]
['Q44248', 'P20', 'Q26254344']
ASK WHERE { resource:Q44248 property:P20 resource:Q26254344 }
No
action is_in
entity Bhaini Ala
action find
entity Jerome
relation place of death
['Jerome', 'place of death', 'Bhaini Ala']
ASK WHERE { resource:Jerome property:place_of_death resource:Bhaini_Ala }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q166876 Q111807 Q520769
P27
Q15617994
USER
Is Isidore of Seville a native of Gemmano and Kirchberg an der Iller ?
(Q166876,P27,Q111807) (Q166876,P27,Q520769)
action is_in
entity Q166876
action intersection
action find_reverse
entity Q111807
relation P27
action find_reverse
entity Q520769
relation P27
['Q166876', 'P27', 'Q111807'] ['Q166876', 'P27', 'Q520769']
ASK WHERE { resource:Q166876 property:P27 resource:Q111807 . resource:Q166876 property:P27 resource:Q520769 }
Isidore of Seville Gemmano Kirchberg an der Iller
action is_in
entity Isidore of Seville
action intersection
action find_reverse
entity Gemmano
relation country of citizenship
action find_reverse
entity Kirchberg an der Iller
relation country of citizenship
['Isidore of Seville', 'country of citizenship', 'Gemmano'] ['Isidore of Seville', 'country of citizenship', 'Kirchberg an der Iller']
ASK WHERE { resource:Isidore_of_Seville property:country_of_citizenship resource:Gemmano . resource:Isidore_of_Seville property:country_of_citizenship resource:Kirchberg_an_der_Iller }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q166876,P27,Q111807) (Q166876,P27,Q520769)
action is_in
entity Q166876
action intersection
action find_reverse
entity Q111807
relation P27
action find_reverse
entity Q520769
relation P27
[ANSWER]
['Q166876', 'P27', 'Q111807'] ['Q166876', 'P27', 'Q520769']
ASK WHERE { resource:Q166876 property:P27 resource:Q111807 . resource:Q166876 property:P27 resource:Q520769 }
No
action is_in
entity Isidore of Seville
action intersection
action find_reverse
entity Gemmano
relation country of citizenship
action find_reverse
entity Kirchberg an der Iller
relation country of citizenship
['Isidore of Seville', 'country of citizenship', 'Gemmano'] ['Isidore of Seville', 'country of citizenship', 'Kirchberg an der Iller']
ASK WHERE { resource:Isidore_of_Seville property:country_of_citizenship resource:Gemmano . resource:Isidore_of_Seville property:country_of_citizenship resource:Kirchberg_an_der_Iller }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q166876
P106
Q151885 Q12737077
USER
How many concepts and occupations are the professions of Isidore of Seville ?
(Q166876,P106,c(Q151885)) (Q166876,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q166876
relation P106
type Q151885
action filter_type
action find
entity Q166876
relation P106
type Q12737077
['Q166876', 'P106', {'concept': 'Q151885'}] ['Q166876', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?p ) { ( ontology:Q151885 ) ( ontology:Q12737077 ) } . ?g rdf:type ?p }
Isidore of Seville
action count
action union
action filter_type
action find
entity Isidore of Seville
relation occupation
type concept
action filter_type
action find
entity Isidore of Seville
relation occupation
type occupation
['Isidore of Seville', 'occupation', {'concept': 'concept'}] ['Isidore of Seville', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?p ) { ( ontology:concept ) ( ontology:occupation ) } . ?g rdf:type ?p }
[]
concept occupation
SYSTEM
1 concepts and 6 occupations
Q201788 Q250867 Q16031530 Q4964182 Q36180 Q2259532 Q14915627
(Q166876,P106,c(Q151885)) (Q166876,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q166876
relation P106
type Q151885
action filter_type
action find
entity Q166876
relation P106
type Q12737077
[ANSWER]
['Q166876', 'P106', {'concept': 'Q151885'}] ['Q166876', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?p ) { ( ontology:Q151885 ) ( ontology:Q12737077 ) } . ?g rdf:type ?p }
historian Catholic priest music theorist philosopher writer cleric musicologist
1 concepts and 6 occupations
action count
action union
action filter_type
action find
entity Isidore of Seville
relation occupation
type concept
action filter_type
action find
entity Isidore of Seville
relation occupation
type occupation
['Isidore of Seville', 'occupation', {'concept': 'concept'}] ['Isidore of Seville', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { VALUES ( ?p ) { ( ontology:concept ) ( ontology:occupation ) } . ?g rdf:type ?p }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q19299655 Q166876
P27
Q15617994
USER
Which administrative territories do Isidore of Seville and Jacint Sarrado i Lladós belong to ?
AND((Q166876,P27,c(Q15617994)), (Q19299655,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q166876
relation P27
action find
entity Q19299655
relation P27
type Q15617994
{'AND': [['Q166876', 'P27', {'concept': 'Q15617994'}], ['Q19299655', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q166876 property:P27 ?u . resource:Q19299655 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Jacint Sarrado i Lladós Isidore of Seville
action filter_type
action intersection
action find
entity Isidore of Seville
relation country of citizenship
action find
entity Jacint Sarrado i Lladós
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Isidore of Seville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jacint Sarrado i Lladós', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Isidore_of_Seville property:country_of_citizenship ?u . resource:Jacint_Sarrado_i_Lladós property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
AND((Q166876,P27,c(Q15617994)), (Q19299655,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q166876
relation P27
action find
entity Q19299655
relation P27
type Q15617994
[ANSWER] Isire of Seville and Jacint Sarra i Lladós belong to
{'AND': [['Q166876', 'P27', {'concept': 'Q15617994'}], ['Q19299655', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q166876 property:P27 ?u . resource:Q19299655 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Spain
Spain Isire of Seville and Jacint Sarra i Lladós belong to
Spain
action filter_type
action intersection
action find
entity Isidore of Seville
relation country of citizenship
action find
entity Jacint Sarrado i Lladós
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Isidore of Seville', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jacint Sarrado i Lladós', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Isidore_of_Seville property:country_of_citizenship ?u . resource:Jacint_Sarrado_i_Lladós property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11537091 Q44248
P19 P20
Q56061
USER
Which administrative territories did the demise of Jerome occur or were Kayoko Momoda born in ?
OR((Q44248,P20,c(Q56061)), (Q11537091,P19,c(Q56061)))
action filter_type
action union
action find
entity Q44248
relation P20
action find
entity Q11537091
relation P19
type Q56061
{'OR': [['Q44248', 'P20', {'concept': 'Q56061'}], ['Q11537091', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q44248 property:P20 ?a } UNION { resource:Q11537091 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Kayoko Momoda Jerome
action filter_type
action union
action find
entity Jerome
relation place of death
action find
entity Kayoko Momoda
relation place of birth
type administrative territorial entity
{'OR': [['Jerome', 'place of death', {'concept': 'administrative territorial entity'}], ['Kayoko Momoda', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jerome property:place_of_death ?a } UNION { resource:Kayoko_Momoda property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490 Q5776
SYSTEM
Tokyo, Bethlehem
Q1490 Q5776
OR((Q44248,P20,c(Q56061)), (Q11537091,P19,c(Q56061)))
action filter_type
action union
action find
entity Q44248
relation P20
action find
entity Q11537091
relation P19
type Q56061
The demise of Jerome occur or were Kayoko Momoda borned in [ANSWERS]
{'OR': [['Q44248', 'P20', {'concept': 'Q56061'}], ['Q11537091', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q44248 property:P20 ?a } UNION { resource:Q11537091 property:P19 ?a } } . ?a rdf:type ontology:Q56061 }
Tokyo Bethlehem
The demise of Jerome occur or were Kayoko Momoda borned in Tokyo and Bethlehem
Tokyo Bethlehem
action filter_type
action union
action find
entity Jerome
relation place of death
action find
entity Kayoko Momoda
relation place of birth
type administrative territorial entity
{'OR': [['Jerome', 'place of death', {'concept': 'administrative territorial entity'}], ['Kayoko Momoda', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Jerome property:place_of_death ?a } UNION { resource:Kayoko_Momoda property:place_of_birth ?a } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1490
P1376
Q15617994 Q3024240
USER
How many administrative territories or former countries have Tokyo have their first city ?
(Q1490,P1376,c(Q15617994)) (Q1490,P1376,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1490
relation P1376
type Q15617994
action filter_type
action find
entity Q1490
relation P1376
type Q3024240
['Q1490', 'P1376', {'concept': 'Q15617994'}] ['Q1490', 'P1376', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Q1490 property:P1376 ?c . ?c rdf:type ontology:Q15617994 } UNION { resource:Q1490 property:P1376 ?c . ?c rdf:type ontology:Q3024240 } }
Tokyo
action count
action union
action filter_type
action find
entity Tokyo
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tokyo
relation capital of
type former country
['Tokyo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tokyo', 'capital of', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Tokyo property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Tokyo property:capital_of ?c . ?c rdf:type ontology:former_country } }
[]
designation for an administrative territorial entity former country
SYSTEM
2
Q17 Q188712
(Q1490,P1376,c(Q15617994)) (Q1490,P1376,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1490
relation P1376
type Q15617994
action filter_type
action find
entity Q1490
relation P1376
type Q3024240
[ANSWER]
['Q1490', 'P1376', {'concept': 'Q15617994'}] ['Q1490', 'P1376', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Q1490 property:P1376 ?c . ?c rdf:type ontology:Q15617994 } UNION { resource:Q1490 property:P1376 ?c . ?c rdf:type ontology:Q3024240 } }
Japan Empire of Japan
2
action count
action union
action filter_type
action find
entity Tokyo
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Tokyo
relation capital of
type former country
['Tokyo', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Tokyo', 'capital of', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?o ) WHERE { { resource:Tokyo property:capital_of ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Tokyo property:capital_of ?c . ?c rdf:type ontology:former_country } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1490
P6
Q502895
USER
Who are the heads of the government of Tokyo ?
(Q1490,P6,c(Q502895))
action filter_type
action find
entity Q1490
relation P6
type Q502895
['Q1490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1490 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Tokyo
action filter_type
action find
entity Tokyo
relation head of government
type common name
['Tokyo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Tokyo property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
common name
Q38849 Q1280894 Q3119116
SYSTEM
Shintarō Ishihara, Naoki Inose, Yukio Aoshima
Q3119116 Q1064841 Q261703 Q389617 Q1280894 Q3482657 Q3454090 Q38849 Q3477896
(Q1490,P6,c(Q502895))
action filter_type
action find
entity Q1490
relation P6
type Q502895
The heads of the government of Tokyo are [ANSWERS]
['Q1490', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1490 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Yukio Aoshima Ryokichi Minobe Yuriko Koike Yōichi Masuzoe Naoki Inose Shunichi Suzuki Ryotaro Azuma Shintarō Ishihara Seiichirō Yasui
The heads of the government of Tokyo are Shintarō Ishihara, Naoki Inose and Yukio Aoshima
Shintarō Ishihara Naoki Inose Yukio Aoshima
action filter_type
action find
entity Tokyo
relation head of government
type common name
['Tokyo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Tokyo property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1490
P6
Q56061
USER
Do Tokyo have their government headed by those people ?
(Q1490,P6,Q38849) (Q1490,P6,Q1280894) (Q1490,P6,Q3119116)
action is_in
entity prev_answer
action find
entity Q1490
relation P6
['Q1490', 'P6', 'Q38849'] ['Q1490', 'P6', 'Q1280894'] ['Q1490', 'P6', 'Q3119116']
ASK WHERE { VALUES ( ?z ) { ( resource:Q3119116 ) ( resource:Q1064841 ) ( resource:Q261703 ) } . resource:Q1490 property:P6 ?z }
Tokyo
action is_in
entity prev_answer
action find
entity Tokyo
relation head of government
['Tokyo', 'head of government', 'Shintarō Ishihara'] ['Tokyo', 'head of government', 'Naoki Inose'] ['Tokyo', 'head of government', 'Yukio Aoshima']
ASK WHERE { VALUES ( ?z ) { ( resource:Yukio_Aoshima ) ( resource:Ryokichi_Minobe ) ( resource:Yuriko_Koike ) } . resource:Tokyo property:head_of_government ?z }
[]
administrative territorial entity
SYSTEM
YES
(Q1490,P6,Q38849) (Q1490,P6,Q1280894) (Q1490,P6,Q3119116)
action is_in
entity prev_answer
action find
entity Q1490
relation P6
[ANSWER]
['Q1490', 'P6', 'Q38849'] ['Q1490', 'P6', 'Q1280894'] ['Q1490', 'P6', 'Q3119116']
ASK WHERE { VALUES ( ?z ) { ( resource:Q3119116 ) ( resource:Q1064841 ) ( resource:Q261703 ) } . resource:Q1490 property:P6 ?z }
Yes
action is_in
entity prev_answer
action find
entity Tokyo
relation head of government
['Tokyo', 'head of government', 'Shintarō Ishihara'] ['Tokyo', 'head of government', 'Naoki Inose'] ['Tokyo', 'head of government', 'Yukio Aoshima']
ASK WHERE { VALUES ( ?z ) { ( resource:Yukio_Aoshima ) ( resource:Ryokichi_Minobe ) ( resource:Yuriko_Koike ) } . resource:Tokyo property:head_of_government ?z }
[]