Simple Question (Direct)
Simple Question
Q4747556
P86
Q502895
USER
Which person composed Among the Living ?
(Q4747556,P86,c(Q502895))
action filter_type
action find
entity Q4747556
relation P86
type Q502895
['Q4747556', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q4747556 property:P86 ?a . ?a rdf:type ontology:Q502895 }
Among the Living
action filter_type
action find
entity Among the Living
relation composer
type common name
['Among the Living', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Among_the_Living property:composer ?a . ?a rdf:type ontology:common_name }
[]
common name
Q1558951
SYSTEM
Gerard Carbonara
Q1558951
(Q4747556,P86,c(Q502895))
action filter_type
action find
entity Q4747556
relation P86
type Q502895
[ANSWER] composed Among the Living
['Q4747556', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q4747556 property:P86 ?a . ?a rdf:type ontology:Q502895 }
Gerard Carbonara
Gerard Carbonara composed Among the Living
Gerard Carbonara
action filter_type
action find
entity Among the Living
relation composer
type common name
['Among the Living', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Among_the_Living property:composer ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4747556
P344
Q502895
USER
Who is appointed as the cinematographer of Among the Living ?
(Q4747556,P344,c(Q502895))
action filter_type
action find
entity Q4747556
relation P344
type Q502895
['Q4747556', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4747556 property:P344 ?k . ?k rdf:type ontology:Q502895 }
Among the Living
action filter_type
action find
entity Among the Living
relation director of photography
type common name
['Among the Living', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Among_the_Living property:director_of_photography ?k . ?k rdf:type ontology:common_name }
[]
common name
Q90926
SYSTEM
Theodor Sparkuhl
Q90926
(Q4747556,P344,c(Q502895))
action filter_type
action find
entity Q4747556
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of Among the Living
['Q4747556', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4747556 property:P344 ?k . ?k rdf:type ontology:Q502895 }
Theodor Sparkuhl
Theodor Sparkuhl is appointed as the cinematographer of Among the Living
Theodor Sparkuhl
action filter_type
action find
entity Among the Living
relation director of photography
type common name
['Among the Living', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Among_the_Living property:director_of_photography ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4747556
P136
Q1792379
USER
What can be considered as category for Among the Living ?
(Q4747556,P136,c(Q1792379))
action filter_type
action find
entity Q4747556
relation P136
type Q1792379
['Q4747556', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q4747556 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
Among the Living
action filter_type
action find
entity Among the Living
relation genre
type art genre
['Among the Living', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Among_the_Living property:genre ?c . ?c rdf:type ontology:art_genre }
[]
art genre
Q185867 Q200092
SYSTEM
film noir, horror film
Q185867 Q200092
(Q4747556,P136,c(Q1792379))
action filter_type
action find
entity Q4747556
relation P136
type Q1792379
And [ANSWERS] can be considered as category for Among the Living
['Q4747556', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { resource:Q4747556 property:P136 ?c . ?c rdf:type ontology:Q1792379 }
film noir horror film
And film noir and horror film can be considered as category for Among the Living
film noir horror film
action filter_type
action find
entity Among the Living
relation genre
type art genre
['Among the Living', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { resource:Among_the_Living property:genre ?c . ?c rdf:type ontology:art_genre }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3113934
P136
Q838948
USER
Do The Lodger have those art genres as their type ?
(Q3113934,P136,Q185867) (Q3113934,P136,Q200092)
action is_in
entity prev_answer
action find
entity Q3113934
relation P136
['Q3113934', 'P136', 'Q185867'] ['Q3113934', 'P136', 'Q200092']
ASK WHERE { resource:Q3113934 property:P136 ?o . VALUES ( ?o ) { ( resource:Q185867 ) ( resource:Q200092 ) } }
The Lodger
action is_in
entity prev_answer
action find
entity The Lodger
relation genre
['The Lodger', 'genre', 'film noir'] ['The Lodger', 'genre', 'horror film']
ASK WHERE { resource:The_Lodger property:genre ?o . VALUES ( ?o ) { ( resource:film_noir ) ( resource:horror_film ) } }
[]
work of art
SYSTEM
YES
(Q3113934,P136,Q185867) (Q3113934,P136,Q200092)
action is_in
entity prev_answer
action find
entity Q3113934
relation P136
[ANSWER]
['Q3113934', 'P136', 'Q185867'] ['Q3113934', 'P136', 'Q200092']
ASK WHERE { resource:Q3113934 property:P136 ?o . VALUES ( ?o ) { ( resource:Q185867 ) ( resource:Q200092 ) } }
Yes
action is_in
entity prev_answer
action find
entity The Lodger
relation genre
['The Lodger', 'genre', 'film noir'] ['The Lodger', 'genre', 'horror film']
ASK WHERE { resource:The_Lodger property:genre ?o . VALUES ( ?o ) { ( resource:film_noir ) ( resource:horror_film ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1558951 Q60
P19
Q56061
USER
Is New York City the place of birth of that person ?
(Q1558951,P19,Q60)
action is_in
entity Q60
action find
entity Q1558951
relation P19
['Q1558951', 'P19', 'Q60']
ASK WHERE { resource:Q1558951 property:P19 resource:Q60 }
Gerard Carbonara New York City
action is_in
entity New York City
action find
entity Gerard Carbonara
relation place of birth
['Gerard Carbonara', 'place of birth', 'New York City']
ASK WHERE { resource:Gerard_Carbonara property:place_of_birth resource:New_York_City }
[]
administrative territorial entity
SYSTEM
YES
(Q1558951,P19,Q60)
action is_in
entity Q60
action find
entity Q1558951
relation P19
[ANSWER]
['Q1558951', 'P19', 'Q60']
ASK WHERE { resource:Q1558951 property:P19 resource:Q60 }
Yes
action is_in
entity New York City
action find
entity Gerard Carbonara
relation place of birth
['Gerard Carbonara', 'place of birth', 'New York City']
ASK WHERE { resource:Gerard_Carbonara property:place_of_birth resource:New_York_City }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q90926 Q460429
P27
Q1048835
USER
Is Barth the country of citizenship of Theodor Sparkuhl ?
(Q90926,P27,Q460429)
action is_in
entity Q460429
action find
entity Q90926
relation P27
['Q90926', 'P27', 'Q460429']
ASK WHERE { resource:Q90926 property:P27 resource:Q460429 }
Theodor Sparkuhl Barth
action is_in
entity Barth
action find
entity Theodor Sparkuhl
relation country of citizenship
['Theodor Sparkuhl', 'country of citizenship', 'Barth']
ASK WHERE { resource:Theodor_Sparkuhl property:country_of_citizenship resource:Barth }
[]
political territorial entity
SYSTEM
NO
(Q90926,P27,Q460429)
action is_in
entity Q460429
action find
entity Q90926
relation P27
[ANSWER]
['Q90926', 'P27', 'Q460429']
ASK WHERE { resource:Q90926 property:P27 resource:Q460429 }
No
action is_in
entity Barth
action find
entity Theodor Sparkuhl
relation country of citizenship
['Theodor Sparkuhl', 'country of citizenship', 'Barth']
ASK WHERE { resource:Theodor_Sparkuhl property:country_of_citizenship resource:Barth }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90926
P106
Q28640
USER
Which profession is the profession of that person ?
action filter_type
action find
entity Q90926
relation P106
type Q28640
SELECT DISTINCT ?s WHERE { resource:Q90926 property:P106 ?s . ?s rdf:type ontology:Q28640 }
Theodor Sparkuhl
action filter_type
action find
entity Theodor Sparkuhl
relation occupation
type profession
SELECT DISTINCT ?s WHERE { resource:Theodor_Sparkuhl property:occupation ?s . ?s rdf:type ontology:profession }
[]
profession
Q222344
SYSTEM
cinematographer
Q222344
action filter_type
action find
entity Q90926
relation P106
type Q28640
The [ANSWER] is the profession of that person
SELECT DISTINCT ?s WHERE { resource:Q90926 property:P106 ?s . ?s rdf:type ontology:Q28640 }
cinematographer
The cinematographer is the profession of that person
cinematographer
action filter_type
action find
entity Theodor Sparkuhl
relation occupation
type profession
SELECT DISTINCT ?s WHERE { resource:Theodor_Sparkuhl property:occupation ?s . ?s rdf:type ontology:profession }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P355
Q28640 Q43229
USER
Which organizations are the parent company of max number of professions ?
(c(Q43229),P355,c(Q28640))
action argmax
action find_tuple_counts
relation P355
type Q43229
type Q28640
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?r ) WHERE { ?i property:P355 ?g . ?i rdf:type ontology:Q43229 . ?g rdf:type ontology:Q28640 } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?m property:P355 ?u . ?m rdf:type ontology:Q43229 . ?u rdf:type ontology:Q28640 } GROUP BY ?m } . FILTER ( ?n = ?v ) }
action argmax
action find_tuple_counts
relation subsidiary
type organization
type profession
[{'concept': 'organization'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?r ) WHERE { ?i property:subsidiary ?g . ?i rdf:type ontology:organization . ?g rdf:type ontology:profession } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?m property:subsidiary ?u . ?m rdf:type ontology:organization . ?u rdf:type ontology:profession } GROUP BY ?m } . FILTER ( ?n = ?v ) }
[]
profession organization
Q41187 Q930354
SYSTEM
Sony, GT Interactive Software
Q41187 Q930354
(c(Q43229),P355,c(Q28640))
action argmax
action find_tuple_counts
relation P355
type Q43229
type Q28640
[ANSWERS] are the parent company of max number of professions
[{'concept': 'Q43229'}, 'P355', {'concept': 'Q28640'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?r ) WHERE { ?i property:P355 ?g . ?i rdf:type ontology:Q43229 . ?g rdf:type ontology:Q28640 } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?m property:P355 ?u . ?m rdf:type ontology:Q43229 . ?u rdf:type ontology:Q28640 } GROUP BY ?m } . FILTER ( ?n = ?v ) }
Sony GT Interactive Software
Sony and GT Interactive Software are the parent company of max number of professions
Sony GT Interactive Software
action argmax
action find_tuple_counts
relation subsidiary
type organization
type profession
[{'concept': 'organization'}, 'subsidiary', {'concept': 'profession'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?r ) WHERE { ?i property:subsidiary ?g . ?i rdf:type ontology:organization . ?g rdf:type ontology:profession } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?n ) WHERE { ?m property:subsidiary ?u . ?m rdf:type ontology:organization . ?u rdf:type ontology:profession } GROUP BY ?m } . FILTER ( ?n = ?v ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7517085 Q930354
P19 P159
Q56061
USER
Which administrative territories are the head offices of GT Interactive Software or were Silvina Luna born ?
OR((Q930354,P159,c(Q56061)), (Q7517085,P19,c(Q56061)))
action filter_type
action union
action find
entity Q930354
relation P159
action find
entity Q7517085
relation P19
type Q56061
{'OR': [['Q930354', 'P159', {'concept': 'Q56061'}], ['Q7517085', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . { { resource:Q7517085 property:P19 ?d } UNION { resource:Q930354 property:P159 ?d } } }
Silvina Luna GT Interactive Software
action filter_type
action union
action find
entity GT Interactive Software
relation headquarters location
action find
entity Silvina Luna
relation place of birth
type administrative territorial entity
{'OR': [['GT Interactive Software', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Silvina Luna', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . { { resource:Silvina_Luna property:place_of_birth ?d } UNION { resource:GT_Interactive_Software property:headquarters_location ?d } } }
[]
administrative territorial entity
Q60 Q52535
SYSTEM
New York City, Rosario
Q60 Q52535
OR((Q930354,P159,c(Q56061)), (Q7517085,P19,c(Q56061)))
action filter_type
action union
action find
entity Q930354
relation P159
action find
entity Q7517085
relation P19
type Q56061
[ANSWERS] are the head offices of GT Interactive Software or were Silvina Luna born
{'OR': [['Q930354', 'P159', {'concept': 'Q56061'}], ['Q7517085', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . { { resource:Q7517085 property:P19 ?d } UNION { resource:Q930354 property:P159 ?d } } }
New York City Rosario
New York City and Rosario are the head offices of GT Interactive Software or were Silvina Luna born
New York City Rosario
action filter_type
action union
action find
entity GT Interactive Software
relation headquarters location
action find
entity Silvina Luna
relation place of birth
type administrative territorial entity
{'OR': [['GT Interactive Software', 'headquarters location', {'concept': 'administrative territorial entity'}], ['Silvina Luna', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . { { resource:Silvina_Luna property:place_of_birth ?d } UNION { resource:GT_Interactive_Software property:headquarters_location ?d } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5966905 Q1558951
P27
Q15617994
USER
Which administrative territories are Gerard Carbonara or Svante Lundh an inhabitant of ?
OR((Q1558951,P27,c(Q15617994)), (Q5966905,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1558951
relation P27
action find
entity Q5966905
relation P27
type Q15617994
{'OR': [['Q1558951', 'P27', {'concept': 'Q15617994'}], ['Q5966905', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1558951 property:P27 ?k } UNION { resource:Q5966905 property:P27 ?k } } }
Svante Lundh Gerard Carbonara
action filter_type
action union
action find
entity Gerard Carbonara
relation country of citizenship
action find
entity Svante Lundh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gerard Carbonara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Svante Lundh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Gerard_Carbonara property:country_of_citizenship ?k } UNION { resource:Svante_Lundh property:country_of_citizenship ?k } } }
[]
designation for an administrative territorial entity
Q30 Q34
SYSTEM
United States of America, Sweden
Q30 Q34
OR((Q1558951,P27,c(Q15617994)), (Q5966905,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1558951
relation P27
action find
entity Q5966905
relation P27
type Q15617994
[ANSWERS] are Gerard Carbonara or Svante Lundh an inhabitant of
{'OR': [['Q1558951', 'P27', {'concept': 'Q15617994'}], ['Q5966905', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . { { resource:Q1558951 property:P27 ?k } UNION { resource:Q5966905 property:P27 ?k } } }
United States of America Sweden
United States of America and Sweden are Gerard Carbonara or Svante Lundh an inhabitant of
United States of America Sweden
action filter_type
action union
action find
entity Gerard Carbonara
relation country of citizenship
action find
entity Svante Lundh
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Gerard Carbonara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Svante Lundh', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Gerard_Carbonara property:country_of_citizenship ?k } UNION { resource:Svante_Lundh property:country_of_citizenship ?k } } }
[]