Simple Question (Direct)
Simple Question
Q952168
P136
Q1792379
USER
What can be considered as category for Stars and Stripes Forever ?
(Q952168,P136,c(Q1792379))
action filter_type
action find
entity Q952168
relation P136
type Q1792379
['Q952168', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?q WHERE { resource:Q952168 property:P136 ?q . ?q rdf:type ontology:Q1792379 }
Stars and Stripes Forever
action filter_type
action find
entity Stars and Stripes Forever
relation genre
type art genre
['Stars and Stripes Forever', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?q WHERE { resource:Stars_and_Stripes_Forever property:genre ?q . ?q rdf:type ontology:art_genre }
[]
art genre
Q645928 Q842256
SYSTEM
biographical film, musical film
Q645928 Q842256
(Q952168,P136,c(Q1792379))
action filter_type
action find
entity Q952168
relation P136
type Q1792379
And [ANSWERS] can be considered as category for Stars and Stripes Forever
['Q952168', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?q WHERE { resource:Q952168 property:P136 ?q . ?q rdf:type ontology:Q1792379 }
biographical film musical film
And biographical film and musical film can be considered as category for Stars and Stripes Forever
biographical film musical film
action filter_type
action find
entity Stars and Stripes Forever
relation genre
type art genre
['Stars and Stripes Forever', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?q WHERE { resource:Stars_and_Stripes_Forever property:genre ?q . ?q rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q952168
P2515
Q502895
USER
Which person created the costume designs for Stars and Stripes Forever ?
(Q952168,P2515,c(Q502895))
action filter_type
action find
entity Q952168
relation P2515
type Q502895
['Q952168', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q952168 property:P2515 ?a . ?a rdf:type ontology:Q502895 }
Stars and Stripes Forever
action filter_type
action find
entity Stars and Stripes Forever
relation costume designer
type common name
['Stars and Stripes Forever', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Stars_and_Stripes_Forever property:costume_designer ?a . ?a rdf:type ontology:common_name }
[]
common name
Q436530
SYSTEM
Dorothy Jeakins
Q436530
(Q952168,P2515,c(Q502895))
action filter_type
action find
entity Q952168
relation P2515
type Q502895
St [ANSWER] created the costume designs for Stars and Stripes Forever
['Q952168', 'P2515', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q952168 property:P2515 ?a . ?a rdf:type ontology:Q502895 }
Dorothy Jeakins
St Dorothy Jeakins created the costume designs for Stars and Stripes Forever
Dorothy Jeakins
action filter_type
action find
entity Stars and Stripes Forever
relation costume designer
type common name
['Stars and Stripes Forever', 'costume designer', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Stars_and_Stripes_Forever property:costume_designer ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q436530
P161
Q838948
USER
Which work of art does that person star in ?
(c(Q838948),P161,Q436530)
action filter_type
action find_reverse
entity Q436530
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q436530']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q436530 . ?f rdf:type ontology:Q838948 }
Dorothy Jeakins
action filter_type
action find_reverse
entity Dorothy Jeakins
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Dorothy Jeakins']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Dorothy_Jeakins . ?f rdf:type ontology:work_of_art }
[]
work of art
Q1591594
SYSTEM
Hawaii
Q1591594
(c(Q838948),P161,Q436530)
action filter_type
action find_reverse
entity Q436530
relation P161
type Q838948
That person stars in [ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q436530']
SELECT DISTINCT ?f WHERE { ?f property:P161 resource:Q436530 . ?f rdf:type ontology:Q838948 }
Hawaii
That person stars in Hawaii
Hawaii
action filter_type
action find_reverse
entity Dorothy Jeakins
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Dorothy Jeakins']
SELECT DISTINCT ?f WHERE { ?f property:cast_member resource:Dorothy_Jeakins . ?f rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1591594
P344
Q502895
USER
Which person serves as the director of photography for that work of art ?
(Q1591594,P344,c(Q502895))
action filter_type
action find
entity Q1591594
relation P344
type Q502895
['Q1591594', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q1591594 property:P344 ?n }
Hawaii
action filter_type
action find
entity Hawaii
relation director of photography
type common name
['Hawaii', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Hawaii property:director_of_photography ?n }
[]
common name
Q323729
SYSTEM
Russell Harlan
Q323729
(Q1591594,P344,c(Q502895))
action filter_type
action find
entity Q1591594
relation P344
type Q502895
[ANSWER] serves as the director of photography for that work of art
['Q1591594', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . resource:Q1591594 property:P344 ?n }
Russell Harlan
Russell Harlan serves as the director of photography for that work of art
Russell Harlan
action filter_type
action find
entity Hawaii
relation director of photography
type common name
['Hawaii', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . resource:Hawaii property:director_of_photography ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1591594
P58
Q502895
USER
Who wrote the screenplay for that work of art ?
(Q323729,P58,c(Q502895))
action filter_type
action find
entity Q1591594
relation P58
type Q502895
['Q323729', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1591594 property:P58 ?t . ?t rdf:type ontology:Q502895 }
Hawaii
action filter_type
action find
entity Hawaii
relation screenwriter
type common name
['Russell Harlan', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Hawaii property:screenwriter ?t . ?t rdf:type ontology:common_name }
[]
common name
Q1162881 Q350666 Q361653
SYSTEM
Daniel Taradash, Dalton Trumbo, James A. Michener
Q1162881 Q350666 Q361653
(Q323729,P58,c(Q502895))
action filter_type
action find
entity Q1591594
relation P58
type Q502895
[ANSWERS] wrote the screenplay for that work of art
['Q323729', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1591594 property:P58 ?t . ?t rdf:type ontology:Q502895 }
Daniel Taradash Dalton Trumbo James A. Michener
Daniel Taradash, Dalton Trumbo and James A. Michener wrote the screenplay for that work of art
Daniel Taradash Dalton Trumbo James A. Michener
action filter_type
action find
entity Hawaii
relation screenwriter
type common name
['Russell Harlan', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Hawaii property:screenwriter ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 3403 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3403
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?p >= 3403 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3403
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?p >= 3403 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3403
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?p >= 3403 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3403
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?p >= 3403 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q737618 Q1591594
P161 P40
Q502895
USER
Which people are in Hawaii or are an offsprings of Aldfrith ?
OR((Q1591594,P161,c(Q502895)), (Q737618,P40,c(Q502895)))
action filter_type
action union
action find
entity Q1591594
relation P161
action find
entity Q737618
relation P40
type Q502895
{'OR': [['Q1591594', 'P161', {'concept': 'Q502895'}], ['Q737618', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . { { resource:Q1591594 property:P161 ?u } UNION { resource:Q737618 property:P40 ?u } } }
Aldfrith Hawaii
action filter_type
action union
action find
entity Hawaii
relation cast member
action find
entity Aldfrith
relation child
type common name
{'OR': [['Hawaii', 'cast member', {'concept': 'common name'}], ['Aldfrith', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . { { resource:Hawaii property:cast_member ?u } UNION { resource:Aldfrith property:child ?u } } }
[]
common name
Q203215 Q1291127 Q555487 Q880242 Q161819 Q462368 Q1480761 Q106775 Q7105700 Q436530
SYSTEM
Some of them are Max von Sydow, Michael Constantine, Carroll O'Connor, Osric, Julie Andrews, Heather Menzies, George Rose, Richard Harris, Osana, Dorothy Jeakins
Q455953 Q150943 Q3281667 Q1291127 Q7105700 Q3260112 Q203215 Q1480761 Q462368 Q106775 Q880242 Q439588 Q494741 Q190631 Q1905269 Q555487 Q161819 Q436530
OR((Q1591594,P161,c(Q502895)), (Q737618,P40,c(Q502895)))
action filter_type
action union
action find
entity Q1591594
relation P161
action find
entity Q737618
relation P40
type Q502895
[ANSWERS] are in Hawaii or are an offsprings of Aldfrith
{'OR': [['Q1591594', 'P161', {'concept': 'Q502895'}], ['Q737618', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . { { resource:Q1591594 property:P161 ?u } UNION { resource:Q737618 property:P40 ?u } } }
Jocelyne LaGarde Gene Hackman Malcolm Atterbury Michael Constantine Osana Lou Antonio Max von Sydow George Rose Heather Menzies Richard Harris Osric Torin Thatcher Osred I Bette Midler John Cullum Carroll O'Connor Julie Andrews Dorothy Jeakins
Max von Sydow, Michael Constantine, Carroll O'Connor, Osric, Julie Andrews, Heather Menzies, George Rose, Richard Harris, Osana and Dorothy Jeakins are in Hawaii or are an offsprings of Aldfrith
Max von Sydow Michael Constantine Carroll O'Connor Osric Julie Andrews Heather Menzies George Rose Richard Harris Osana Dorothy Jeakins
action filter_type
action union
action find
entity Hawaii
relation cast member
action find
entity Aldfrith
relation child
type common name
{'OR': [['Hawaii', 'cast member', {'concept': 'common name'}], ['Aldfrith', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . { { resource:Hawaii property:cast_member ?u } UNION { resource:Aldfrith property:child ?u } } }
[]