Simple Question (Direct)
Simple Question
Q3296280
P344
Q502895
USER
Who is the director of photography for Maryland ?
(Q3296280,P344,c(Q502895))
action filter_type
action find
entity Q3296280
relation P344
type Q502895
['Q3296280', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q3296280 property:P344 ?w }
Maryland
action filter_type
action find
entity Maryland
relation director of photography
type common name
['Maryland', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Maryland property:director_of_photography ?w }
[]
common name
Q721897
SYSTEM
George Barnes
Q721897
(Q3296280,P344,c(Q502895))
action filter_type
action find
entity Q3296280
relation P344
type Q502895
The director of photography for Maryland is [ANSWER]
['Q3296280', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q3296280 property:P344 ?w }
George Barnes
The director of photography for Maryland is George Barnes
George Barnes
action filter_type
action find
entity Maryland
relation director of photography
type common name
['Maryland', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Maryland property:director_of_photography ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q721897
P26
Q502895
USER
Which person is the life partner of that one ?
(Q721897,P26,c(Q502895))
action filter_type
action find
entity Q721897
relation P26
type Q502895
['Q721897', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q721897 property:P26 ?y . ?y rdf:type ontology:Q502895 }
George Barnes
action filter_type
action find
entity George Barnes
relation spouse
type common name
['George Barnes', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:George_Barnes property:spouse ?y . ?y rdf:type ontology:common_name }
[]
common name
Q242729
SYSTEM
Joan Blondell
Q242729
(Q721897,P26,c(Q502895))
action filter_type
action find
entity Q721897
relation P26
type Q502895
[ANSWER] is the life partner of that one
['Q721897', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q721897 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Joan Blondell
Joan Blondell is the life partner of that one
Joan Blondell
action filter_type
action find
entity George Barnes
relation spouse
type common name
['George Barnes', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:George_Barnes property:spouse ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q585993
Q502895
USER
And also tell me about Neal Conan?
(Q585993,P26,c(Q502895))
action filter_type
action find
entity Q585993
relation P26
type Q502895
['Q585993', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q585993 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Neal Conan
action filter_type
action find
entity Neal Conan
relation spouse
type common name
['Neal Conan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Neal_Conan property:spouse ?i . ?i rdf:type ontology:common_name }
[]
common name
Q6539946
SYSTEM
Liane Hansen
Q6539946
(Q585993,P26,c(Q502895))
action filter_type
action find
entity Q585993
relation P26
type Q502895
[ANSWER]
['Q585993', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { resource:Q585993 property:P26 ?i . ?i rdf:type ontology:Q502895 }
Liane Hansen
Liane Hansen
action filter_type
action find
entity Neal Conan
relation spouse
type common name
['Neal Conan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { resource:Neal_Conan property:spouse ?i . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6539946
P21
Q290
USER
What is the sex of that person ?
(Q6539946,P21,c(Q290))
action filter_type
action find
entity Q6539946
relation P21
type Q290
['Q6539946', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q6539946 property:P21 ?w . ?w rdf:type ontology:Q290 }
Liane Hansen
action filter_type
action find
entity Liane Hansen
relation gender
type sex
['Liane Hansen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Liane_Hansen property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6539946,P21,c(Q290))
action filter_type
action find
entity Q6539946
relation P21
type Q290
The sex of that person is the [ANSWER]
['Q6539946', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q6539946 property:P21 ?w . ?w rdf:type ontology:Q290 }
female
The sex of that person is the female
female
action filter_type
action find
entity Liane Hansen
relation gender
type sex
['Liane Hansen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Liane_Hansen property:gender ?w . ?w rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q6539946 Q3193008
P26
Q502895
USER
How many people are married to Liane Hansen or Karava ?
(c(Q502895),P26,Q6539946) (c(Q502895),P26,Q3193008)
action count
action union
action filter_type
action find_reverse
entity Q6539946
relation P26
type Q502895
action filter_type
action find_reverse
entity Q3193008
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q6539946'] [{'concept': 'Q502895'}, 'P26', 'Q3193008']
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P26 ?y . VALUES ( ?y ) { ( resource:Q3193008 ) ( resource:Q6539946 ) } }
Liane Hansen Karava
action count
action union
action filter_type
action find_reverse
entity Liane Hansen
relation spouse
type common name
action filter_type
action find_reverse
entity Karava
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Liane Hansen'] [{'concept': 'common name'}, 'spouse', 'Karava']
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:spouse ?y . VALUES ( ?y ) { ( resource:Karava ) ( resource:Liane_Hansen ) } }
[]
common name
SYSTEM
2
Q3339865 Q585993
(c(Q502895),P26,Q6539946) (c(Q502895),P26,Q3193008)
action count
action union
action filter_type
action find_reverse
entity Q6539946
relation P26
type Q502895
action filter_type
action find_reverse
entity Q3193008
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q6539946'] [{'concept': 'Q502895'}, 'P26', 'Q3193008']
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:P26 ?y . VALUES ( ?y ) { ( resource:Q3193008 ) ( resource:Q6539946 ) } }
Nico F. Declercq Neal Conan
2
action count
action union
action filter_type
action find_reverse
entity Liane Hansen
relation spouse
type common name
action filter_type
action find_reverse
entity Karava
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Liane Hansen'] [{'concept': 'common name'}, 'spouse', 'Karava']
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { ?d property:spouse ?y . VALUES ( ?y ) { ( resource:Karava ) ( resource:Liane_Hansen ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242729
P1196
Q1931388
USER
What situation did Joan Blondell die in ?
(Q242729,P1196,c(Q1931388))
action filter_type
action find
entity Q242729
relation P1196
type Q1931388
['Q242729', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q242729 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
Joan Blondell
action filter_type
action find
entity Joan Blondell
relation manner of death
type cause of death
['Joan Blondell', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Joan_Blondell property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q242729,P1196,c(Q1931388))
action filter_type
action find
entity Q242729
relation P1196
type Q1931388
Joan Blondell died of [ANSWER]
['Q242729', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?p WHERE { resource:Q242729 property:P1196 ?p . ?p rdf:type ontology:Q1931388 }
natural causes
Joan Blondell died of natural causes
natural causes
action filter_type
action find
entity Joan Blondell
relation manner of death
type cause of death
['Joan Blondell', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?p WHERE { resource:Joan_Blondell property:manner_of_death ?p . ?p rdf:type ontology:cause_of_death }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11666621
Q1931388
USER
And what about Umanosuke Iida?
(Q11666621,P1196,c(Q1931388))
action filter_type
action find
entity Q11666621
relation P1196
type Q1931388
['Q11666621', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?a WHERE { resource:Q11666621 property:P1196 ?a . ?a rdf:type ontology:Q1931388 }
Umanosuke Iida
action filter_type
action find
entity Umanosuke Iida
relation manner of death
type cause of death
['Umanosuke Iida', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?a WHERE { resource:Umanosuke_Iida property:manner_of_death ?a . ?a rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q11666621,P1196,c(Q1931388))
action filter_type
action find
entity Q11666621
relation P1196
type Q1931388
[ANSWER]
['Q11666621', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?a WHERE { resource:Q11666621 property:P1196 ?a . ?a rdf:type ontology:Q1931388 }
natural causes
natural causes
action filter_type
action find
entity Umanosuke Iida
relation manner of death
type cause of death
['Umanosuke Iida', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?a WHERE { resource:Umanosuke_Iida property:manner_of_death ?a . ?a rdf:type ontology:cause_of_death }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1070919 Q3296280
P161
Q502895
USER
Which people starred in Maryland or Keane ?
OR((Q3296280,P161,c(Q502895)), (Q1070919,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3296280
relation P161
action find
entity Q1070919
relation P161
type Q502895
{'OR': [['Q3296280', 'P161', {'concept': 'Q502895'}], ['Q1070919', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { ?u property:P161 ?e . VALUES ( ?u ) { ( resource:Q3296280 ) ( resource:Q1070919 ) } } . ?e rdf:type ontology:Q502895 }
Keane Maryland
action filter_type
action union
action find
entity Maryland
relation cast member
action find
entity Keane
relation cast member
type common name
{'OR': [['Maryland', 'cast member', {'concept': 'common name'}], ['Keane', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { ?u property:cast_member ?e . VALUES ( ?u ) { ( resource:Maryland ) ( resource:Keane ) } } . ?e rdf:type ontology:common_name }
[]
common name
Q3078072 Q3182273 Q219521 Q129861 Q3496795 Q228904 Q3057212 Q2599535 Q342533 Q231203
SYSTEM
Some of them are Robert Lowery, John Payne, Walter Brennan, John Tormey, Stanley Andrews, Hattie McDaniel, Ernest Whitman, Tina Holmes, Damian Lewis, Amy Ryan
Q201418 Q152888 Q3182273 Q934722 Q2975569 Q2707376 Q3057512 Q3493013 Q228904 Q39979 Q2599535 Q3371436 Q925957 Q3112993 Q3496795 Q342533 Q3057212 Q3078072 Q129861 Q1592946 Q219521 Q231203
OR((Q3296280,P161,c(Q502895)), (Q1070919,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3296280
relation P161
action find
entity Q1070919
relation P161
type Q502895
[ANSWERS] starred in Maryland or Keane
{'OR': [['Q3296280', 'P161', {'concept': 'Q502895'}], ['Q1070919', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?e WHERE { { ?u property:P161 ?e . VALUES ( ?u ) { ( resource:Q3296280 ) ( resource:Q1070919 ) } } . ?e rdf:type ontology:Q502895 }
Abigail Breslin Fay Bainter John Payne Charles Ruggles Clarence Muse Dick Jones Erville Alderson Spencer Charters Hattie McDaniel Chris Bauer Tina Holmes Paul Harvey William Davidson Grace Hayle Stanley Andrews Damian Lewis Ernest Whitman Robert Lowery John Tormey Sidney Blackmer Walter Brennan Amy Ryan
Robert Lowery, John Payne, Walter Brennan, John Tormey, Stanley Andrews, Hattie McDaniel, Ernest Whitman, Tina Holmes, Damian Lewis and Amy Ryan starred in Maryland or Keane
Robert Lowery John Payne Walter Brennan John Tormey Stanley Andrews Hattie McDaniel Ernest Whitman Tina Holmes Damian Lewis Amy Ryan
action filter_type
action union
action find
entity Maryland
relation cast member
action find
entity Keane
relation cast member
type common name
{'OR': [['Maryland', 'cast member', {'concept': 'common name'}], ['Keane', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?e WHERE { { ?u property:cast_member ?e . VALUES ( ?u ) { ( resource:Maryland ) ( resource:Keane ) } } . ?e rdf:type ontology:common_name }
[]