Simple Question (Direct)
Simple Question
Q11531627
P172
Q2472587
USER
Which people does Mari Matsunaga have as ethnic origin ?
(Q11531627,P172,c(Q2472587))
action filter_type
action find
entity Q11531627
relation P172
type Q2472587
['Q11531627', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2472587 . resource:Q11531627 property:P172 ?w }
Mari Matsunaga
action filter_type
action find
entity Mari Matsunaga
relation ethnic group
type people
['Mari Matsunaga', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:people . resource:Mari_Matsunaga property:ethnic_group ?w }
[]
people
Q161652
SYSTEM
Japanese people
Q161652
(Q11531627,P172,c(Q2472587))
action filter_type
action find
entity Q11531627
relation P172
type Q2472587
Mari Matsunaga has described [ANSWER] as ethnic origin
['Q11531627', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2472587 . resource:Q11531627 property:P172 ?w }
Japanese people
Mari Matsunaga has described Japanese people as ethnic origin
Japanese people
action filter_type
action find
entity Mari Matsunaga
relation ethnic group
type people
['Mari Matsunaga', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:people . resource:Mari_Matsunaga property:ethnic_group ?w }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by exactly 1 person ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?r = 1 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?r = 1 ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[ANSWERS] are played by exactly 1 person
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?r = 1 ) }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
Davul, Wurlitzer electric piano and Bendir are played by exactly 1 person
davul Wurlitzer electric piano Bendir
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?r = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P180
Q34379 Q386724
USER
Which works express max number of musical instruments ?
(c(Q386724),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q386724
type Q34379
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?s ) WHERE { ?b property:P180 ?d . ?b rdf:type ontology:Q386724 . ?d rdf:type ontology:Q34379 } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?j ) WHERE { ?w property:P180 ?c . ?w rdf:type ontology:Q386724 . ?c rdf:type ontology:Q34379 } GROUP BY ?w } . FILTER ( ?j = ?p ) }
action argmax
action find_tuple_counts
relation depicts
type work
type musical instrument
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?s ) WHERE { ?b property:depicts ?d . ?b rdf:type ontology:work . ?d rdf:type ontology:musical_instrument } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?j ) WHERE { ?w property:depicts ?c . ?w rdf:type ontology:work . ?c rdf:type ontology:musical_instrument } GROUP BY ?w } . FILTER ( ?j = ?p ) }
[]
musical instrument work
Q2901063
SYSTEM
Borghese Vase
Q2901063
(c(Q386724),P180,c(Q34379))
action argmax
action find_tuple_counts
relation P180
type Q386724
type Q34379
[ANSWER] works express max number of musical instruments
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?s ) WHERE { ?b property:P180 ?d . ?b rdf:type ontology:Q386724 . ?d rdf:type ontology:Q34379 } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?j ) WHERE { ?w property:P180 ?c . ?w rdf:type ontology:Q386724 . ?c rdf:type ontology:Q34379 } GROUP BY ?w } . FILTER ( ?j = ?p ) }
Borghese Vase
Borghese Vase works express max number of musical instruments
Borghese Vase
action argmax
action find_tuple_counts
relation depicts
type work
type musical instrument
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?b ( COUNT ( ?d ) AS ?s ) WHERE { ?b property:depicts ?d . ?b rdf:type ontology:work . ?d rdf:type ontology:musical_instrument } GROUP BY ?b } } . { SELECT DISTINCT ?w ( COUNT ( ?c ) AS ?j ) WHERE { ?w property:depicts ?c . ?w rdf:type ontology:work . ?c rdf:type ontology:musical_instrument } GROUP BY ?w } . FILTER ( ?j = ?p ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2901063 Q771241
P180
Q22988604
USER
Is Polydectes expressed in Borghese Vase ?
(Q2901063,P180,Q771241)
action is_in
entity Q771241
action find
entity Q2901063
relation P180
['Q2901063', 'P180', 'Q771241']
ASK WHERE { resource:Q2901063 property:P180 resource:Q771241 }
Borghese Vase Polydectes
action is_in
entity Polydectes
action find
entity Borghese Vase
relation depicts
['Borghese Vase', 'depicts', 'Polydectes']
ASK WHERE { resource:Borghese_Vase property:depicts resource:Polydectes }
[]
mythological Greek character
SYSTEM
NO
(Q2901063,P180,Q771241)
action is_in
entity Q771241
action find
entity Q2901063
relation P180
[ANSWER]
['Q2901063', 'P180', 'Q771241']
ASK WHERE { resource:Q2901063 property:P180 resource:Q771241 }
No
action is_in
entity Polydectes
action find
entity Borghese Vase
relation depicts
['Borghese Vase', 'depicts', 'Polydectes']
ASK WHERE { resource:Borghese_Vase property:depicts resource:Polydectes }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q177220 Q816793
P106 P1303
Q502895
USER
Which people knows to play Bendir and have career as singer ?
AND((c(Q502895),P1303,Q816793), (c(Q502895),P106,Q177220))
action filter_type
action intersection
action find_reverse
entity Q816793
relation P1303
action find_reverse
entity Q177220
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q816793'], [{'concept': 'Q502895'}, 'P106', 'Q177220']]}
SELECT DISTINCT ?b WHERE { ?b property:P1303 resource:Q816793 . ?b property:P106 resource:Q177220 . ?b rdf:type ontology:Q502895 }
singer Bendir
action filter_type
action intersection
action find_reverse
entity Bendir
relation instrument
action find_reverse
entity singer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'Bendir'], [{'concept': 'common name'}, 'occupation', 'singer']]}
SELECT DISTINCT ?b WHERE { ?b property:instrument resource:Bendir . ?b property:occupation resource:singer . ?b rdf:type ontology:common_name }
[]
common name
Q452186
SYSTEM
Cheikha Rimitti
Q452186
AND((c(Q502895),P1303,Q816793), (c(Q502895),P106,Q177220))
action filter_type
action intersection
action find_reverse
entity Q816793
relation P1303
action find_reverse
entity Q177220
relation P106
type Q502895
[ANSWER] knows to play Bendir and have career as singer
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q816793'], [{'concept': 'Q502895'}, 'P106', 'Q177220']]}
SELECT DISTINCT ?b WHERE { ?b property:P1303 resource:Q816793 . ?b property:P106 resource:Q177220 . ?b rdf:type ontology:Q502895 }
Cheikha Rimitti
Cheikha Rimitti knows to play Bendir and have career as singer
Cheikha Rimitti
action filter_type
action intersection
action find_reverse
entity Bendir
relation instrument
action find_reverse
entity singer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'Bendir'], [{'concept': 'common name'}, 'occupation', 'singer']]}
SELECT DISTINCT ?b WHERE { ?b property:instrument resource:Bendir . ?b property:occupation resource:singer . ?b rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11531627
P734
Q82799
USER
Who has the surname Mari Matsunaga ?
(Q11531627,P734,c(Q82799))
action filter_type
action find
entity Q11531627
relation P734
type Q82799
['Q11531627', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q11531627 property:P734 ?p }
Mari Matsunaga
action filter_type
action find
entity Mari Matsunaga
relation family name
type name
['Mari Matsunaga', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Mari_Matsunaga property:family_name ?p }
[]
name
Q21492053
SYSTEM
Matsunaga
Q21492053
(Q11531627,P734,c(Q82799))
action filter_type
action find
entity Q11531627
relation P734
type Q82799
To [ANSWER] has the surname Mari [ANSWER]
['Q11531627', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q11531627 property:P734 ?p }
Matsunaga
To Matsunaga has the surname Mari Matsunaga
Matsunaga
action filter_type
action find
entity Mari Matsunaga
relation family name
type name
['Mari Matsunaga', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Mari_Matsunaga property:family_name ?p }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2577880 Q11531627
P734
Q82799
USER
Or Brigitte De Pauw?
OR((Q11531627,P734,c(Q82799)), (Q2577880,P734,c(Q82799)))
action filter_type
action union
action find
entity Q11531627
relation P734
action find
entity Q2577880
relation P734
type Q82799
{'OR': [['Q11531627', 'P734', {'concept': 'Q82799'}], ['Q2577880', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Q11531627 ) ( resource:Q2577880 ) } . ?m property:P734 ?p } . ?p rdf:type ontology:Q82799 }
Brigitte De Pauw Mari Matsunaga
action filter_type
action union
action find
entity Mari Matsunaga
relation family name
action find
entity Brigitte De Pauw
relation family name
type name
{'OR': [['Mari Matsunaga', 'family name', {'concept': 'name'}], ['Brigitte De Pauw', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Mari_Matsunaga ) ( resource:Brigitte_De_Pauw ) } . ?m property:family_name ?p } . ?p rdf:type ontology:name }
[]
name
Q27253817 Q21492053
SYSTEM
De Pauw, Matsunaga
Q27253817 Q21492053
OR((Q11531627,P734,c(Q82799)), (Q2577880,P734,c(Q82799)))
action filter_type
action union
action find
entity Q11531627
relation P734
action find
entity Q2577880
relation P734
type Q82799
[ANSWERS]
{'OR': [['Q11531627', 'P734', {'concept': 'Q82799'}], ['Q2577880', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Q11531627 ) ( resource:Q2577880 ) } . ?m property:P734 ?p } . ?p rdf:type ontology:Q82799 }
De Pauw Matsunaga
De Pauw Matsunaga
action filter_type
action union
action find
entity Mari Matsunaga
relation family name
action find
entity Brigitte De Pauw
relation family name
type name
{'OR': [['Mari Matsunaga', 'family name', {'concept': 'name'}], ['Brigitte De Pauw', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?p WHERE { { VALUES ( ?m ) { ( resource:Mari_Matsunaga ) ( resource:Brigitte_De_Pauw ) } . ?m property:family_name ?p } . ?p rdf:type ontology:name }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P734
Q502895
USER
How many people have that name as family name ?
(c(Q502895),P734,Q27253817)
[{'concept': 'Q502895'}, 'P734', 'Q27253817']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q19001665 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'family name', 'De Pauw']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:De_Pauw . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q21492053
SYSTEM
Did you mean Matsunaga ?
(c(Q502895),P734,Q27253817) (c(Q502895),P734,Q21492053)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q27253817'] [{'concept': 'Q502895'}, 'P734', 'Q21492053']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q19001665 . ?z rdf:type ontology:Q502895 }
Did you mean Matsunaga ?
Matsunaga
[{'concept': 'common name'}, 'family name', 'De Pauw'] [{'concept': 'common name'}, 'family name', 'Matsunaga']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:De_Pauw . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant De Pauw. Could you tell me the answer for that?
(c(Q502895),P734,Q27253817)
Q27253817
[{'concept': 'Q502895'}, 'P734', 'Q27253817']
[{'concept': 'common name'}, 'family name', 'De Pauw']
[]
SYSTEM
18
Q2058052 Q2533378 Q7822208 Q18758238 Q19973855 Q9250275 Q1620084 Q2052909 Q2577880 Q21638408 Q2673056 Q484702 Q17388293 Q2073056 Q2194393 Q1947547 Q18432899 Q2031215
(c(Q502895),P734,Q27253817)
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q27253817']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q101352 resource:Q19001665 . ?z rdf:type ontology:Q502895 }
Michel De Pauw Julius De Pauw Tony De Pauw Ghislaine De Pauw Niels De Pauw Eddy De Pauw Henri De Pauw Gabriel De Pauw Brigitte De Pauw Claudine De Pauw Bart De Pauw Josse De Pauw Roger De Pauw Nill De Pauw Marc De Pauw Moreno De Pauw Charly De Pauw Emiel De Pauw
18
[{'concept': 'common name'}, 'family name', 'De Pauw']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:family_name resource:De_Pauw . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7194061 Q11531627
P27
Q15617994
USER
Which administrative territories are Mari Matsunaga or Pilipo Miriye an inhabitant of ?
OR((Q11531627,P27,c(Q15617994)), (Q7194061,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11531627
relation P27
action find
entity Q7194061
relation P27
type Q15617994
{'OR': [['Q11531627', 'P27', {'concept': 'Q15617994'}], ['Q7194061', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?w ) { ( resource:Q11531627 ) ( resource:Q7194061 ) } . ?w property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
Pilipo Miriye Mari Matsunaga
action filter_type
action union
action find
entity Mari Matsunaga
relation country of citizenship
action find
entity Pilipo Miriye
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mari Matsunaga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pilipo Miriye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?w ) { ( resource:Mari_Matsunaga ) ( resource:Pilipo_Miriye ) } . ?w property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q1033
SYSTEM
Japan, Nigeria
Q17 Q1033
OR((Q11531627,P27,c(Q15617994)), (Q7194061,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11531627
relation P27
action find
entity Q7194061
relation P27
type Q15617994
[ANSWERS] are Mari Matsunaga or Pilipo Miriye an inhabitant of
{'OR': [['Q11531627', 'P27', {'concept': 'Q15617994'}], ['Q7194061', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?w ) { ( resource:Q11531627 ) ( resource:Q7194061 ) } . ?w property:P27 ?e } . ?e rdf:type ontology:Q15617994 }
Japan Nigeria
Japan and Nigeria are Mari Matsunaga or Pilipo Miriye an inhabitant of
Japan Nigeria
action filter_type
action union
action find
entity Mari Matsunaga
relation country of citizenship
action find
entity Pilipo Miriye
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mari Matsunaga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pilipo Miriye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { VALUES ( ?w ) { ( resource:Mari_Matsunaga ) ( resource:Pilipo_Miriye ) } . ?w property:country_of_citizenship ?e } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q2391750
P36
Q515
USER
How many cities are the capitals of Japan or Ural Oblast ?
(Q17,P36,c(Q515)) (Q2391750,P36,c(Q515))
action count
action union
action filter_type
action find
entity Q17
relation P36
type Q515
action filter_type
action find
entity Q2391750
relation P36
type Q515
['Q17', 'P36', {'concept': 'Q515'}] ['Q2391750', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Q2391750 property:P36 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q17 property:P36 ?h . ?h rdf:type ontology:Q515 } }
Japan Ural Oblast
action count
action union
action filter_type
action find
entity Japan
relation capital
type city
action filter_type
action find
entity Ural Oblast
relation capital
type city
['Japan', 'capital', {'concept': 'city'}] ['Ural Oblast', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Ural_Oblast property:capital ?h . ?h rdf:type ontology:city } UNION { resource:Japan property:capital ?h . ?h rdf:type ontology:city } }
[]
city
SYSTEM
2
Q7473516 Q487439
(Q17,P36,c(Q515)) (Q2391750,P36,c(Q515))
action count
action union
action filter_type
action find
entity Q17
relation P36
type Q515
action filter_type
action find
entity Q2391750
relation P36
type Q515
[ANSWER]
['Q17', 'P36', {'concept': 'Q515'}] ['Q2391750', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Q2391750 property:P36 ?h . ?h rdf:type ontology:Q515 } UNION { resource:Q17 property:P36 ?h . ?h rdf:type ontology:Q515 } }
Tokyo Oral
2
action count
action union
action filter_type
action find
entity Japan
relation capital
type city
action filter_type
action find
entity Ural Oblast
relation capital
type city
['Japan', 'capital', {'concept': 'city'}] ['Ural Oblast', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Ural_Oblast property:capital ?h . ?h rdf:type ontology:city } UNION { resource:Japan property:capital ?h . ?h rdf:type ontology:city } }
[]