Simple Question (Direct)
Simple Question
Q3405395
P57
Q502895
USER
Which person served as the directed of Bal-Can-Can ?
(Q3405395,P57,c(Q502895))
action filter_type
action find
entity Q3405395
relation P57
type Q502895
['Q3405395', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3405395 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Bal-Can-Can
action filter_type
action find
entity Bal-Can-Can
relation director
type common name
['Bal-Can-Can', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Bal-Can-Can property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q3397037
SYSTEM
Darko Mitrevski
Q3397037
(Q3405395,P57,c(Q502895))
action filter_type
action find
entity Q3405395
relation P57
type Q502895
[ANSWER] served as the directed of Bal-Can-Can
['Q3405395', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q3405395 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Darko Mitrevski
Darko Mitrevski served as the directed of Bal-Can-Can
Darko Mitrevski
action filter_type
action find
entity Bal-Can-Can
relation director
type common name
['Bal-Can-Can', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Bal-Can-Can property:director ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3397037
P162
Q838948
USER
Which work of art has been produced by that person ?
(c(Q838948),P162,Q3397037)
action filter_type
action find_reverse
entity Q3397037
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q3397037']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P162 resource:Q3397037 }
Darko Mitrevski
action filter_type
action find_reverse
entity Darko Mitrevski
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Darko Mitrevski']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:producer resource:Darko_Mitrevski }
[]
work of art
Q3409692
SYSTEM
Goodbye, 20th Century!
Q3409692
(c(Q838948),P162,Q3397037)
action filter_type
action find_reverse
entity Q3397037
relation P162
type Q838948
[ANSWER] has been produced by that person
[{'concept': 'Q838948'}, 'P162', 'Q3397037']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q838948 . ?k property:P162 resource:Q3397037 }
Goodbye, 20th Century!
Goodbye, 20th Century! has been produced by that person
Goodbye, 20th Century!
action filter_type
action find_reverse
entity Darko Mitrevski
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Darko Mitrevski']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:work_of_art . ?k property:producer resource:Darko_Mitrevski }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1634805 Q3405395
P495
Q15617994
USER
Which administrative territories are the countries of origin of Bal-Can-Can and Seven Beauties ?
AND((Q3405395,P495,c(Q15617994)), (Q1634805,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3405395
relation P495
action find
entity Q1634805
relation P495
type Q15617994
{'AND': [['Q3405395', 'P495', {'concept': 'Q15617994'}], ['Q1634805', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q3405395 property:P495 ?s . resource:Q1634805 property:P495 ?s }
Seven Beauties Bal-Can-Can
action filter_type
action intersection
action find
entity Bal-Can-Can
relation country of origin
action find
entity Seven Beauties
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Bal-Can-Can', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Seven Beauties', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bal-Can-Can property:country_of_origin ?s . resource:Seven_Beauties property:country_of_origin ?s }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q3405395,P495,c(Q15617994)), (Q1634805,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3405395
relation P495
action find
entity Q1634805
relation P495
type Q15617994
[ANSWER] is the countries of origin of Bal-Can-Can and Seven Beauties
{'AND': [['Q3405395', 'P495', {'concept': 'Q15617994'}], ['Q1634805', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q3405395 property:P495 ?s . resource:Q1634805 property:P495 ?s }
Italy
Italy is the countries of origin of Bal-Can-Can and Seven Beauties
Italy
action filter_type
action intersection
action find
entity Bal-Can-Can
relation country of origin
action find
entity Seven Beauties
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Bal-Can-Can', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Seven Beauties', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Bal-Can-Can property:country_of_origin ?s . resource:Seven_Beauties property:country_of_origin ?s }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q38 Q4762750 Q5982558
P35
Q502895
USER
Does that administrative territory have Angelina Teny and Dave McShane as its chief of state ?
(Q38,P35,Q4762750) (Q38,P35,Q5982558)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4762750
relation P35
action find_reverse
entity Q5982558
relation P35
['Q38', 'P35', 'Q4762750'] ['Q38', 'P35', 'Q5982558']
ASK WHERE { resource:Q38 property:P35 resource:Q5982558 . resource:Q38 property:P35 resource:Q4762750 }
Italy Angelina Teny Dave McShane
action is_in
entity Italy
action intersection
action find_reverse
entity Angelina Teny
relation head of state
action find_reverse
entity Dave McShane
relation head of state
['Italy', 'head of state', 'Angelina Teny'] ['Italy', 'head of state', 'Dave McShane']
ASK WHERE { resource:Italy property:head_of_state resource:Dave_McShane . resource:Italy property:head_of_state resource:Angelina_Teny }
[]
common name
SYSTEM
NO
(Q38,P35,Q4762750) (Q38,P35,Q5982558)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4762750
relation P35
action find_reverse
entity Q5982558
relation P35
[ANSWER]
['Q38', 'P35', 'Q4762750'] ['Q38', 'P35', 'Q5982558']
ASK WHERE { resource:Q38 property:P35 resource:Q5982558 . resource:Q38 property:P35 resource:Q4762750 }
No
action is_in
entity Italy
action intersection
action find_reverse
entity Angelina Teny
relation head of state
action find_reverse
entity Dave McShane
relation head of state
['Italy', 'head of state', 'Angelina Teny'] ['Italy', 'head of state', 'Dave McShane']
ASK WHERE { resource:Italy property:head_of_state resource:Dave_McShane . resource:Italy property:head_of_state resource:Angelina_Teny }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3405395 Q38
P495
Q15617994
USER
Is Italy the country of origin of Bal-Can-Can ?
(Q3405395,P495,Q38)
action is_in
entity Q38
action find
entity Q3405395
relation P495
['Q3405395', 'P495', 'Q38']
ASK WHERE { resource:Q3405395 property:P495 resource:Q38 }
Bal-Can-Can Italy
action is_in
entity Italy
action find
entity Bal-Can-Can
relation country of origin
['Bal-Can-Can', 'country of origin', 'Italy']
ASK WHERE { resource:Bal-Can-Can property:country_of_origin resource:Italy }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3405395,P495,Q38)
action is_in
entity Q38
action find
entity Q3405395
relation P495
[ANSWER]
['Q3405395', 'P495', 'Q38']
ASK WHERE { resource:Q3405395 property:P495 resource:Q38 }
Yes
action is_in
entity Italy
action find
entity Bal-Can-Can
relation country of origin
['Bal-Can-Can', 'country of origin', 'Italy']
ASK WHERE { resource:Bal-Can-Can property:country_of_origin resource:Italy }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q552020
P530
Q15617994
USER
Does Hohenkirchen have diplomatic relationships with Italy ?
(Q38,P530,Q552020)
action is_in
entity Q552020
action find
entity Q38
relation P530
['Q38', 'P530', 'Q552020']
ASK WHERE { resource:Q38 property:P530 resource:Q552020 }
Italy Hohenkirchen
action is_in
entity Hohenkirchen
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hohenkirchen']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Hohenkirchen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q38,P530,Q552020)
action is_in
entity Q552020
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q552020']
ASK WHERE { resource:Q38 property:P530 resource:Q552020 }
No
action is_in
entity Hohenkirchen
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hohenkirchen']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Hohenkirchen }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3405395 Q6805314
P495
Q15617994
USER
Is Medford Lakes School District the origin of Bal-Can-Can ?
(Q3405395,P495,Q6805314)
action is_in
entity Q6805314
action find
entity Q3405395
relation P495
['Q3405395', 'P495', 'Q6805314']
ASK WHERE { resource:Q3405395 property:P495 resource:Q6805314 }
Bal-Can-Can Medford Lakes School District
action is_in
entity Medford Lakes School District
action find
entity Bal-Can-Can
relation country of origin
['Bal-Can-Can', 'country of origin', 'Medford Lakes School District']
ASK WHERE { resource:Bal-Can-Can property:country_of_origin resource:Medford_Lakes_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3405395,P495,Q6805314)
action is_in
entity Q6805314
action find
entity Q3405395
relation P495
[ANSWER]
['Q3405395', 'P495', 'Q6805314']
ASK WHERE { resource:Q3405395 property:P495 resource:Q6805314 }
No
action is_in
entity Medford Lakes School District
action find
entity Bal-Can-Can
relation country of origin
['Bal-Can-Can', 'country of origin', 'Medford Lakes School District']
ASK WHERE { resource:Bal-Can-Can property:country_of_origin resource:Medford_Lakes_School_District }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q38 Q4151998 Q664
P530
Q1048835
USER
Is Italy known to have diplomatic connections with Hulianka and New Zealand ?
(Q38,P530,Q4151998) (Q38,P530,Q664)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4151998
relation P530
action find_reverse
entity Q664
relation P530
['Q38', 'P530', 'Q4151998'] ['Q38', 'P530', 'Q664']
ASK WHERE { resource:Q38 property:P530 resource:Q4151998 . resource:Q38 property:P530 resource:Q664 }
Italy Hulianka New Zealand
action is_in
entity Italy
action intersection
action find_reverse
entity Hulianka
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hulianka'] ['Italy', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Hulianka . resource:Italy property:diplomatic_relation resource:New_Zealand }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q38,P530,Q4151998) (Q38,P530,Q664)
action is_in
entity Q38
action intersection
action find_reverse
entity Q4151998
relation P530
action find_reverse
entity Q664
relation P530
[ANSWER]
['Q38', 'P530', 'Q4151998'] ['Q38', 'P530', 'Q664']
ASK WHERE { resource:Q38 property:P530 resource:Q4151998 . resource:Q38 property:P530 resource:Q664 }
NO and YES respectively
action is_in
entity Italy
action intersection
action find_reverse
entity Hulianka
relation diplomatic relation
action find_reverse
entity New Zealand
relation diplomatic relation
['Italy', 'diplomatic relation', 'Hulianka'] ['Italy', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Hulianka . resource:Italy property:diplomatic_relation resource:New_Zealand }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3405395 Q4233522
P161
Q502895
USER
Did Aleksey Korobkov star in Bal-Can-Can ?
(Q3405395,P161,Q4233522)
action is_in
entity Q4233522
action find
entity Q3405395
relation P161
['Q3405395', 'P161', 'Q4233522']
ASK WHERE { resource:Q3405395 property:P161 resource:Q4233522 }
Bal-Can-Can Aleksey Korobkov
action is_in
entity Aleksey Korobkov
action find
entity Bal-Can-Can
relation cast member
['Bal-Can-Can', 'cast member', 'Aleksey Korobkov']
ASK WHERE { resource:Bal-Can-Can property:cast_member resource:Aleksey_Korobkov }
[]
common name
SYSTEM
NO
(Q3405395,P161,Q4233522)
action is_in
entity Q4233522
action find
entity Q3405395
relation P161
[ANSWER]
['Q3405395', 'P161', 'Q4233522']
ASK WHERE { resource:Q3405395 property:P161 resource:Q4233522 }
No
action is_in
entity Aleksey Korobkov
action find
entity Bal-Can-Can
relation cast member
['Bal-Can-Can', 'cast member', 'Aleksey Korobkov']
ASK WHERE { resource:Bal-Can-Can property:cast_member resource:Aleksey_Korobkov }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38 Q43287
P35
Q502895
USER
How many people are the heads of state of Italy or German Empire ?
(Q38,P35,c(Q502895)) (Q43287,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q38
relation P35
type Q502895
action filter_type
action find
entity Q43287
relation P35
type Q502895
['Q38', 'P35', {'concept': 'Q502895'}] ['Q43287', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { VALUES ( ?m ) { ( resource:Q38 ) ( resource:Q43287 ) } . ?m property:P35 ?z }
Italy German Empire
action count
action union
action filter_type
action find
entity Italy
relation head of state
type common name
action filter_type
action find
entity German Empire
relation head of state
type common name
['Italy', 'head of state', {'concept': 'common name'}] ['German Empire', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { VALUES ( ?m ) { ( resource:Italy ) ( resource:German_Empire ) } . ?m property:head_of_state ?z }
[]
common name
SYSTEM
16
Q1233 Q1245 Q2677 Q3956186 Q1241 Q1240 Q58600 Q1242 Q1238 Q150652 Q153832 Q1228 Q1230 Q1224 Q1235 Q1220
(Q38,P35,c(Q502895)) (Q43287,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q38
relation P35
type Q502895
action filter_type
action find
entity Q43287
relation P35
type Q502895
[ANSWER]
['Q38', 'P35', {'concept': 'Q502895'}] ['Q43287', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { VALUES ( ?m ) { ( resource:Q38 ) ( resource:Q43287 ) } . ?m property:P35 ?z }
Sandro Pertini Enrico De Nicola Wilhelm II Sergio Mattarella Giovanni Gronchi Antonio Segni Friedrich III of Germany Luigi Einaudi Giuseppe Saragat Wilhelm I of Germany Alcide De Gasperi Oscar Luigi Scalfaro Francesco Cossiga Carlo Azeglio Ciampi Giovanni Leone Giorgio Napolitano
16
action count
action union
action filter_type
action find
entity Italy
relation head of state
type common name
action filter_type
action find
entity German Empire
relation head of state
type common name
['Italy', 'head of state', {'concept': 'common name'}] ['German Empire', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { VALUES ( ?m ) { ( resource:Italy ) ( resource:German_Empire ) } . ?m property:head_of_state ?z }
[]