Simple Question (Direct)
Simple Question
Q773591
P22
Q502895
USER
Who was the father of Hugues Lancelot de Lusignan ?
(Q773591,P22,c(Q502895))
action filter_type
action find
entity Q773591
relation P22
type Q502895
['Q773591', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q773591 property:P22 ?i . ?i rdf:type ontology:Q502895 }
Hugues Lancelot de Lusignan
action filter_type
action find
entity Hugues Lancelot de Lusignan
relation father
type common name
['Hugues Lancelot de Lusignan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Hugues_Lancelot_de_Lusignan property:father ?i . ?i rdf:type ontology:common_name }
[]
common name
Q546626
SYSTEM
James I of Cyprus
Q546626
(Q773591,P22,c(Q502895))
action filter_type
action find
entity Q773591
relation P22
type Q502895
The father of Hugues Lancelot de Lusignan was King [ANSWER]
['Q773591', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q773591 property:P22 ?i . ?i rdf:type ontology:Q502895 }
James I of Cyprus
The father of Hugues Lancelot de Lusignan was King James I of Cyprus
James I of Cyprus
action filter_type
action find
entity Hugues Lancelot de Lusignan
relation father
type common name
['Hugues Lancelot de Lusignan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Hugues_Lancelot_de_Lusignan property:father ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q546626
P112
Q7743
USER
Which home was started by that person ?
(c(Q7743),P112,Q546626)
action filter_type
action find_reverse
entity Q546626
relation P112
type Q7743
[{'concept': 'Q7743'}, 'P112', 'Q546626']
SELECT DISTINCT ?r WHERE { ?r property:P112 resource:Q546626 . ?r rdf:type ontology:Q7743 }
James I of Cyprus
action filter_type
action find_reverse
entity James I of Cyprus
relation founder
type home
[{'concept': 'home'}, 'founder', 'James I of Cyprus']
SELECT DISTINCT ?r WHERE { ?r property:founder resource:James_I_of_Cyprus . ?r rdf:type ontology:home }
[]
home
Q580797
SYSTEM
Larnaca Castle
Q580797
(c(Q7743),P112,Q546626)
action filter_type
action find_reverse
entity Q546626
relation P112
type Q7743
[ANSWER] was started by that person
[{'concept': 'Q7743'}, 'P112', 'Q546626']
SELECT DISTINCT ?r WHERE { ?r property:P112 resource:Q546626 . ?r rdf:type ontology:Q7743 }
Larnaca Castle
Larnaca Castle was started by that person
Larnaca Castle
action filter_type
action find_reverse
entity James I of Cyprus
relation founder
type home
[{'concept': 'home'}, 'founder', 'James I of Cyprus']
SELECT DISTINCT ?r WHERE { ?r property:founder resource:James_I_of_Cyprus . ?r rdf:type ontology:home }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q546626
P7
Q502895
USER
Which people are the brothers of James I of Cyprus ?
(Q546626,P7,c(Q502895))
action filter_type
action find
entity Q546626
relation P7
type Q502895
['Q546626', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q546626 property:P7 ?z . ?z rdf:type ontology:Q502895 }
James I of Cyprus
action filter_type
action find
entity James I of Cyprus
relation brother
type common name
['James I of Cyprus', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:James_I_of_Cyprus property:brother ?z . ?z rdf:type ontology:common_name }
[]
common name
Q1159952 Q546469
SYSTEM
John of Lusignan, Peter I of Cyprus
Q1159952 Q546469
(Q546626,P7,c(Q502895))
action filter_type
action find
entity Q546626
relation P7
type Q502895
[ANSWERS] are the brothers of James I of Cyprus
['Q546626', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q546626 property:P7 ?z . ?z rdf:type ontology:Q502895 }
John of Lusignan Peter I of Cyprus
John of Lusignan and Peter I of Cyprus are the brothers of James I of Cyprus
John of Lusignan Peter I of Cyprus
action filter_type
action find
entity James I of Cyprus
relation brother
type common name
['James I of Cyprus', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:James_I_of_Cyprus property:brother ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7244257
Q502895
USER
And how about Takayoshi-shinnō?
(Q7244257,P7,c(Q502895))
action filter_type
action find
entity Q7244257
relation P7
type Q502895
['Q7244257', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q7244257 property:P7 ?b . ?b rdf:type ontology:Q502895 }
Takayoshi-shinnō
action filter_type
action find
entity Takayoshi-shinnō
relation brother
type common name
['Takayoshi-shinnō', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Takayoshi-shinnō property:brother ?b . ?b rdf:type ontology:common_name }
[]
common name
Q440447 Q541057 Q2288858
SYSTEM
Go-Murakami, Muneyoshi-shinnō, Moriyoshi-shinnō
Q11492211 Q541057 Q11567393 Q440447 Q11563934 Q11555009 Q3541669 Q11610941 Q2288858 Q2722113 Q11362539 Q11074321 Q11662889
(Q7244257,P7,c(Q502895))
action filter_type
action find
entity Q7244257
relation P7
type Q502895
[ANSWERS]
['Q7244257', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q7244257 property:P7 ?b . ?b rdf:type ontology:Q502895 }
Kōshō-ōji Muneyoshi-shinnō Mumon Gensen Go-Murakami Mitsuyoshi-shinnō Hōnin-hosshinnō Tsuneyoshi-shinnō Seijo-hosshinnō Moriyoshi-shinnō Nariyoshi-shinnō Yoyoshi-shinnō Kaneyoshi-shinnō Jōson-hosshinnō
Go-Murakami Muneyoshi-shinnō Moriyoshi-shinnō
action filter_type
action find
entity Takayoshi-shinnō
relation brother
type common name
['Takayoshi-shinnō', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Takayoshi-shinnō property:brother ?b . ?b rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3069447
P7
Q502895
USER
Do Fernando Canesin Matos have those ones as their sibling ?
(Q3069447,P7,Q440447) (Q3069447,P7,Q541057) (Q3069447,P7,Q2288858)
action is_in
entity prev_answer
action find
entity Q3069447
relation P7
['Q3069447', 'P7', 'Q440447'] ['Q3069447', 'P7', 'Q541057'] ['Q3069447', 'P7', 'Q2288858']
ASK WHERE { resource:Q3069447 property:P7 ?n . VALUES ( ?n ) { ( resource:Q11492211 ) ( resource:Q541057 ) ( resource:Q11567393 ) } }
Fernando Canesin Matos
action is_in
entity prev_answer
action find
entity Fernando Canesin Matos
relation brother
['Fernando Canesin Matos', 'brother', 'Go-Murakami'] ['Fernando Canesin Matos', 'brother', 'Muneyoshi-shinnō'] ['Fernando Canesin Matos', 'brother', 'Moriyoshi-shinnō']
ASK WHERE { resource:Fernando_Canesin_Matos property:brother ?n . VALUES ( ?n ) { ( resource:Kōshō-ōji ) ( resource:Muneyoshi-shinnō ) ( resource:Mumon_Gensen ) } }
[]
common name
SYSTEM
NO
(Q3069447,P7,Q440447) (Q3069447,P7,Q541057) (Q3069447,P7,Q2288858)
action is_in
entity prev_answer
action find
entity Q3069447
relation P7
[ANSWER]
['Q3069447', 'P7', 'Q440447'] ['Q3069447', 'P7', 'Q541057'] ['Q3069447', 'P7', 'Q2288858']
ASK WHERE { resource:Q3069447 property:P7 ?n . VALUES ( ?n ) { ( resource:Q11492211 ) ( resource:Q541057 ) ( resource:Q11567393 ) } }
No
action is_in
entity prev_answer
action find
entity Fernando Canesin Matos
relation brother
['Fernando Canesin Matos', 'brother', 'Go-Murakami'] ['Fernando Canesin Matos', 'brother', 'Muneyoshi-shinnō'] ['Fernando Canesin Matos', 'brother', 'Moriyoshi-shinnō']
ASK WHERE { resource:Fernando_Canesin_Matos property:brother ?n . VALUES ( ?n ) { ( resource:Kōshō-ōji ) ( resource:Muneyoshi-shinnō ) ( resource:Mumon_Gensen ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2288858 Q11555009 Q2722113
P7
Q502895
USER
Is Moriyoshi-shinnō a sibling of Hōnin-hosshinnō and Nariyoshi-shinnō ?
(Q2288858,P7,Q11555009) (Q2288858,P7,Q2722113)
action is_in
entity Q2288858
action intersection
action find_reverse
entity Q11555009
relation P7
action find_reverse
entity Q2722113
relation P7
['Q2288858', 'P7', 'Q11555009'] ['Q2288858', 'P7', 'Q2722113']
ASK WHERE { resource:Q2288858 property:P7 resource:Q11555009 . resource:Q2288858 property:P7 resource:Q2722113 }
Moriyoshi-shinnō Hōnin-hosshinnō Nariyoshi-shinnō
action is_in
entity Moriyoshi-shinnō
action intersection
action find_reverse
entity Hōnin-hosshinnō
relation brother
action find_reverse
entity Nariyoshi-shinnō
relation brother
['Moriyoshi-shinnō', 'brother', 'Hōnin-hosshinnō'] ['Moriyoshi-shinnō', 'brother', 'Nariyoshi-shinnō']
ASK WHERE { resource:Moriyoshi-shinnō property:brother resource:Hōnin-hosshinnō . resource:Moriyoshi-shinnō property:brother resource:Nariyoshi-shinnō }
[]
common name
SYSTEM
YES
(Q2288858,P7,Q11555009) (Q2288858,P7,Q2722113)
action is_in
entity Q2288858
action intersection
action find_reverse
entity Q11555009
relation P7
action find_reverse
entity Q2722113
relation P7
[ANSWER]
['Q2288858', 'P7', 'Q11555009'] ['Q2288858', 'P7', 'Q2722113']
ASK WHERE { resource:Q2288858 property:P7 resource:Q11555009 . resource:Q2288858 property:P7 resource:Q2722113 }
Yes
action is_in
entity Moriyoshi-shinnō
action intersection
action find_reverse
entity Hōnin-hosshinnō
relation brother
action find_reverse
entity Nariyoshi-shinnō
relation brother
['Moriyoshi-shinnō', 'brother', 'Hōnin-hosshinnō'] ['Moriyoshi-shinnō', 'brother', 'Nariyoshi-shinnō']
ASK WHERE { resource:Moriyoshi-shinnō property:brother resource:Hōnin-hosshinnō . resource:Moriyoshi-shinnō property:brother resource:Nariyoshi-shinnō }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atmost 3516 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3516
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?c <= 3516 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3516
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?c <= 3516 ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3516
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:P1303 ?q . ?q rdf:type ontology:Q34379 . ?s rdf:type ontology:Q502895 } GROUP BY ?q } . FILTER ( ?c <= 3516 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3516
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?c ) WHERE { ?s property:instrument ?q . ?q rdf:type ontology:musical_instrument . ?s rdf:type ontology:common_name } GROUP BY ?q } . FILTER ( ?c <= 3516 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q546469
P27 P108
Q502895
USER
Which people works for Peter I of Cyprus and are a citizen of France ?
AND((c(Q502895),P108,Q546469), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q546469
relation P108
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P108', 'Q546469'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?b WHERE { ?b property:P108 resource:Q546469 . ?b property:P27 resource:Q142 . ?b rdf:type ontology:Q502895 }
France Peter I of Cyprus
action filter_type
action intersection
action find_reverse
entity Peter I of Cyprus
relation employer
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'employer', 'Peter I of Cyprus'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?b WHERE { ?b property:employer resource:Peter_I_of_Cyprus . ?b property:country_of_citizenship resource:France . ?b rdf:type ontology:common_name }
[]
common name
Q937715
SYSTEM
Philippe de Mézières
Q937715
AND((c(Q502895),P108,Q546469), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q546469
relation P108
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWER] works for Peter I of Cyprus and are a citizen of France
{'AND': [[{'concept': 'Q502895'}, 'P108', 'Q546469'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?b WHERE { ?b property:P108 resource:Q546469 . ?b property:P27 resource:Q142 . ?b rdf:type ontology:Q502895 }
Philippe de Mézières
Philippe de Mézières works for Peter I of Cyprus and are a citizen of France
Philippe de Mézières
action filter_type
action intersection
action find_reverse
entity Peter I of Cyprus
relation employer
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'employer', 'Peter I of Cyprus'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?b WHERE { ?b property:employer resource:Peter_I_of_Cyprus . ?b property:country_of_citizenship resource:France . ?b rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5933177 Q546469
P40
Q502895
USER
Which people are the children of Peter I of Cyprus or Hugh de Courtenay, 4th Earl of Devon ?
OR((Q546469,P40,c(Q502895)), (Q5933177,P40,c(Q502895)))
action filter_type
action union
action find
entity Q546469
relation P40
action find
entity Q5933177
relation P40
type Q502895
{'OR': [['Q546469', 'P40', {'concept': 'Q502895'}], ['Q5933177', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q546469 property:P40 ?a } UNION { resource:Q5933177 property:P40 ?a } } . ?a rdf:type ontology:Q502895 }
Hugh de Courtenay, 4th Earl of Devon Peter I of Cyprus
action filter_type
action union
action find
entity Peter I of Cyprus
relation child
action find
entity Hugh de Courtenay, 4th Earl of Devon
relation child
type common name
{'OR': [['Peter I of Cyprus', 'child', {'concept': 'common name'}], ['Hugh de Courtenay, 4th Earl of Devon', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Peter_I_of_Cyprus property:child ?a } UNION { resource:Hugh_de_Courtenay,_4th_Earl_of_Devon property:child ?a } } . ?a rdf:type ontology:common_name }
[]
common name
Q20671804 Q3990745 Q546544
SYSTEM
Margaret of Lusignan, Thomas de Courtenay, 13th Earl of Devon, Peter II of Cyprus
Q20671804 Q3990745 Q546544
OR((Q546469,P40,c(Q502895)), (Q5933177,P40,c(Q502895)))
action filter_type
action union
action find
entity Q546469
relation P40
action find
entity Q5933177
relation P40
type Q502895
[ANSWERS] are the children of Peter I of Cyprus or Hugh de Courtenay, 4th Earl of Devon
{'OR': [['Q546469', 'P40', {'concept': 'Q502895'}], ['Q5933177', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q546469 property:P40 ?a } UNION { resource:Q5933177 property:P40 ?a } } . ?a rdf:type ontology:Q502895 }
Margaret of Lusignan Thomas de Courtenay, 13th Earl of Devon Peter II of Cyprus
Margaret of Lusignan, Thomas de Courtenay, 13th Earl of Devon and Peter II of Cyprus are the children of Peter I of Cyprus or Hugh de Courtenay, 4th Earl of Devon
Margaret of Lusignan Thomas de Courtenay, 13th Earl of Devon Peter II of Cyprus
action filter_type
action union
action find
entity Peter I of Cyprus
relation child
action find
entity Hugh de Courtenay, 4th Earl of Devon
relation child
type common name
{'OR': [['Peter I of Cyprus', 'child', {'concept': 'common name'}], ['Hugh de Courtenay, 4th Earl of Devon', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Peter_I_of_Cyprus property:child ?a } UNION { resource:Hugh_de_Courtenay,_4th_Earl_of_Devon property:child ?a } } . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19342352 Q546469
P276 P20
Q56061
USER
Which administrative territories are the places of death of Peter I of Cyprus or are Meidoornstraat situated ?
OR((Q546469,P20,c(Q56061)), (Q19342352,P276,c(Q56061)))
action filter_type
action union
action find
entity Q546469
relation P20
action find
entity Q19342352
relation P276
type Q56061
{'OR': [['Q546469', 'P20', {'concept': 'Q56061'}], ['Q19342352', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q546469 property:P20 ?w } UNION { resource:Q19342352 property:P276 ?w } } . ?w rdf:type ontology:Q56061 }
Meidoornstraat Peter I of Cyprus
action filter_type
action union
action find
entity Peter I of Cyprus
relation place of death
action find
entity Meidoornstraat
relation location
type administrative territorial entity
{'OR': [['Peter I of Cyprus', 'place of death', {'concept': 'administrative territorial entity'}], ['Meidoornstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Peter_I_of_Cyprus property:place_of_death ?w } UNION { resource:Meidoornstraat property:location ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3856 Q2766701
SYSTEM
Nicosia, Epe
Q3856 Q2766701
OR((Q546469,P20,c(Q56061)), (Q19342352,P276,c(Q56061)))
action filter_type
action union
action find
entity Q546469
relation P20
action find
entity Q19342352
relation P276
type Q56061
[ANSWERS] are the places of death of Peter I of Cyprus or are Meidoornstraat situated
{'OR': [['Q546469', 'P20', {'concept': 'Q56061'}], ['Q19342352', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q546469 property:P20 ?w } UNION { resource:Q19342352 property:P276 ?w } } . ?w rdf:type ontology:Q56061 }
Nicosia Epe
Nicosia and Epe are the places of death of Peter I of Cyprus or are Meidoornstraat situated
Nicosia Epe
action filter_type
action union
action find
entity Peter I of Cyprus
relation place of death
action find
entity Meidoornstraat
relation location
type administrative territorial entity
{'OR': [['Peter I of Cyprus', 'place of death', {'concept': 'administrative territorial entity'}], ['Meidoornstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Peter_I_of_Cyprus property:place_of_death ?w } UNION { resource:Meidoornstraat property:location ?w } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19342352
P17
Q15617994
USER
Which administrative territory is Meidoornstraat a part of ?
(Q19342352,P17,c(Q15617994))
action filter_type
action find
entity Q19342352
relation P17
type Q15617994
['Q19342352', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q19342352 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Meidoornstraat
action filter_type
action find
entity Meidoornstraat
relation country
type designation for an administrative territorial entity
['Meidoornstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Meidoornstraat property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55
SYSTEM
Netherlands
Q55
(Q19342352,P17,c(Q15617994))
action filter_type
action find
entity Q19342352
relation P17
type Q15617994
[ANSWER] is Meidoornstraat a part of
['Q19342352', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q19342352 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Netherlands
Netherlands is Meidoornstraat a part of
Netherlands
action filter_type
action find
entity Meidoornstraat
relation country
type designation for an administrative territorial entity
['Meidoornstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Meidoornstraat property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q664
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with greater number of administrative territories than New Zealand ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?c } GROUP BY ?r } . FILTER ( ?n > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?p } } }
New Zealand
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?c } GROUP BY ?r } . FILTER ( ?n > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?p } } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with greater number of administrative territories than New Zealand
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?c } GROUP BY ?r } . FILTER ( ?n > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:Q15617994 . resource:Q664 property:P530 ?p } } }
Austria Germany Australia Denmark Canada
Germany, Australia and Denmark have a diplomatic relationship with greater number of administrative territories than New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?c ) AS ?n ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?c } GROUP BY ?r } . FILTER ( ?n > ?f ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:New_Zealand property:diplomatic_relation ?p } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q685
P530
Q1048835 Q15617994
USER
And also tell me about Solomon Islands?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Q685 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f property:P530 ?r . ?f rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?f } }
Solomon Islands
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f property:diplomatic_relation ?r . ?f rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q1000 Q40 Q781 Q778 Q183 Q408 Q769 Q35 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q685
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Q685 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f property:P530 ?r . ?f rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?f } }
Gabon Austria Antigua and Barbuda The Bahamas Germany Australia Grenada Denmark Canada New Zealand Jamaica
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Solomon Islands
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { resource:Solomon_Islands property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?n ) . { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f property:diplomatic_relation ?r . ?f rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10899678 Q546469
P22
Q502895
USER
Which people were the father of Peter I of Cyprus or Liu Chong ?
OR((Q546469,P22,c(Q502895)), (Q10899678,P22,c(Q502895)))
action filter_type
action union
action find
entity Q546469
relation P22
action find
entity Q10899678
relation P22
type Q502895
{'OR': [['Q546469', 'P22', {'concept': 'Q502895'}], ['Q10899678', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?x ) { ( resource:Q546469 ) ( resource:Q10899678 ) } . ?x property:P22 ?v } . ?v rdf:type ontology:Q502895 }
Liu Chong Peter I of Cyprus
action filter_type
action union
action find
entity Peter I of Cyprus
relation father
action find
entity Liu Chong
relation father
type common name
{'OR': [['Peter I of Cyprus', 'father', {'concept': 'common name'}], ['Liu Chong', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?x ) { ( resource:Peter_I_of_Cyprus ) ( resource:Liu_Chong ) } . ?x property:father ?v } . ?v rdf:type ontology:common_name }
[]
common name
Q712809 Q6852702
SYSTEM
Hugh IV of Cyprus, Liu Kang
Q712809 Q6852702
OR((Q546469,P22,c(Q502895)), (Q10899678,P22,c(Q502895)))
action filter_type
action union
action find
entity Q546469
relation P22
action find
entity Q10899678
relation P22
type Q502895
[ANSWERS] were the father of Peter I of Cyprus or Liu Chong
{'OR': [['Q546469', 'P22', {'concept': 'Q502895'}], ['Q10899678', 'P22', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?x ) { ( resource:Q546469 ) ( resource:Q10899678 ) } . ?x property:P22 ?v } . ?v rdf:type ontology:Q502895 }
Hugh IV of Cyprus Liu Kang
Hugh IV of Cyprus and Liu Kang were the father of Peter I of Cyprus or Liu Chong
Hugh IV of Cyprus Liu Kang
action filter_type
action union
action find
entity Peter I of Cyprus
relation father
action find
entity Liu Chong
relation father
type common name
{'OR': [['Peter I of Cyprus', 'father', {'concept': 'common name'}], ['Liu Chong', 'father', {'concept': 'common name'}]]}
SELECT DISTINCT ?v WHERE { { VALUES ( ?x ) { ( resource:Peter_I_of_Cyprus ) ( resource:Liu_Chong ) } . ?x property:father ?v } . ?v rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1014 Q183
P27
Q502895
USER
Which people are a native of Germany and Liberia ?
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q1014))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q1014
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q1014']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P27 resource:Q183 . ?x property:P27 resource:Q1014 }
Liberia Germany
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Liberia
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'Liberia']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:country_of_citizenship resource:Germany . ?x property:country_of_citizenship resource:Liberia }
[]
common name
Q73033
SYSTEM
Hans Massaquoi
Q73033
AND((c(Q502895),P27,Q183), (c(Q502895),P27,Q1014))
action filter_type
action intersection
action find_reverse
entity Q183
relation P27
action find_reverse
entity Q1014
relation P27
type Q502895
[ANSWER] is a native of Germany and Liberia
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q183'], [{'concept': 'Q502895'}, 'P27', 'Q1014']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . ?x property:P27 resource:Q183 . ?x property:P27 resource:Q1014 }
Hans Massaquoi
Hans Massaquoi is a native of Germany and Liberia
Hans Massaquoi
action filter_type
action intersection
action find_reverse
entity Germany
relation country of citizenship
action find_reverse
entity Liberia
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Germany'], [{'concept': 'common name'}, 'country of citizenship', 'Liberia']]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . ?x property:country_of_citizenship resource:Germany . ?x property:country_of_citizenship resource:Liberia }
[]