Simple Question (Direct)
Simple Question
Q16104382
P734
Q82799
USER
Who has the surname Liane Aukin ?
(Q16104382,P734,c(Q82799))
action filter_type
action find
entity Q16104382
relation P734
type Q82799
['Q16104382', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q16104382 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Liane Aukin
action filter_type
action find
entity Liane Aukin
relation family name
type name
['Liane Aukin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Liane_Aukin property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q27642432
SYSTEM
Aukin
Q27642432
(Q16104382,P734,c(Q82799))
action filter_type
action find
entity Q16104382
relation P734
type Q82799
[ANSWER]
['Q16104382', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q16104382 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Aukin
Aukin
action filter_type
action find
entity Liane Aukin
relation family name
type name
['Liane Aukin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Liane_Aukin property:family_name ?y . ?y rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12806739 Q16104382
P19
Q56061
USER
Which administrative territories were Liane Aukin or Zmago Jeraj born at ?
OR((Q16104382,P19,c(Q56061)), (Q12806739,P19,c(Q56061)))
action filter_type
action union
action find
entity Q16104382
relation P19
action find
entity Q12806739
relation P19
type Q56061
{'OR': [['Q16104382', 'P19', {'concept': 'Q56061'}], ['Q12806739', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?e ) { ( resource:Q16104382 ) ( resource:Q12806739 ) } . ?e property:P19 ?k } . ?k rdf:type ontology:Q56061 }
Zmago Jeraj Liane Aukin
action filter_type
action union
action find
entity Liane Aukin
relation place of birth
action find
entity Zmago Jeraj
relation place of birth
type administrative territorial entity
{'OR': [['Liane Aukin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Zmago Jeraj', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?e ) { ( resource:Liane_Aukin ) ( resource:Zmago_Jeraj ) } . ?e property:place_of_birth ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q437 Q84
SYSTEM
Ljubljana, London
Q437 Q84
OR((Q16104382,P19,c(Q56061)), (Q12806739,P19,c(Q56061)))
action filter_type
action union
action find
entity Q16104382
relation P19
action find
entity Q12806739
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q16104382', 'P19', {'concept': 'Q56061'}], ['Q12806739', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?e ) { ( resource:Q16104382 ) ( resource:Q12806739 ) } . ?e property:P19 ?k } . ?k rdf:type ontology:Q56061 }
Ljubljana London
Ljubljana London
action filter_type
action union
action find
entity Liane Aukin
relation place of birth
action find
entity Zmago Jeraj
relation place of birth
type administrative territorial entity
{'OR': [['Liane Aukin', 'place of birth', {'concept': 'administrative territorial entity'}], ['Zmago Jeraj', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { VALUES ( ?e ) { ( resource:Liane_Aukin ) ( resource:Zmago_Jeraj ) } . ?e property:place_of_birth ?k } . ?k rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1435
P190
Q13220204
USER
Are Zagreb a sister city of those administrative territories ?
(Q1435,P190,Q437) (Q1435,P190,Q84)
action is_in
entity prev_answer
action find
entity Q1435
relation P190
['Q1435', 'P190', 'Q437'] ['Q1435', 'P190', 'Q84']
ASK WHERE { VALUES ( ?i ) { ( resource:Q437 ) ( resource:Q84 ) } . resource:Q1435 property:P190 ?i }
Zagreb
action is_in
entity prev_answer
action find
entity Zagreb
relation sister city
['Zagreb', 'sister city', 'Ljubljana'] ['Zagreb', 'sister city', 'London']
ASK WHERE { VALUES ( ?i ) { ( resource:Ljubljana ) ( resource:London ) } . resource:Zagreb property:sister_city ?i }
[]
second-level administrative country subdivision
SYSTEM
YES
(Q1435,P190,Q437) (Q1435,P190,Q84)
action is_in
entity prev_answer
action find
entity Q1435
relation P190
[ANSWER]
['Q1435', 'P190', 'Q437'] ['Q1435', 'P190', 'Q84']
ASK WHERE { VALUES ( ?i ) { ( resource:Q437 ) ( resource:Q84 ) } . resource:Q1435 property:P190 ?i }
Yes
action is_in
entity prev_answer
action find
entity Zagreb
relation sister city
['Zagreb', 'sister city', 'Ljubljana'] ['Zagreb', 'sister city', 'London']
ASK WHERE { VALUES ( ?i ) { ( resource:Ljubljana ) ( resource:London ) } . resource:Zagreb property:sister_city ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q84 Q1353
P190
Q56061
USER
Is Delhi the sister city of London ?
(Q84,P190,Q1353)
action is_in
entity Q1353
action find
entity Q84
relation P190
['Q84', 'P190', 'Q1353']
ASK WHERE { resource:Q84 property:P190 resource:Q1353 }
London Delhi
action is_in
entity Delhi
action find
entity London
relation sister city
['London', 'sister city', 'Delhi']
ASK WHERE { resource:London property:sister_city resource:Delhi }
[]
administrative territorial entity
SYSTEM
YES
(Q84,P190,Q1353)
action is_in
entity Q1353
action find
entity Q84
relation P190
[ANSWER]
['Q84', 'P190', 'Q1353']
ASK WHERE { resource:Q84 property:P190 resource:Q1353 }
Yes
action is_in
entity Delhi
action find
entity London
relation sister city
['London', 'sister city', 'Delhi']
ASK WHERE { resource:London property:sister_city resource:Delhi }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q214169
P180
Q82799 Q15709879 Q17335294
USER
Which names are depicted in more number of artwork series or coats of arms than pheasant ?
(c(Q15709879)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q214169
relation P180
type Q15709879
type Q17335294
[[{'concept': 'Q15709879'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?h ) { ( ontology:Q15709879 ) ( ontology:Q17335294 ) } . ?w rdf:type ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P180 resource:Q214169 . { { ?z rdf:type ontology:Q15709879 } UNION { ?z rdf:type ontology:Q17335294 } } } } . FILTER ( ?l > ?b ) }
pheasant
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity pheasant
relation depicts
type artwork series
type flag or coat of arms
[[{'concept': 'artwork series'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?h ) { ( ontology:artwork_series ) ( ontology:flag_or_coat_of_arms ) } . ?w rdf:type ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:depicts resource:pheasant . { { ?z rdf:type ontology:artwork_series } UNION { ?z rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?l > ?b ) }
[]
name artwork series flag or coat of arms
Q144 Q152 Q726
SYSTEM
dog, fish, horse
Q5 Q726 Q144 Q201251 Q43115 Q152
(c(Q15709879)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q214169
relation P180
type Q15709879
type Q17335294
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?h ) { ( ontology:Q15709879 ) ( ontology:Q17335294 ) } . ?w rdf:type ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P180 resource:Q214169 . { { ?z rdf:type ontology:Q15709879 } UNION { ?z rdf:type ontology:Q17335294 } } } } . FILTER ( ?l > ?b ) }
human horse dog peacock saint fish
dog fish horse
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity pheasant
relation depicts
type artwork series
type flag or coat of arms
[[{'concept': 'artwork series'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?l ) WHERE { VALUES ( ?h ) { ( ontology:artwork_series ) ( ontology:flag_or_coat_of_arms ) } . ?w rdf:type ?h } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:depicts resource:pheasant . { { ?z rdf:type ontology:artwork_series } UNION { ?z rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?l > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q190294
P180
Q82799 Q15709879 Q17335294
USER
And also tell me about mouflon?
(c(Q15709879)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q190294
relation P180
type Q15709879
type Q17335294
[[{'concept': 'Q15709879'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P180 resource:Q190294 . { { ?v rdf:type ontology:Q17335294 } UNION { ?v rdf:type ontology:Q15709879 } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:P180 ?a . ?a rdf:type ontology:Q82799 . ?d rdf:type ontology:Q15709879 } UNION { ?d property:P180 ?a . ?a rdf:type ontology:Q82799 . ?d rdf:type ontology:Q17335294 } } GROUP BY ?a } }
mouflon
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity mouflon
relation depicts
type artwork series
type flag or coat of arms
[[{'concept': 'artwork series'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:depicts resource:mouflon . { { ?v rdf:type ontology:flag_or_coat_of_arms } UNION { ?v rdf:type ontology:artwork_series } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:depicts ?a . ?a rdf:type ontology:name . ?d rdf:type ontology:artwork_series } UNION { ?d property:depicts ?a . ?a rdf:type ontology:name . ?d rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?a } }
[]
name artwork series flag or coat of arms
Q144 Q152 Q726
SYSTEM
dog, fish, horse
Q5 Q726 Q144 Q201251 Q43115 Q152
(c(Q15709879)|c(Q17335294),P180,c(Q82799))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q190294
relation P180
type Q15709879
type Q17335294
[ANSWERS]
[[{'concept': 'Q15709879'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:P180 resource:Q190294 . { { ?v rdf:type ontology:Q17335294 } UNION { ?v rdf:type ontology:Q15709879 } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:P180 ?a . ?a rdf:type ontology:Q82799 . ?d rdf:type ontology:Q15709879 } UNION { ?d property:P180 ?a . ?a rdf:type ontology:Q82799 . ?d rdf:type ontology:Q17335294 } } GROUP BY ?a } }
human horse dog peacock saint fish
dog fish horse
action greater
action union
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity mouflon
relation depicts
type artwork series
type flag or coat of arms
[[{'concept': 'artwork series'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { ?v property:depicts resource:mouflon . { { ?v rdf:type ontology:flag_or_coat_of_arms } UNION { ?v rdf:type ontology:artwork_series } } } } . FILTER ( ?s > ?i ) . { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?s ) WHERE { { ?d property:depicts ?a . ?a rdf:type ontology:name . ?d rdf:type ontology:artwork_series } UNION { ?d property:depicts ?a . ?a rdf:type ontology:name . ?d rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?a } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P138
Q82799 Q22698 Q7946
USER
Which names are greater number of parks and minerals named after than that name ?
(c(Q22698)|c(Q7946),P138,c(Q82799))
[[{'concept': 'Q22698'}, {'concept': 'Q7946'}], 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q22698 . ?y rdf:type ontology:Q82799 . ?x rdf:type ontology:Q7946 }
[[{'concept': 'park'}, {'concept': 'mineral'}], 'named after', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:park . ?y rdf:type ontology:name . ?x rdf:type ontology:mineral }
[]
name park mineral
Comparative|More/Less|Mult. entity type|Clarification
Q144
SYSTEM
Did you mean dog ?
(c(Q22698)|c(Q7946),P138,c(Q82799))
[ANSWER]
[[{'concept': 'Q22698'}, {'concept': 'Q7946'}], 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q22698 . ?y rdf:type ontology:Q82799 . ?x rdf:type ontology:Q7946 }
Did you mean dog ?
dog
[[{'concept': 'park'}, {'concept': 'mineral'}], 'named after', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:park . ?y rdf:type ontology:name . ?x rdf:type ontology:mineral }
[]
Comparative Reasoning (All)
USER
No, I meant fish. Could you tell me the answer for that?
(c(Q22698)|c(Q7946),P138,c(Q82799))
Q152
[[{'concept': 'Q22698'}, {'concept': 'Q7946'}], 'P138', {'concept': 'Q82799'}]
[[{'concept': 'park'}, {'concept': 'mineral'}], 'named after', {'concept': 'name'}]
[]
Q5 Q308841
SYSTEM
human, snail
Q5 Q308841
(c(Q22698)|c(Q7946),P138,c(Q82799))
[ANSWERS]
[[{'concept': 'Q22698'}, {'concept': 'Q7946'}], 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P138 ?y } UNION { ?x property:P138 ?y } } . ?z rdf:type ontology:Q22698 . ?y rdf:type ontology:Q82799 . ?x rdf:type ontology:Q7946 }
human snail
human snail
[[{'concept': 'park'}, {'concept': 'mineral'}], 'named after', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { { { ?z property:named_after ?y } UNION { ?x property:named_after ?y } } . ?z rdf:type ontology:park . ?y rdf:type ontology:name . ?x rdf:type ontology:mineral }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q18783400 Q15709879
USER
Which names are expressed in around 1 genres of sculpture and artwork series ?
(c(Q18783400)|c(Q15709879),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
value 1
[[{'concept': 'Q18783400'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?v ) WHERE { { ?w rdf:type ontology:Q82799 . ?b rdf:type ontology:Q15709879 . ?b property:P180 ?w } UNION { ?b property:P180 ?w . ?b rdf:type ontology:Q18783400 . ?w rdf:type ontology:Q82799 } } GROUP BY ?w } . FILTER ( ?v = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?v ) WHERE { { ?w rdf:type ontology:name . ?b rdf:type ontology:artwork_series . ?b property:depicts ?w } UNION { ?b property:depicts ?w . ?b rdf:type ontology:genre_of_sculpture . ?w rdf:type ontology:name } } GROUP BY ?w } . FILTER ( ?v = 1 ) }
[]
name genre of sculpture artwork series
Q144 Q1807269 Q876933
SYSTEM
dog, leek, magi
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q18783400)|c(Q15709879),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q82799
type Q15709879
value 1
[ANSWERS]
[[{'concept': 'Q18783400'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?v ) WHERE { { ?w rdf:type ontology:Q82799 . ?b rdf:type ontology:Q15709879 . ?b property:P180 ?w } UNION { ?b property:P180 ?w . ?b rdf:type ontology:Q18783400 . ?w rdf:type ontology:Q82799 } } GROUP BY ?w } . FILTER ( ?v = 1 ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
dog leek magi
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type name
type artwork series
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?b ) AS ?v ) WHERE { { ?w rdf:type ontology:name . ?b rdf:type ontology:artwork_series . ?b property:depicts ?w } UNION { ?b property:depicts ?w . ?b rdf:type ontology:genre_of_sculpture . ?w rdf:type ontology:name } } GROUP BY ?w } . FILTER ( ?v = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q29363 Q12806739
P47 P27
Q15617994
USER
Which administrative territories do Zmago Jeraj belong to or are adjacent to Cappella Maggiore ?
OR((Q12806739,P27,c(Q15617994)), (Q29363,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q12806739
relation P27
action find
entity Q29363
relation P47
type Q15617994
{'OR': [['Q12806739', 'P27', {'concept': 'Q15617994'}], ['Q29363', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q12806739 property:P27 ?u } UNION { resource:Q29363 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
Cappella Maggiore Zmago Jeraj
action filter_type
action union
action find
entity Zmago Jeraj
relation country of citizenship
action find
entity Cappella Maggiore
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Zmago Jeraj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cappella Maggiore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Zmago_Jeraj property:country_of_citizenship ?u } UNION { resource:Cappella_Maggiore property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q47578 Q215 Q47105 Q46697 Q46822
SYSTEM
Vittorio Veneto, Slovenia, Cordignano, Colle Umberto, Sarmede
Q47578 Q215 Q47105 Q46697 Q46822
OR((Q12806739,P27,c(Q15617994)), (Q29363,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q12806739
relation P27
action find
entity Q29363
relation P47
type Q15617994
[ANSWERS]
{'OR': [['Q12806739', 'P27', {'concept': 'Q15617994'}], ['Q29363', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q12806739 property:P27 ?u } UNION { resource:Q29363 property:P47 ?u } } . ?u rdf:type ontology:Q15617994 }
Vittorio Veneto Slovenia Cordignano Colle Umberto Sarmede
Vittorio Veneto Slovenia Cordignano Colle Umberto Sarmede
action filter_type
action union
action find
entity Zmago Jeraj
relation country of citizenship
action find
entity Cappella Maggiore
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Zmago Jeraj', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Cappella Maggiore', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Zmago_Jeraj property:country_of_citizenship ?u } UNION { resource:Cappella_Maggiore property:shares_border_with ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q47105
P20
Q502895
USER
Which people have that administrative territory as the location of death ?
(c(Q502895),P20,Q47105)
action filter_type
action find_reverse
entity Q47105
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q47105']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P20 resource:Q47105 }
Cordignano
action filter_type
action find_reverse
entity Cordignano
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Cordignano']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:place_of_death resource:Cordignano }
[]
common name
Clarification for simple ques.
Q47578
SYSTEM
Did you mean Vittorio Veneto ?
Q47578 Q215 Q47105 Q46697 Q46822
(c(Q502895),P20,Q47578) (c(Q502895),P20,Q215) (c(Q502895),P20,Q47105) (c(Q502895),P20,Q46697) (c(Q502895),P20,Q46822)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q47578'] [{'concept': 'Q502895'}, 'P20', 'Q215'] [{'concept': 'Q502895'}, 'P20', 'Q47105'] [{'concept': 'Q502895'}, 'P20', 'Q46697'] [{'concept': 'Q502895'}, 'P20', 'Q46822']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P20 resource:Q47105 }
Vittorio Veneto Slovenia Cordignano Colle Umberto Sarmede
Did you mean Vittorio Veneto ?
Vittorio Veneto
[{'concept': 'common name'}, 'place of death', 'Vittorio Veneto'] [{'concept': 'common name'}, 'place of death', 'Slovenia'] [{'concept': 'common name'}, 'place of death', 'Cordignano'] [{'concept': 'common name'}, 'place of death', 'Colle Umberto'] [{'concept': 'common name'}, 'place of death', 'Sarmede']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:place_of_death resource:Cordignano }
[]
Simple Question (Coreferenced)
USER
No, I meant Cordignano. Could you tell me the answer for that?
(c(Q502895),P20,Q47105)
Q47105
[{'concept': 'Q502895'}, 'P20', 'Q47105']
[{'concept': 'common name'}, 'place of death', 'Cordignano']
[]
Q18222974 Q3618049
SYSTEM
Mario Casanuova Jerserinch, Annibale Brandolin
Q18222974 Q3618049
(c(Q502895),P20,Q47105)
action filter_type
action find_reverse
entity Q47105
relation P20
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P20', 'Q47105']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . ?o property:P20 resource:Q47105 }
Mario Casanuova Jerserinch Annibale Brandolin
Mario Casanuova Jerserinch Annibale Brandolin
action filter_type
action find_reverse
entity Cordignano
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Cordignano']
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . ?o property:place_of_death resource:Cordignano }
[]