Simple Question (Direct)
Simple Question
Q1677787
P1412
Q34770
USER
Which language can Jacopo Comin understand ?
(Q1677787,P1412,c(Q34770))
action filter_type
action find
entity Q1677787
relation P1412
type Q34770
['Q1677787', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q1677787 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Jacopo Comin
action filter_type
action find
entity Jacopo Comin
relation languages spoken, written or signed
type language
['Jacopo Comin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Jacopo_Comin property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q1677787,P1412,c(Q34770))
action filter_type
action find
entity Q1677787
relation P1412
type Q34770
Jacopo Comin can understand [ANSWER]
['Q1677787', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q1677787 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Italian
Jacopo Comin can understand Italian
Italian
action filter_type
action find
entity Jacopo Comin
relation languages spoken, written or signed
type language
['Jacopo Comin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Jacopo_Comin property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1677787
P58
Q838948
USER
Which works of art are Jacopo Comin a screenwriter of ?
(c(Q838948),P58,Q1677787)
action filter_type
action find_reverse
entity Q1677787
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1677787']
SELECT DISTINCT ?g WHERE { ?g property:P58 resource:Q1677787 . ?g rdf:type ontology:Q838948 }
Jacopo Comin
action filter_type
action find_reverse
entity Jacopo Comin
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Jacopo Comin']
SELECT DISTINCT ?g WHERE { ?g property:screenwriter resource:Jacopo_Comin . ?g rdf:type ontology:work_of_art }
[]
work of art
Q3965240 Q3655346
SYSTEM
Under the Southern Cross, Cani e gatti
Q3965240 Q3655346
(c(Q838948),P58,Q1677787)
action filter_type
action find_reverse
entity Q1677787
relation P58
type Q838948
[ANSWERS] are Jacopo Comin a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q1677787']
SELECT DISTINCT ?g WHERE { ?g property:P58 resource:Q1677787 . ?g rdf:type ontology:Q838948 }
Under the Southern Cross Cani e gatti
Under the Southern Cross and Cani e gatti are Jacopo Comin a screenwriter of
Under the Southern Cross Cani e gatti
action filter_type
action find_reverse
entity Jacopo Comin
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Jacopo Comin']
SELECT DISTINCT ?g WHERE { ?g property:screenwriter resource:Jacopo_Comin . ?g rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3965240 Q3655346
P86
Q502895
USER
Which people composed Under the Southern Cross and Cani e gatti ?
(Q3965240,P86,c(Q502895)) (Q3655346,P86,c(Q502895))
action union
action filter_type
action find
entity Q3965240
relation P86
type Q502895
action filter_type
action find
entity Q3655346
relation P86
type Q502895
['Q3965240', 'P86', {'concept': 'Q502895'}] ['Q3655346', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?c property:P86 ?s . VALUES ( ?c ) { ( resource:Q3965240 ) ( resource:Q3655346 ) } }
Under the Southern Cross Cani e gatti
action union
action filter_type
action find
entity Under the Southern Cross
relation composer
type common name
action filter_type
action find
entity Cani e gatti
relation composer
type common name
['Under the Southern Cross', 'composer', {'concept': 'common name'}] ['Cani e gatti', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?c property:composer ?s . VALUES ( ?c ) { ( resource:Under_the_Southern_Cross ) ( resource:Cani_e_gatti ) } }
[]
common name
Q1397252 Q21664408
SYSTEM
Renzo Rossellini, Gino Filippini
Q1397252 Q21664408
(Q3965240,P86,c(Q502895)) (Q3655346,P86,c(Q502895))
action union
action filter_type
action find
entity Q3965240
relation P86
type Q502895
action filter_type
action find
entity Q3655346
relation P86
type Q502895
[ANSWERS] composed Under the Southern Cross and Cani e gatti
['Q3965240', 'P86', {'concept': 'Q502895'}] ['Q3655346', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?c property:P86 ?s . VALUES ( ?c ) { ( resource:Q3965240 ) ( resource:Q3655346 ) } }
Renzo Rossellini Gino Filippini
Renzo Rossellini and Gino Filippini composed Under the Southern Cross and Cani e gatti
Renzo Rossellini Gino Filippini
action union
action filter_type
action find
entity Under the Southern Cross
relation composer
type common name
action filter_type
action find
entity Cani e gatti
relation composer
type common name
['Under the Southern Cross', 'composer', {'concept': 'common name'}] ['Cani e gatti', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?c property:composer ?s . VALUES ( ?c ) { ( resource:Under_the_Southern_Cross ) ( resource:Cani_e_gatti ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1397252
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q1397252,P27,c(Q15617994))
action filter_type
action find
entity Q1397252
relation P27
type Q15617994
['Q1397252', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1397252 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Renzo Rossellini
action filter_type
action find
entity Renzo Rossellini
relation country of citizenship
type designation for an administrative territorial entity
['Renzo Rossellini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Renzo_Rossellini property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1397252
SYSTEM
Did you mean Renzo Rossellini ?
Q1397252 Q21664408
(Q1397252,P27,c(Q15617994)) (Q21664408,P27,c(Q15617994))
[ANSWER]
['Q1397252', 'P27', {'concept': 'Q15617994'}] ['Q21664408', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1397252 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Renzo Rossellini Gino Filippini
Did you mean Renzo Rossellini ?
Renzo Rossellini
['Renzo Rossellini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Gino Filippini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Renzo_Rossellini property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1397252,P27,c(Q15617994))
['Q1397252', 'P27', {'concept': 'Q15617994'}]
['Renzo Rossellini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q1397252,P27,c(Q15617994))
action filter_type
action find
entity Q1397252
relation P27
type Q15617994
[ANSWER] is that person a civilian of
['Q1397252', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q1397252 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Italy
Italy is that person a civilian of
Italy
action filter_type
action find
entity Renzo Rossellini
relation country of citizenship
type designation for an administrative territorial entity
['Renzo Rossellini', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Renzo_Rossellini property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q38 Q153832 Q1228
P35
Q502895
USER
Is that administrative territory headed by Alcide De Gasperi and Oscar Luigi Scalfaro ?
(Q38,P35,Q153832) (Q38,P35,Q1228)
action is_in
entity Q38
action intersection
action find_reverse
entity Q153832
relation P35
action find_reverse
entity Q1228
relation P35
['Q38', 'P35', 'Q153832'] ['Q38', 'P35', 'Q1228']
ASK WHERE { resource:Q38 property:P35 resource:Q153832 . resource:Q38 property:P35 resource:Q1228 }
Italy Alcide De Gasperi Oscar Luigi Scalfaro
action is_in
entity Italy
action intersection
action find_reverse
entity Alcide De Gasperi
relation head of state
action find_reverse
entity Oscar Luigi Scalfaro
relation head of state
['Italy', 'head of state', 'Alcide De Gasperi'] ['Italy', 'head of state', 'Oscar Luigi Scalfaro']
ASK WHERE { resource:Italy property:head_of_state resource:Alcide_De_Gasperi . resource:Italy property:head_of_state resource:Oscar_Luigi_Scalfaro }
[]
common name
SYSTEM
YES
(Q38,P35,Q153832) (Q38,P35,Q1228)
action is_in
entity Q38
action intersection
action find_reverse
entity Q153832
relation P35
action find_reverse
entity Q1228
relation P35
[ANSWER]
['Q38', 'P35', 'Q153832'] ['Q38', 'P35', 'Q1228']
ASK WHERE { resource:Q38 property:P35 resource:Q153832 . resource:Q38 property:P35 resource:Q1228 }
Yes
action is_in
entity Italy
action intersection
action find_reverse
entity Alcide De Gasperi
relation head of state
action find_reverse
entity Oscar Luigi Scalfaro
relation head of state
['Italy', 'head of state', 'Alcide De Gasperi'] ['Italy', 'head of state', 'Oscar Luigi Scalfaro']
ASK WHERE { resource:Italy property:head_of_state resource:Alcide_De_Gasperi . resource:Italy property:head_of_state resource:Oscar_Luigi_Scalfaro }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q243652
P272
Q838948
USER
How many works of art had Italy or Hungarian Soviet Republic as the production house ?
(c(Q838948),P272,Q38) (c(Q838948),P272,Q243652)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P272
type Q838948
action filter_type
action find_reverse
entity Q243652
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q38'] [{'concept': 'Q838948'}, 'P272', 'Q243652']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:P272 resource:Q38 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P272 resource:Q243652 . ?e rdf:type ontology:Q838948 } }
Italy Hungarian Soviet Republic
action count
action union
action filter_type
action find_reverse
entity Italy
relation production company
type work of art
action filter_type
action find_reverse
entity Hungarian Soviet Republic
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Italy'] [{'concept': 'work of art'}, 'production company', 'Hungarian Soviet Republic']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:production_company resource:Italy . ?e rdf:type ontology:work_of_art } UNION { ?e property:production_company resource:Hungarian_Soviet_Republic . ?e rdf:type ontology:work_of_art } }
[]
work of art
SYSTEM
4
Q1407653 Q7774772 Q8047949 Q7995344
(c(Q838948),P272,Q38) (c(Q838948),P272,Q243652)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P272
type Q838948
action filter_type
action find_reverse
entity Q243652
relation P272
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P272', 'Q38'] [{'concept': 'Q838948'}, 'P272', 'Q243652']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:P272 resource:Q38 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P272 resource:Q243652 . ?e rdf:type ontology:Q838948 } }
The Naked Maja The Widow Yamata White Rose
4
action count
action union
action filter_type
action find_reverse
entity Italy
relation production company
type work of art
action filter_type
action find_reverse
entity Hungarian Soviet Republic
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Italy'] [{'concept': 'work of art'}, 'production company', 'Hungarian Soviet Republic']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:production_company resource:Italy . ?e rdf:type ontology:work_of_art } UNION { ?e property:production_company resource:Hungarian_Soviet_Republic . ?e rdf:type ontology:work_of_art } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5826021 Q1228
P27 P17
Q15617994
USER
Which administrative territories are the native countriesof Oscar Luigi Scalfaro or are Sungan present in ?
OR((Q1228,P27,c(Q15617994)), (Q5826021,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1228
relation P27
action find
entity Q5826021
relation P17
type Q15617994
{'OR': [['Q1228', 'P27', {'concept': 'Q15617994'}], ['Q5826021', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1228 property:P27 ?q } UNION { resource:Q5826021 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Sungan Oscar Luigi Scalfaro
action filter_type
action union
action find
entity Oscar Luigi Scalfaro
relation country of citizenship
action find
entity Sungan
relation country
type designation for an administrative territorial entity
{'OR': [['Oscar Luigi Scalfaro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sungan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Oscar_Luigi_Scalfaro property:country_of_citizenship ?q } UNION { resource:Sungan property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q794
SYSTEM
Italy, Iran
Q38 Q794
OR((Q1228,P27,c(Q15617994)), (Q5826021,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1228
relation P27
action find
entity Q5826021
relation P17
type Q15617994
[ANSWERS] are the native countriesof Oscar Luigi Scalfaro or are Sungan present in
{'OR': [['Q1228', 'P27', {'concept': 'Q15617994'}], ['Q5826021', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q1228 property:P27 ?q } UNION { resource:Q5826021 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Italy Iran
Italy and Iran are the native countriesof Oscar Luigi Scalfaro or are Sungan present in
Italy Iran
action filter_type
action union
action find
entity Oscar Luigi Scalfaro
relation country of citizenship
action find
entity Sungan
relation country
type designation for an administrative territorial entity
{'OR': [['Oscar Luigi Scalfaro', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sungan', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Oscar_Luigi_Scalfaro property:country_of_citizenship ?q } UNION { resource:Sungan property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q3839081 Q79007
USER
How many disasters and streets have that administrative territory as their toponym ?
(c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q794) (c(Q79007),P138,Q794)
[{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q794'] [{'concept': 'Q79007'}, 'P138', 'Q794']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q17715246 } UNION { ?y property:P138 resource:Q17715246 } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q79007 }
[{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Iran'] [{'concept': 'street'}, 'named after', 'Iran']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Iran } UNION { ?y property:named_after resource:Iran } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:street }
[]
disaster street
Quantitative|Count|Mult. entity type|Clarification
Q38
SYSTEM
Did you mean Italy ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q17715246 } UNION { ?y property:P138 resource:Q17715246 } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q79007 }
Did you mean Italy ?
Italy
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Iran } UNION { ?y property:named_after resource:Iran } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:street }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q794) (c(Q79007),P138,Q794)
[{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q794'] [{'concept': 'Q79007'}, 'P138', 'Q794']
[{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Iran'] [{'concept': 'street'}, 'named after', 'Iran']
[]
SYSTEM
1 disasters and 2 streets
Q2873898 Q1472152 Q22231334
(c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q38) (c(Q79007),P138,Q38) (c(Q3839081),P138,Q794) (c(Q79007),P138,Q794)
[ANSWER]
[{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q3839081'}, 'P138', 'Q794'] [{'concept': 'Q79007'}, 'P138', 'Q794']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q977238 } UNION { ?y property:P138 resource:Q977238 } UNION { ?z property:P138 resource:Q17715246 } UNION { ?y property:P138 resource:Q17715246 } } . ?z rdf:type ontology:Q3839081 . ?y rdf:type ontology:Q79007 }
avenue d'Italie Airship Italia Italiyskyi Bulvar
1 disasters and 2 streets
[{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'disaster'}, 'named after', 'Iran'] [{'concept': 'street'}, 'named after', 'Iran']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Italy } UNION { ?y property:named_after resource:Italy } UNION { ?z property:named_after resource:Iran } UNION { ?y property:named_after resource:Iran } } . ?z rdf:type ontology:disaster . ?y rdf:type ontology:street }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26239443 Q5826021
P17
Q15617994
USER
Which administrative territories are Sungan or Ariepi Dua situated in ?
OR((Q5826021,P17,c(Q15617994)), (Q26239443,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5826021
relation P17
action find
entity Q26239443
relation P17
type Q15617994
{'OR': [['Q5826021', 'P17', {'concept': 'Q15617994'}], ['Q26239443', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5826021 property:P17 ?k } UNION { resource:Q26239443 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Ariepi Dua Sungan
action filter_type
action union
action find
entity Sungan
relation country
action find
entity Ariepi Dua
relation country
type designation for an administrative territorial entity
{'OR': [['Sungan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ariepi Dua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sungan property:country ?k } UNION { resource:Ariepi_Dua property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q252 Q794
SYSTEM
Indonesia, Iran
Q252 Q794
OR((Q5826021,P17,c(Q15617994)), (Q26239443,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5826021
relation P17
action find
entity Q26239443
relation P17
type Q15617994
Sungan or Ariepi Dua are situated in [ANSWERS]
{'OR': [['Q5826021', 'P17', {'concept': 'Q15617994'}], ['Q26239443', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q5826021 property:P17 ?k } UNION { resource:Q26239443 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Indonesia Iran
Sungan or Ariepi Dua are situated in Indonesia and Iran
Indonesia Iran
action filter_type
action union
action find
entity Sungan
relation country
action find
entity Ariepi Dua
relation country
type designation for an administrative territorial entity
{'OR': [['Sungan', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ariepi Dua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Sungan property:country ?k } UNION { resource:Ariepi_Dua property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7126549 Q26239443
P17
Q15617994
USER
Which administrative territories are Ariepi Dua or Palagolla present in ?
OR((Q26239443,P17,c(Q15617994)), (Q7126549,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26239443
relation P17
action find
entity Q7126549
relation P17
type Q15617994
{'OR': [['Q26239443', 'P17', {'concept': 'Q15617994'}], ['Q7126549', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q26239443 property:P17 ?p } UNION { resource:Q7126549 property:P17 ?p } } }
Palagolla Ariepi Dua
action filter_type
action union
action find
entity Ariepi Dua
relation country
action find
entity Palagolla
relation country
type designation for an administrative territorial entity
{'OR': [['Ariepi Dua', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Palagolla', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Ariepi_Dua property:country ?p } UNION { resource:Palagolla property:country ?p } } }
[]
designation for an administrative territorial entity
Q252 Q854
SYSTEM
Indonesia, Sri Lanka
Q252 Q854
OR((Q26239443,P17,c(Q15617994)), (Q7126549,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q26239443
relation P17
action find
entity Q7126549
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q26239443', 'P17', {'concept': 'Q15617994'}], ['Q7126549', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { { resource:Q26239443 property:P17 ?p } UNION { resource:Q7126549 property:P17 ?p } } }
Indonesia Sri Lanka
Which administrative territories are Ariepi Dua or Palagolla present in
Indonesia Sri Lanka
action filter_type
action union
action find
entity Ariepi Dua
relation country
action find
entity Palagolla
relation country
type designation for an administrative territorial entity
{'OR': [['Ariepi Dua', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Palagolla', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Ariepi_Dua property:country ?p } UNION { resource:Palagolla property:country ?p } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q201658 Q838948
USER
Which administrative territories are the countries of origin of max number of film genres and works of art ?
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?r ) WHERE { { ?t property:P495 ?z . ?t rdf:type ontology:Q201658 . ?z rdf:type ontology:Q15617994 } UNION { ?t property:P495 ?z . ?t rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } } . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?x ) WHERE { { ?l property:P495 ?w . ?l rdf:type ontology:Q838948 . ?w rdf:type ontology:Q15617994 } UNION { ?l property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q201658 } } GROUP BY ?w } . FILTER ( ?x = ?i ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?r ) WHERE { { ?t property:country_of_origin ?z . ?t rdf:type ontology:film_genre . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:country_of_origin ?z . ?t rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } } . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?x ) WHERE { { ?l property:country_of_origin ?w . ?l rdf:type ontology:work_of_art . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:film_genre } } GROUP BY ?w } . FILTER ( ?x = ?i ) }
[]
designation for an administrative territorial entity film genre work of art
Q30
SYSTEM
United States of America
Q30
(c(Q201658)|c(Q838948),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
[ANSWER] is the countries of origin of max number of film genres and works of art
[[{'concept': 'Q201658'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?r ) WHERE { { ?t property:P495 ?z . ?t rdf:type ontology:Q201658 . ?z rdf:type ontology:Q15617994 } UNION { ?t property:P495 ?z . ?t rdf:type ontology:Q838948 . ?z rdf:type ontology:Q15617994 } } GROUP BY ?z } } . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?x ) WHERE { { ?l property:P495 ?w . ?l rdf:type ontology:Q838948 . ?w rdf:type ontology:Q15617994 } UNION { ?l property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q201658 } } GROUP BY ?w } . FILTER ( ?x = ?i ) }
United States of America
United States of America is the countries of origin of max number of film genres and works of art
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
[[{'concept': 'film genre'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?i ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?r ) WHERE { { ?t property:country_of_origin ?z . ?t rdf:type ontology:film_genre . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?t property:country_of_origin ?z . ?t rdf:type ontology:work_of_art . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?z } } . { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?x ) WHERE { { ?l property:country_of_origin ?w . ?l rdf:type ontology:work_of_art . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?l property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:film_genre } } GROUP BY ?w } . FILTER ( ?x = ?i ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q652 Q1677787
P57 P364
Q838948
USER
Which works of art did Jacopo Comin direct and were done in Italian language during their inception ?
AND((c(Q838948),P57,Q1677787), (c(Q838948),P364,Q652))
action filter_type
action intersection
action find_reverse
entity Q1677787
relation P57
action find_reverse
entity Q652
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q1677787'], [{'concept': 'Q838948'}, 'P364', 'Q652']]}
SELECT DISTINCT ?j WHERE { ?j property:P57 resource:Q1677787 . ?j property:P364 resource:Q652 . ?j rdf:type ontology:Q838948 }
Italian Jacopo Comin
action filter_type
action intersection
action find_reverse
entity Jacopo Comin
relation director
action find_reverse
entity Italian
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Jacopo Comin'], [{'concept': 'work of art'}, 'original language of work', 'Italian']]}
SELECT DISTINCT ?j WHERE { ?j property:director resource:Jacopo_Comin . ?j property:original_language_of_work resource:Italian . ?j rdf:type ontology:work_of_art }
[]
work of art
Q12346648
SYSTEM
Due sorelle amano
Q12346648
AND((c(Q838948),P57,Q1677787), (c(Q838948),P364,Q652))
action filter_type
action intersection
action find_reverse
entity Q1677787
relation P57
action find_reverse
entity Q652
relation P364
type Q838948
Jacopo Comin directed the [ANSWER]
{'AND': [[{'concept': 'Q838948'}, 'P57', 'Q1677787'], [{'concept': 'Q838948'}, 'P364', 'Q652']]}
SELECT DISTINCT ?j WHERE { ?j property:P57 resource:Q1677787 . ?j property:P364 resource:Q652 . ?j rdf:type ontology:Q838948 }
Due sorelle amano
Jacopo Comin directed the Due sorelle amano
Due sorelle amano
action filter_type
action intersection
action find_reverse
entity Jacopo Comin
relation director
action find_reverse
entity Italian
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'director', 'Jacopo Comin'], [{'concept': 'work of art'}, 'original language of work', 'Italian']]}
SELECT DISTINCT ?j WHERE { ?j property:director resource:Jacopo_Comin . ?j property:original_language_of_work resource:Italian . ?j rdf:type ontology:work_of_art }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q752633
P2079
Q2695280 Q838948
USER
How many technicss are used for fabrication of around the same number of works of art as linocut technique ?
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q752633
relation P2079
type Q2695280
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P2079 ?l . ?e rdf:type ontology:Q838948 . ?l rdf:type ontology:Q2695280 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ontology:Q2695280 . resource:Q752633 property:P2079 ?w } } . FILTER ( ?m = ?d ) }
linocut technique
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity linocut technique
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:fabrication_method ?l . ?e rdf:type ontology:work_of_art . ?l rdf:type ontology:technics } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ontology:technics . resource:linocut_technique property:fabrication_method ?w } } . FILTER ( ?m = ?d ) }
[]
technics work of art
SYSTEM
10
Q11750728 Q9363879 Q173242 Q204867 Q192047 Q752633 Q26265824 Q139106 Q133036 Q2657271
(c(Q838948),P2079,c(Q2695280))
action count
action approx
action find_reverse_tuple_counts
relation P2079
type Q2695280
type Q838948
action count
action filter_type
action find
entity Q752633
relation P2079
type Q2695280
[ANSWER]
[{'concept': 'Q838948'}, 'P2079', {'concept': 'Q2695280'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:P2079 ?l . ?e rdf:type ontology:Q838948 . ?l rdf:type ontology:Q2695280 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ontology:Q2695280 . resource:Q752633 property:P2079 ?w } } . FILTER ( ?m = ?d ) }
Punching stamping woodcut technique zincography machining linocut technique chasing engraving lithography silvering
10
action count
action approx
action find_reverse_tuple_counts
relation fabrication method
type technics
type work of art
action count
action filter_type
action find
entity linocut technique
relation fabrication method
type technics
[{'concept': 'work of art'}, 'fabrication method', {'concept': 'technics'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?e ) AS ?m ) WHERE { ?e property:fabrication_method ?l . ?e rdf:type ontology:work_of_art . ?l rdf:type ontology:technics } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ontology:technics . resource:linocut_technique property:fabrication_method ?w } } . FILTER ( ?m = ?d ) }
[]