Simple Question (Direct)
Simple Question
Q3614232
P136
Q9332
USER
What can be considered as category for Absolute Friends ?
(Q3614232,P136,c(Q9332))
action filter_type
action find
entity Q3614232
relation P136
type Q9332
['Q3614232', 'P136', {'concept': 'Q9332'}]
SELECT DISTINCT ?b WHERE { resource:Q3614232 property:P136 ?b . ?b rdf:type ontology:Q9332 }
Absolute Friends
action filter_type
action find
entity Absolute Friends
relation genre
type behavior
['Absolute Friends', 'genre', {'concept': 'behavior'}]
SELECT DISTINCT ?b WHERE { resource:Absolute_Friends property:genre ?b . ?b rdf:type ontology:behavior }
[]
behavior
Q165950
SYSTEM
espionage
Q165950
(Q3614232,P136,c(Q9332))
action filter_type
action find
entity Q3614232
relation P136
type Q9332
[ANSWER] can be considered as category for Absolute Friends
['Q3614232', 'P136', {'concept': 'Q9332'}]
SELECT DISTINCT ?b WHERE { resource:Q3614232 property:P136 ?b . ?b rdf:type ontology:Q9332 }
espionage
Espionage can be considered as category for Absolute Friends
espionage
action filter_type
action find
entity Absolute Friends
relation genre
type behavior
['Absolute Friends', 'genre', {'concept': 'behavior'}]
SELECT DISTINCT ?b WHERE { resource:Absolute_Friends property:genre ?b . ?b rdf:type ontology:behavior }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3614232
P50
Q502895
USER
Who penned Absolute Friends ?
(Q3614232,P50,c(Q502895))
action filter_type
action find
entity Q3614232
relation P50
type Q502895
['Q3614232', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3614232 property:P50 ?q }
Absolute Friends
action filter_type
action find
entity Absolute Friends
relation author
type common name
['Absolute Friends', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Absolute_Friends property:author ?q }
[]
common name
Q209641
SYSTEM
John le Carré
Q209641
(Q3614232,P50,c(Q502895))
action filter_type
action find
entity Q3614232
relation P50
type Q502895
[ANSWER] penned Absolute Friends
['Q3614232', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q502895 . resource:Q3614232 property:P50 ?q }
John le Carré
John le Carré penned Absolute Friends
John le Carré
action filter_type
action find
entity Absolute Friends
relation author
type common name
['Absolute Friends', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:common_name . resource:Absolute_Friends property:author ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7993343
Q502895
USER
And what about Where They Create?
(Q7993343,P50,c(Q502895))
action filter_type
action find
entity Q7993343
relation P50
type Q502895
['Q7993343', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q7993343 property:P50 ?u . ?u rdf:type ontology:Q502895 }
Where They Create
action filter_type
action find
entity Where They Create
relation author
type common name
['Where They Create', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Where_They_Create property:author ?u . ?u rdf:type ontology:common_name }
[]
common name
Q7149217
SYSTEM
Paul Barbera
Q7149217
(Q7993343,P50,c(Q502895))
action filter_type
action find
entity Q7993343
relation P50
type Q502895
And [ANSWER] And about Create
['Q7993343', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q7993343 property:P50 ?u . ?u rdf:type ontology:Q502895 }
Paul Barbera
And Paul Barbera And about Create
Paul Barbera
action filter_type
action find
entity Where They Create
relation author
type common name
['Where They Create', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Where_They_Create property:author ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7149217 Q2088944
P27
Q1048835
USER
Is that person a civilian of São Gonçalo do Amarante, Rio Grande do Norte ?
(Q7149217,P27,Q2088944)
action is_in
entity Q2088944
action find
entity Q7149217
relation P27
['Q7149217', 'P27', 'Q2088944']
ASK WHERE { resource:Q7149217 property:P27 resource:Q2088944 }
Paul Barbera São Gonçalo do Amarante, Rio Grande do Norte
action is_in
entity São Gonçalo do Amarante, Rio Grande do Norte
action find
entity Paul Barbera
relation country of citizenship
['Paul Barbera', 'country of citizenship', 'São Gonçalo do Amarante, Rio Grande do Norte']
ASK WHERE { resource:Paul_Barbera property:country_of_citizenship resource:São_Gonçalo_do_Amarante,_Rio_Grande_do_Norte }
[]
political territorial entity
SYSTEM
NO
(Q7149217,P27,Q2088944)
action is_in
entity Q2088944
action find
entity Q7149217
relation P27
[ANSWER]
['Q7149217', 'P27', 'Q2088944']
ASK WHERE { resource:Q7149217 property:P27 resource:Q2088944 }
No
action is_in
entity São Gonçalo do Amarante, Rio Grande do Norte
action find
entity Paul Barbera
relation country of citizenship
['Paul Barbera', 'country of citizenship', 'São Gonçalo do Amarante, Rio Grande do Norte']
ASK WHERE { resource:Paul_Barbera property:country_of_citizenship resource:São_Gonçalo_do_Amarante,_Rio_Grande_do_Norte }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q30 Q165950
P27 P1399
Q502895
USER
Which people were convicted of espionage and do n't have nationality of United States of America ?
AND((c(Q502895),P1399,Q165950), NOT((c(Q502895),P27,Q30)))
action filter_type
action difference
action find_reverse
entity Q165950
relation P1399
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1399', 'Q165950'], {'NOT': [[{'concept': 'Q502895'}, 'P27', 'Q30']]}]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P1399 resource:Q165950 . FILTER NOT EXISTS { ?r property:P27 resource:Q30 } }
United States of America espionage
action filter_type
action difference
action find_reverse
entity espionage
relation convicted of
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'convicted of', 'espionage'], {'NOT': [[{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:convicted_of resource:espionage . FILTER NOT EXISTS { ?r property:country_of_citizenship resource:United_States_of_America } }
[]
common name
Q7032382 Q2831264 Q2827110 Q1389049 Q2839371 Q16267097 Q1071513
SYSTEM
Shimon Levinson, Albert Idohou, Agoussi Wabi, Stig Wennerström, Aloysius Odervole, Omar Blondin Diop, Konon Molody
Q7032382 Q2831264 Q2827110 Q1389049 Q2839371 Q16267097 Q1071513
AND((c(Q502895),P1399,Q165950), NOT((c(Q502895),P27,Q30)))
action filter_type
action difference
action find_reverse
entity Q165950
relation P1399
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWERS] were convicted of espionage and do n't have nationality of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P1399', 'Q165950'], {'NOT': [[{'concept': 'Q502895'}, 'P27', 'Q30']]}]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q502895 . ?r property:P1399 resource:Q165950 . FILTER NOT EXISTS { ?r property:P27 resource:Q30 } }
Shimon Levinson Albert Idohou Agoussi Wabi Stig Wennerström Aloysius Odervole Omar Blondin Diop Konon Molody
Shimon Levinson, Albert Idohou, Agoussi Wabi, Stig Wennerström, Aloysius Odervole, Omar Blondin Diop and Konon Molody were convicted of espionage and do n't have nationality of United States of America
Shimon Levinson Albert Idohou Agoussi Wabi Stig Wennerström Aloysius Odervole Omar Blondin Diop Konon Molody
action filter_type
action difference
action find_reverse
entity espionage
relation convicted of
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'convicted of', 'espionage'], {'NOT': [[{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:common_name . ?r property:convicted_of resource:espionage . FILTER NOT EXISTS { ?r property:country_of_citizenship resource:United_States_of_America } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3972387 Q2088944
P27 P17
Q15617994
USER
Which administrative territories do São Gonçalo do Amarante, Rio Grande do Norte belong to or do Stefano Boco belong to ?
OR((Q2088944,P17,c(Q15617994)), (Q3972387,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2088944
relation P17
action find
entity Q3972387
relation P27
type Q15617994
{'OR': [['Q2088944', 'P17', {'concept': 'Q15617994'}], ['Q3972387', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q3972387 property:P27 ?i } UNION { resource:Q2088944 property:P17 ?i } } }
Stefano Boco São Gonçalo do Amarante, Rio Grande do Norte
action filter_type
action union
action find
entity São Gonçalo do Amarante, Rio Grande do Norte
relation country
action find
entity Stefano Boco
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['São Gonçalo do Amarante, Rio Grande do Norte', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Stefano Boco', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefano_Boco property:country_of_citizenship ?i } UNION { resource:São_Gonçalo_do_Amarante,_Rio_Grande_do_Norte property:country ?i } } }
[]
designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
OR((Q2088944,P17,c(Q15617994)), (Q3972387,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2088944
relation P17
action find
entity Q3972387
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q2088944', 'P17', {'concept': 'Q15617994'}], ['Q3972387', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q3972387 property:P27 ?i } UNION { resource:Q2088944 property:P17 ?i } } }
Brazil Italy
Which administrative territories São Gonçalo Amarante, Rio Grande Norte belong to or Stefano Boco belong to
Brazil Italy
action filter_type
action union
action find
entity São Gonçalo do Amarante, Rio Grande do Norte
relation country
action find
entity Stefano Boco
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['São Gonçalo do Amarante, Rio Grande do Norte', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Stefano Boco', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Stefano_Boco property:country_of_citizenship ?i } UNION { resource:São_Gonçalo_do_Amarante,_Rio_Grande_do_Norte property:country ?i } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3284453
P495
Q838948
USER
Do Gabriela, Cravo e Canela have those administrative territories as their place of origin ?
(Q3284453,P495,Q155) (Q3284453,P495,Q38)
action is_in
entity prev_answer
action find
entity Q3284453
relation P495
['Q3284453', 'P495', 'Q155'] ['Q3284453', 'P495', 'Q38']
ASK WHERE { resource:Q3284453 property:P495 ?f . VALUES ( ?f ) { ( resource:Q155 ) ( resource:Q38 ) } }
Gabriela, Cravo e Canela
action is_in
entity prev_answer
action find
entity Gabriela, Cravo e Canela
relation country of origin
['Gabriela, Cravo e Canela', 'country of origin', 'Brazil'] ['Gabriela, Cravo e Canela', 'country of origin', 'Italy']
ASK WHERE { resource:Gabriela,_Cravo_e_Canela property:country_of_origin ?f . VALUES ( ?f ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
work of art
SYSTEM
YES
(Q3284453,P495,Q155) (Q3284453,P495,Q38)
action is_in
entity prev_answer
action find
entity Q3284453
relation P495
[ANSWER]
['Q3284453', 'P495', 'Q155'] ['Q3284453', 'P495', 'Q38']
ASK WHERE { resource:Q3284453 property:P495 ?f . VALUES ( ?f ) { ( resource:Q155 ) ( resource:Q38 ) } }
Yes
action is_in
entity prev_answer
action find
entity Gabriela, Cravo e Canela
relation country of origin
['Gabriela, Cravo e Canela', 'country of origin', 'Brazil'] ['Gabriela, Cravo e Canela', 'country of origin', 'Italy']
ASK WHERE { resource:Gabriela,_Cravo_e_Canela property:country_of_origin ?f . VALUES ( ?f ) { ( resource:Brazil ) ( resource:Italy ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2831264 Q7638072 Q142
P27
Q15617994
USER
Is Albert Idohou a native of Sumter County School District and France ?
(Q2831264,P27,Q7638072) (Q2831264,P27,Q142)
action is_in
entity Q2831264
action intersection
action find_reverse
entity Q7638072
relation P27
action find_reverse
entity Q142
relation P27
['Q2831264', 'P27', 'Q7638072'] ['Q2831264', 'P27', 'Q142']
ASK WHERE { resource:Q2831264 property:P27 resource:Q142 . resource:Q2831264 property:P27 resource:Q7638072 }
Albert Idohou Sumter County School District France
action is_in
entity Albert Idohou
action intersection
action find_reverse
entity Sumter County School District
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Albert Idohou', 'country of citizenship', 'Sumter County School District'] ['Albert Idohou', 'country of citizenship', 'France']
ASK WHERE { resource:Albert_Idohou property:country_of_citizenship resource:France . resource:Albert_Idohou property:country_of_citizenship resource:Sumter_County_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q2831264,P27,Q7638072) (Q2831264,P27,Q142)
action is_in
entity Q2831264
action intersection
action find_reverse
entity Q7638072
relation P27
action find_reverse
entity Q142
relation P27
[ANSWER]
['Q2831264', 'P27', 'Q7638072'] ['Q2831264', 'P27', 'Q142']
ASK WHERE { resource:Q2831264 property:P27 resource:Q142 . resource:Q2831264 property:P27 resource:Q7638072 }
NO and YES respectively
action is_in
entity Albert Idohou
action intersection
action find_reverse
entity Sumter County School District
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
['Albert Idohou', 'country of citizenship', 'Sumter County School District'] ['Albert Idohou', 'country of citizenship', 'France']
ASK WHERE { resource:Albert_Idohou property:country_of_citizenship resource:France . resource:Albert_Idohou property:country_of_citizenship resource:Sumter_County_School_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2839371 Q145
P27
Q15617994
USER
Does Aloysius Odervole belong to United Kingdom ?
(Q2839371,P27,Q145)
action is_in
entity Q145
action find
entity Q2839371
relation P27
['Q2839371', 'P27', 'Q145']
ASK WHERE { resource:Q2839371 property:P27 resource:Q145 }
Aloysius Odervole United Kingdom
action is_in
entity United Kingdom
action find
entity Aloysius Odervole
relation country of citizenship
['Aloysius Odervole', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Aloysius_Odervole property:country_of_citizenship resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2839371,P27,Q145)
action is_in
entity Q145
action find
entity Q2839371
relation P27
[ANSWER]
['Q2839371', 'P27', 'Q145']
ASK WHERE { resource:Q2839371 property:P27 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity Aloysius Odervole
relation country of citizenship
['Aloysius Odervole', 'country of citizenship', 'United Kingdom']
ASK WHERE { resource:Aloysius_Odervole property:country_of_citizenship resource:United_Kingdom }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2839371
P27
Q15617994
USER
How many administrative territories are the countries of citizenship of Aloysius Odervole ?
(Q2839371,P27,c(Q15617994))
action count
action filter_type
action find
entity Q2839371
relation P27
type Q15617994
['Q2839371', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q2839371 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Aloysius Odervole
action count
action filter_type
action find
entity Aloysius Odervole
relation country of citizenship
type designation for an administrative territorial entity
['Aloysius Odervole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Aloysius_Odervole property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q2839371,P27,c(Q15617994))
action count
action filter_type
action find
entity Q2839371
relation P27
type Q15617994
[ANSWER]
['Q2839371', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Q2839371 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Aloysius Odervole
relation country of citizenship
type designation for an administrative territorial entity
['Aloysius Odervole', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { resource:Aloysius_Odervole property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]