Simple Question (Direct)
Simple Question
Q982591
P27
Q15617994
USER
Which administrative territory does Stepan Popel belong to ?
(Q982591,P27,c(Q15617994))
action filter_type
action find
entity Q982591
relation P27
type Q15617994
['Q982591', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q982591 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Stepan Popel
action filter_type
action find
entity Stepan Popel
relation country of citizenship
type designation for an administrative territorial entity
['Stepan Popel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Stepan_Popel property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q982591,P27,c(Q15617994))
action filter_type
action find
entity Q982591
relation P27
type Q15617994
Stepan Popel belongs to [ANSWER]
['Q982591', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q982591 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Poland
Stepan Popel belongs to Poland
Poland
action filter_type
action find
entity Stepan Popel
relation country of citizenship
type designation for an administrative territorial entity
['Stepan Popel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Stepan_Popel property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36
P840
Q201658
USER
Which film genres have their setting located at that administrative territory ?
(c(Q201658),P840,Q36)
action filter_type
action find_reverse
entity Q36
relation P840
type Q201658
[{'concept': 'Q201658'}, 'P840', 'Q36']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q36 . ?k rdf:type ontology:Q201658 }
Poland
action filter_type
action find_reverse
entity Poland
relation narrative location
type film genre
[{'concept': 'film genre'}, 'narrative location', 'Poland']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Poland . ?k rdf:type ontology:film_genre }
[]
film genre
Q14952305 Q6303710
SYSTEM
Dr. Hart's Diary, Judith Trachtenberg
Q14952305 Q6303710
(c(Q201658),P840,Q36)
action filter_type
action find_reverse
entity Q36
relation P840
type Q201658
[ANSWERS] have their setting located at that administrative territory
[{'concept': 'Q201658'}, 'P840', 'Q36']
SELECT DISTINCT ?k WHERE { ?k property:P840 resource:Q36 . ?k rdf:type ontology:Q201658 }
Dr. Hart's Diary Judith Trachtenberg
Dr. Hart's Diary and Judith Trachtenberg have their setting located at that administrative territory
Dr. Hart's Diary Judith Trachtenberg
action filter_type
action find_reverse
entity Poland
relation narrative location
type film genre
[{'concept': 'film genre'}, 'narrative location', 'Poland']
SELECT DISTINCT ?k WHERE { ?k property:narrative_location resource:Poland . ?k rdf:type ontology:film_genre }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q14952305 Q6303710
P840
Q15617994
USER
What locations are those film genres set in ?
(Q14952305,P840,c(Q15617994)) (Q6303710,P840,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P840
type Q15617994
['Q14952305', 'P840', {'concept': 'Q15617994'}] ['Q6303710', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?m property:P840 ?p . VALUES ( ?m ) { ( resource:Q14952305 ) ( resource:Q6303710 ) } }
Dr. Hart's Diary Judith Trachtenberg
action filter_type
action find
entity prev_answer
relation narrative location
type designation for an administrative territorial entity
["Dr. Hart's Diary", 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Judith Trachtenberg', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:narrative_location ?p . VALUES ( ?m ) { ( resource:Dr._Hart's_Diary ) ( resource:Judith_Trachtenberg ) } }
[]
designation for an administrative territorial entity
Q36 Q36
SYSTEM
Poland
Q36 Q36
(Q14952305,P840,c(Q15617994)) (Q6303710,P840,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P840
type Q15617994
Those film genres are set in [ANSWER] and [ANSWER]
['Q14952305', 'P840', {'concept': 'Q15617994'}] ['Q6303710', 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . ?m property:P840 ?p . VALUES ( ?m ) { ( resource:Q14952305 ) ( resource:Q6303710 ) } }
Poland Poland
Those film genres are set in Poland and Poland
Poland Poland
action filter_type
action find
entity prev_answer
relation narrative location
type designation for an administrative territorial entity
["Dr. Hart's Diary", 'narrative location', {'concept': 'designation for an administrative territorial entity'}] ['Judith Trachtenberg', 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:narrative_location ?p . VALUES ( ?m ) { ( resource:Dr._Hart's_Diary ) ( resource:Judith_Trachtenberg ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q14952305
P57
Q502895
USER
Who was Dr. Hart's Diary directed by ?
(Q14952305,P57,c(Q502895))
action filter_type
action find
entity Q14952305
relation P57
type Q502895
['Q14952305', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q14952305 property:P57 ?u }
Dr. Hart's Diary
action filter_type
action find
entity Dr. Hart's Diary
relation director
type common name
["Dr. Hart's Diary", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Dr._Hart's_Diary property:director ?u }
[]
common name
Q77465
SYSTEM
Paul Leni
Q77465
(Q14952305,P57,c(Q502895))
action filter_type
action find
entity Q14952305
relation P57
type Q502895
[ANSWER]
['Q14952305', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q14952305 property:P57 ?u }
Paul Leni
Paul Leni
action filter_type
action find
entity Dr. Hart's Diary
relation director
type common name
["Dr. Hart's Diary", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Dr._Hart's_Diary property:director ?u }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q538909
Q502895
USER
And how about Mr. Wonderful?
(Q538909,P57,c(Q502895))
action filter_type
action find
entity Q538909
relation P57
type Q502895
['Q538909', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q538909 property:P57 ?e }
Mr. Wonderful
action filter_type
action find
entity Mr. Wonderful
relation director
type common name
['Mr. Wonderful', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Mr._Wonderful property:director ?e }
[]
common name
Q188726
SYSTEM
Anthony Minghella
Q188726
(Q538909,P57,c(Q502895))
action filter_type
action find
entity Q538909
relation P57
type Q502895
[ANSWER]
['Q538909', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q538909 property:P57 ?e }
Anthony Minghella
Anthony Minghella
action filter_type
action find
entity Mr. Wonderful
relation director
type common name
['Mr. Wonderful', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:Mr._Wonderful property:director ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q188726
P58
Q838948
USER
How many works of art have Anthony Minghella as screenwriter ?
(c(Q838948),P58,Q188726)
action count
action filter_type
action find_reverse
entity Q188726
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q188726']
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P58 resource:Q188726 . ?o rdf:type ontology:Q838948 }
Anthony Minghella
action count
action filter_type
action find_reverse
entity Anthony Minghella
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Anthony Minghella']
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:screenwriter resource:Anthony_Minghella . ?o rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
6
Q63026 Q752989 Q538909 Q390052 Q241391 Q390097
(c(Q838948),P58,Q188726)
action count
action filter_type
action find_reverse
entity Q188726
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q188726']
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:P58 resource:Q188726 . ?o rdf:type ontology:Q838948 }
The English Patient Nine Mr. Wonderful The Talented Mr. Ripley Breaking and Entering Cold Mountain
6
action count
action filter_type
action find_reverse
entity Anthony Minghella
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Anthony Minghella']
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { ?o property:screenwriter resource:Anthony_Minghella . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q188726
P58
Q15416
USER
Which television program is that person a screenwriter of ?
action filter_type
action find_reverse
entity Q188726
relation P58
type Q15416
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15416 . ?z property:P58 resource:Q188726 }
Anthony Minghella
action filter_type
action find_reverse
entity Anthony Minghella
relation screenwriter
type television program
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:television_program . ?z property:screenwriter resource:Anthony_Minghella }
[]
television program
Q2164431
SYSTEM
Truly, Madly
Q2164431
action filter_type
action find_reverse
entity Q188726
relation P58
type Q15416
[ANSWER] is that person a screenwriter of
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15416 . ?z property:P58 resource:Q188726 }
Truly, Madly
Truly, Madly is that person a screenwriter of
Truly, Madly
action filter_type
action find_reverse
entity Anthony Minghella
relation screenwriter
type television program
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:television_program . ?z property:screenwriter resource:Anthony_Minghella }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q5962346 Q1792379
USER
How many classification schemes or art genres are the genre of that television program ?
(Q2164431,P136,c(Q5962346)) (Q2164431,P136,c(Q1792379)) (Q2164431,P136,c(Q5962346)) (Q2164431,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q2164431
relation P136
type Q5962346
action filter_type
action find
entity Q2164431
relation P136
type Q1792379
['Q2164431', 'P136', {'concept': 'Q5962346'}] ['Q2164431', 'P136', {'concept': 'Q1792379'}] ['Q2164431', 'P136', {'concept': 'Q5962346'}] ['Q2164431', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?o ) { ( ontology:Q1792379 ) ( ontology:Q5962346 ) } . ?y rdf:type ?o }
action count
action union
action filter_type
action find
entity Truly, Madly
relation genre
type classification scheme
action filter_type
action find
entity Truly, Madly
relation genre
type art genre
['Truly, Madly', 'genre', {'concept': 'classification scheme'}] ['Truly, Madly', 'genre', {'concept': 'art genre'}] ['Truly, Madly', 'genre', {'concept': 'classification scheme'}] ['Truly, Madly', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?o ) { ( ontology:art_genre ) ( ontology:classification_scheme ) } . ?y rdf:type ?o }
[]
classification scheme art genre
SYSTEM
4
Q1366112 Q1054574 Q130232 Q157394
(Q2164431,P136,c(Q5962346)) (Q2164431,P136,c(Q1792379)) (Q2164431,P136,c(Q5962346)) (Q2164431,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q2164431
relation P136
type Q5962346
action filter_type
action find
entity Q2164431
relation P136
type Q1792379
[ANSWER]
['Q2164431', 'P136', {'concept': 'Q5962346'}] ['Q2164431', 'P136', {'concept': 'Q1792379'}] ['Q2164431', 'P136', {'concept': 'Q5962346'}] ['Q2164431', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?o ) { ( ontology:Q1792379 ) ( ontology:Q5962346 ) } . ?y rdf:type ?o }
television drama romance film drama film fantasy film
4
action count
action union
action filter_type
action find
entity Truly, Madly
relation genre
type classification scheme
action filter_type
action find
entity Truly, Madly
relation genre
type art genre
['Truly, Madly', 'genre', {'concept': 'classification scheme'}] ['Truly, Madly', 'genre', {'concept': 'art genre'}] ['Truly, Madly', 'genre', {'concept': 'classification scheme'}] ['Truly, Madly', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { VALUES ( ?o ) { ( ontology:art_genre ) ( ontology:classification_scheme ) } . ?y rdf:type ?o }
[]