Simple Question (Direct)
Simple Question
Q2989401
P102
Q7278
USER
Which political party is José Díaz a member of ?
(Q2989401,P102,c(Q7278))
action filter_type
action find
entity Q2989401
relation P102
type Q7278
['Q2989401', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q2989401 property:P102 ?n . ?n rdf:type ontology:Q7278 }
José Díaz
action filter_type
action find
entity José Díaz
relation member of political party
type political party
['José Díaz', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:José_Díaz property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
political party
Q478811
SYSTEM
Communist Party of Spain
Q478811
(Q2989401,P102,c(Q7278))
action filter_type
action find
entity Q2989401
relation P102
type Q7278
The [ANSWER] is José Díaz a member of
['Q2989401', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?n WHERE { resource:Q2989401 property:P102 ?n . ?n rdf:type ontology:Q7278 }
Communist Party of Spain
The Communist Party of Spain is José Díaz a member of
Communist Party of Spain
action filter_type
action find
entity José Díaz
relation member of political party
type political party
['José Díaz', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?n WHERE { resource:José_Díaz property:member_of_political_party ?n . ?n rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q478811
P39
Q502895
USER
Who held the position of that political party ?
(c(Q502895),P39,Q478811)
action filter_type
action find_reverse
entity Q478811
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q478811']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q478811 . ?c rdf:type ontology:Q502895 }
Communist Party of Spain
action filter_type
action find_reverse
entity Communist Party of Spain
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Communist Party of Spain']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:Communist_Party_of_Spain . ?c rdf:type ontology:common_name }
[]
common name
Q2989401
SYSTEM
José Díaz
Q2989401
(c(Q502895),P39,Q478811)
action filter_type
action find_reverse
entity Q478811
relation P39
type Q502895
[ANSWER] held the position of that political party
[{'concept': 'Q502895'}, 'P39', 'Q478811']
SELECT DISTINCT ?c WHERE { ?c property:P39 resource:Q478811 . ?c rdf:type ontology:Q502895 }
José Díaz
José Díaz held the position of that political party
José Díaz
action filter_type
action find_reverse
entity Communist Party of Spain
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Communist Party of Spain']
SELECT DISTINCT ?c WHERE { ?c property:position_held resource:Communist_Party_of_Spain . ?c rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q3574843
P1303
Q34379 Q502895
USER
Which musical instruments do lesser number of people know to play than tonbak ?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q3574843
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P1303 ?q . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a property:P1303 resource:Q3574843 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?d < ?k ) }
tonbak
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity tonbak
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:instrument ?q . ?c rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a property:instrument resource:tonbak . ?a rdf:type ontology:common_name } } . FILTER ( ?d < ?k ) }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q3574843
relation P1303
type Q502895
[ANSWERS] lesser number of people know to play than tonbak
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:P1303 ?q . ?c rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a property:P1303 resource:Q3574843 . ?a rdf:type ontology:Q502895 } } . FILTER ( ?d < ?k ) }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
Davul, Wurlitzer electric piano and Bendir lesser number of people know to play than tonbak
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity tonbak
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?d ) WHERE { ?c property:instrument ?q . ?c rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { ?a property:instrument resource:tonbak . ?a rdf:type ontology:common_name } } . FILTER ( ?d < ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q182718
P1303
Q34379 Q502895
USER
And how about Nyckelharpa?
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q182718
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?a ) WHERE { ?g property:P1303 ?f . ?g rdf:type ontology:Q502895 . ?f rdf:type ontology:Q34379 } GROUP BY ?f } . FILTER ( ?a < ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P1303 resource:Q182718 . ?u rdf:type ontology:Q502895 } } }
Nyckelharpa
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Nyckelharpa
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?a ) WHERE { ?g property:instrument ?f . ?g rdf:type ontology:common_name . ?f rdf:type ontology:musical_instrument } GROUP BY ?f } . FILTER ( ?a < ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:instrument resource:Nyckelharpa . ?u rdf:type ontology:common_name } } }
[]
musical instrument common name
Q1178361 Q1759986 Q816793
SYSTEM
davul, Wurlitzer electric piano, Bendir
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q748455 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q173453 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q182718
relation P1303
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?a ) WHERE { ?g property:P1303 ?f . ?g rdf:type ontology:Q502895 . ?f rdf:type ontology:Q34379 } GROUP BY ?f } . FILTER ( ?a < ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P1303 resource:Q182718 . ?u rdf:type ontology:Q502895 } } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument spoon Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta cajón gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales wind instrument Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
davul Wurlitzer electric piano Bendir
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Nyckelharpa
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?g ) AS ?a ) WHERE { ?g property:instrument ?f . ?g rdf:type ontology:common_name . ?f rdf:type ontology:musical_instrument } GROUP BY ?f } . FILTER ( ?a < ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:instrument resource:Nyckelharpa . ?u rdf:type ontology:common_name } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1303
Q34379 Q502895
USER
How many musical instruments are played by lesser number of people than that musical instrument ?
(c(Q502895),P1303,c(Q34379))
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1303 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34379 }
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrument ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:musical_instrument }
[]
musical instrument common name
Comparative|Count over More/Less|Single entity type|Clarification
Q1178361
SYSTEM
Did you mean davul ?
(c(Q502895),P1303,c(Q34379))
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1303 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34379 }
Did you mean davul ?
davul
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrument ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Wurlitzer electric piano. Could you tell me the answer for that?
(c(Q502895),P1303,c(Q34379))
Q1759986
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
[]
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1303 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q34379 }
spoon cajón wind instrument
3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:instrument ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:musical_instrument }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q21181736
P180
Q34379 Q340169
USER
How many medias express greater number of musical instruments than Study of a Female Figure with Rosary ?
(c(Q340169),P180,c(Q34379))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q21181736
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?q ) WHERE { ?w property:P180 ?x . ?w rdf:type ontology:Q340169 . ?x rdf:type ontology:Q34379 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q21181736 property:P180 ?p . ?p rdf:type ontology:Q340169 } } . FILTER ( ?q > ?j ) }
Study of a Female Figure with Rosary
action count
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity Study of a Female Figure with Rosary
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?q ) WHERE { ?w property:depicts ?x . ?w rdf:type ontology:media . ?x rdf:type ontology:musical_instrument } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Study_of_a_Female_Figure_with_Rosary property:depicts ?p . ?p rdf:type ontology:media } } . FILTER ( ?q > ?j ) }
[]
musical instrument media
SYSTEM
2
Q19868516 Q17519439
(c(Q340169),P180,c(Q34379))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q21181736
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?q ) WHERE { ?w property:P180 ?x . ?w rdf:type ontology:Q340169 . ?x rdf:type ontology:Q34379 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q21181736 property:P180 ?p . ?p rdf:type ontology:Q340169 } } . FILTER ( ?q > ?j ) }
Violin Hanging on a Wall Achille Henri Victor Gouffé
2
action count
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity Study of a Female Figure with Rosary
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?x ) AS ?q ) WHERE { ?w property:depicts ?x . ?w rdf:type ontology:media . ?x rdf:type ontology:musical_instrument } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Study_of_a_Female_Figure_with_Rosary property:depicts ?p . ?p rdf:type ontology:media } } . FILTER ( ?q > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3949529
P180
Q34379 Q340169
USER
And also tell me about A Saint on Horseback?
(c(Q340169),P180,c(Q34379))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q3949529
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?s ) WHERE { ?u property:P180 ?i . ?i rdf:type ontology:Q34379 . ?u rdf:type ontology:Q340169 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q3949529 property:P180 ?c . ?c rdf:type ontology:Q340169 } } . FILTER ( ?s > ?p ) }
A Saint on Horseback
action count
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity A Saint on Horseback
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?s ) WHERE { ?u property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?u rdf:type ontology:media } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:A_Saint_on_Horseback property:depicts ?c . ?c rdf:type ontology:media } } . FILTER ( ?s > ?p ) }
[]
musical instrument media
SYSTEM
2
Q19868516 Q17519439
(c(Q340169),P180,c(Q34379))
action count
action greater
action find_tuple_counts
relation P180
type Q340169
type Q34379
action count
action filter_type
action find
entity Q3949529
relation P180
type Q340169
[ANSWER]
[{'concept': 'Q340169'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?s ) WHERE { ?u property:P180 ?i . ?i rdf:type ontology:Q34379 . ?u rdf:type ontology:Q340169 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:Q3949529 property:P180 ?c . ?c rdf:type ontology:Q340169 } } . FILTER ( ?s > ?p ) }
Violin Hanging on a Wall Achille Henri Victor Gouffé
2
action count
action greater
action find_tuple_counts
relation depicts
type media
type musical instrument
action count
action filter_type
action find
entity A Saint on Horseback
relation depicts
type media
[{'concept': 'media'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?s ) WHERE { ?u property:depicts ?i . ?i rdf:type ontology:musical_instrument . ?u rdf:type ontology:media } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { resource:A_Saint_on_Horseback property:depicts ?c . ?c rdf:type ontology:media } } . FILTER ( ?s > ?p ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q34379 Q386724
USER
How many works depict exactly 2 musical instruments ?
(c(Q386724),P180,c(Q34379))
action count
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?o ) WHERE { ?p property:P180 ?v . ?p rdf:type ontology:Q386724 . ?v rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?o = 2 ) }
action count
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?o ) WHERE { ?p property:depicts ?v . ?p rdf:type ontology:work . ?v rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?o = 2 ) }
[]
musical instrument work
SYSTEM
1
Q2901063
(c(Q386724),P180,c(Q34379))
action count
action equal
action find_tuple_counts
relation P180
type Q386724
type Q34379
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?o ) WHERE { ?p property:P180 ?v . ?p rdf:type ontology:Q386724 . ?v rdf:type ontology:Q34379 } GROUP BY ?p } . FILTER ( ?o = 2 ) }
Borghese Vase
1
action count
action equal
action find_tuple_counts
relation depicts
type work
type musical instrument
value 2
[{'concept': 'work'}, 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?o ) WHERE { ?p property:depicts ?v . ?p rdf:type ontology:work . ?v rdf:type ontology:musical_instrument } GROUP BY ?p } . FILTER ( ?o = 2 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q929312 Q2989401
P20
Q56061
USER
Which administrative territories are the places of death of José Díaz or Mikhail Balandin ?
OR((Q2989401,P20,c(Q56061)), (Q929312,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2989401
relation P20
action find
entity Q929312
relation P20
type Q56061
{'OR': [['Q2989401', 'P20', {'concept': 'Q56061'}], ['Q929312', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2989401 property:P20 ?u } UNION { resource:Q929312 property:P20 ?u } } . ?u rdf:type ontology:Q56061 }
Mikhail Balandin José Díaz
action filter_type
action union
action find
entity José Díaz
relation place of death
action find
entity Mikhail Balandin
relation place of death
type administrative territorial entity
{'OR': [['José Díaz', 'place of death', {'concept': 'administrative territorial entity'}], ['Mikhail Balandin', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:José_Díaz property:place_of_death ?u } UNION { resource:Mikhail_Balandin property:place_of_death ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2423 Q994
SYSTEM
Yaroslavl, Tbilisi
Q2423 Q994
OR((Q2989401,P20,c(Q56061)), (Q929312,P20,c(Q56061)))
action filter_type
action union
action find
entity Q2989401
relation P20
action find
entity Q929312
relation P20
type Q56061
[ANSWERS] are the places of death of José Díaz or Mikhail Balandin
{'OR': [['Q2989401', 'P20', {'concept': 'Q56061'}], ['Q929312', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q2989401 property:P20 ?u } UNION { resource:Q929312 property:P20 ?u } } . ?u rdf:type ontology:Q56061 }
Yaroslavl Tbilisi
Yaroslavl and Tbilisi are the places of death of José Díaz or Mikhail Balandin
Yaroslavl Tbilisi
action filter_type
action union
action find
entity José Díaz
relation place of death
action find
entity Mikhail Balandin
relation place of death
type administrative territorial entity
{'OR': [['José Díaz', 'place of death', {'concept': 'administrative territorial entity'}], ['Mikhail Balandin', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:José_Díaz property:place_of_death ?u } UNION { resource:Mikhail_Balandin property:place_of_death ?u } } . ?u rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1759986
P21 P1303
Q502895
USER
Which people can play Wurlitzer electric piano and are a male ?
AND((c(Q502895),P1303,Q1759986), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1759986
relation P1303
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1759986'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k property:P1303 resource:Q1759986 . ?k property:P21 resource:Q6581097 . ?k rdf:type ontology:Q502895 }
male Wurlitzer electric piano
action filter_type
action intersection
action find_reverse
entity Wurlitzer electric piano
relation instrument
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'Wurlitzer electric piano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k property:instrument resource:Wurlitzer_electric_piano . ?k property:gender resource:male . ?k rdf:type ontology:common_name }
[]
common name
Q7281591
SYSTEM
Radoslav Lorković
Q7281591
AND((c(Q502895),P1303,Q1759986), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1759986
relation P1303
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] can play Wurlitzer electric piano and are a male
{'AND': [[{'concept': 'Q502895'}, 'P1303', 'Q1759986'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?k WHERE { ?k property:P1303 resource:Q1759986 . ?k property:P21 resource:Q6581097 . ?k rdf:type ontology:Q502895 }
Radoslav Lorković
Radoslav Lorković can play Wurlitzer electric piano and are a male
Radoslav Lorković
action filter_type
action intersection
action find_reverse
entity Wurlitzer electric piano
relation instrument
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'instrument', 'Wurlitzer electric piano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?k WHERE { ?k property:instrument resource:Wurlitzer_electric_piano . ?k property:gender resource:male . ?k rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q7281591 Q1435 Q1990377
P19
Q13220204
USER
Was that person born at Zagreb and Quinsaloma Canton ?
(Q7281591,P19,Q1435) (Q7281591,P19,Q1990377)
action is_in
entity Q7281591
action intersection
action find_reverse
entity Q1435
relation P19
action find_reverse
entity Q1990377
relation P19
['Q7281591', 'P19', 'Q1435'] ['Q7281591', 'P19', 'Q1990377']
ASK WHERE { resource:Q7281591 property:P19 resource:Q1435 . resource:Q7281591 property:P19 resource:Q1990377 }
Radoslav Lorković Zagreb Quinsaloma Canton
action is_in
entity Radoslav Lorković
action intersection
action find_reverse
entity Zagreb
relation place of birth
action find_reverse
entity Quinsaloma Canton
relation place of birth
['Radoslav Lorković', 'place of birth', 'Zagreb'] ['Radoslav Lorković', 'place of birth', 'Quinsaloma Canton']
ASK WHERE { resource:Radoslav_Lorković property:place_of_birth resource:Zagreb . resource:Radoslav_Lorković property:place_of_birth resource:Quinsaloma_Canton }
[]
second-level administrative country subdivision
SYSTEM
YES and NO respectively
(Q7281591,P19,Q1435) (Q7281591,P19,Q1990377)
action is_in
entity Q7281591
action intersection
action find_reverse
entity Q1435
relation P19
action find_reverse
entity Q1990377
relation P19
[ANSWER]
['Q7281591', 'P19', 'Q1435'] ['Q7281591', 'P19', 'Q1990377']
ASK WHERE { resource:Q7281591 property:P19 resource:Q1435 . resource:Q7281591 property:P19 resource:Q1990377 }
YES and NO respectively
action is_in
entity Radoslav Lorković
action intersection
action find_reverse
entity Zagreb
relation place of birth
action find_reverse
entity Quinsaloma Canton
relation place of birth
['Radoslav Lorković', 'place of birth', 'Zagreb'] ['Radoslav Lorković', 'place of birth', 'Quinsaloma Canton']
ASK WHERE { resource:Radoslav_Lorković property:place_of_birth resource:Zagreb . resource:Radoslav_Lorković property:place_of_birth resource:Quinsaloma_Canton }
[]