Simple Question (Direct)
Simple Question
Q4896561
P162
Q502895
USER
Who produced Best Actor ?
(Q4896561,P162,c(Q502895))
action filter_type
action find
entity Q4896561
relation P162
type Q502895
['Q4896561', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q4896561 property:P162 ?s . ?s rdf:type ontology:Q502895 }
Best Actor
action filter_type
action find
entity Best Actor
relation producer
type common name
['Best Actor', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Best_Actor property:producer ?s . ?s rdf:type ontology:common_name }
[]
common name
Q674337
SYSTEM
Naushad
Q674337
(Q4896561,P162,c(Q502895))
action filter_type
action find
entity Q4896561
relation P162
type Q502895
[ANSWER] produced Best Actor
['Q4896561', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q4896561 property:P162 ?s . ?s rdf:type ontology:Q502895 }
Naushad
Naushad produced Best Actor
Naushad
action filter_type
action find
entity Best Actor
relation producer
type common name
['Best Actor', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Best_Actor property:producer ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q674337
P86
Q838948
USER
Which works of art have that person as the composer ?
(c(Q838948),P86,Q674337)
action filter_type
action find_reverse
entity Q674337
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q674337']
SELECT DISTINCT ?x WHERE { ?x property:P86 resource:Q674337 . ?x rdf:type ontology:Q838948 }
Naushad
action filter_type
action find_reverse
entity Naushad
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Naushad']
SELECT DISTINCT ?x WHERE { ?x property:composer resource:Naushad . ?x rdf:type ontology:work_of_art }
[]
work of art
Q1411238 Q1890169 Q13112773
SYSTEM
Mother India, Aan, Dhwani
Q4661277 Q2407907 Q7640209 Q1553024 Q13112773 Q2276417 Q5313299 Q5276609 Q13565089 Q5222400 Q7899630 Q454665 Q5249977 Q5521541 Q7560647 Q3429766 Q1367294 Q6810915 Q4661141 Q4900632 Q7459983 Q1890169 Q18109703 Q490051 Q620100 Q1554659 Q4766155 Q1411238 Q3849595 Q423004 Q1172066 Q5276856 Q6426000
(c(Q838948),P86,Q674337)
action filter_type
action find_reverse
entity Q674337
relation P86
type Q838948
[ANSWERS] have that person as the composer
[{'concept': 'Q838948'}, 'P86', 'Q674337']
SELECT DISTINCT ?x WHERE { ?x property:P86 resource:Q674337 . ?x rdf:type ontology:Q838948 }
Aaina Baiju Bawra Sunghursh Guddu Dhwani Shahjehan Dulari Dil Diya Dard Liya Saathi Dard Uran Khatola Amar Deedar Ganwaar Son of India Mere Mehboob Mughal-e-Azam Mela Aadmi Baghavat Shabaab Aan Anokhi Ada Andaz Leader Gunga Jumna Anmol Ghadi Mother India Babul Ram Aur Shyam Dastan Dillagi Kohinoor
Mother India, Aan and Dhwani have that person as the composer
Mother India Aan Dhwani
action filter_type
action find_reverse
entity Naushad
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Naushad']
SELECT DISTINCT ?x WHERE { ?x property:composer resource:Naushad . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q674337
P58
Q838948
USER
What is that person a screwriter of ?
(c(Q838948),P58,Q1411238) (c(Q838948),P58,Q1890169) (c(Q838948),P58,Q13112773)
action filter_type
action find_reverse
entity Q674337
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1411238'] [{'concept': 'Q838948'}, 'P58', 'Q1890169'] [{'concept': 'Q838948'}, 'P58', 'Q13112773']
SELECT DISTINCT ?v WHERE { ?v property:P58 resource:Q674337 . ?v rdf:type ontology:Q838948 }
Naushad
action filter_type
action find_reverse
entity Naushad
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Mother India'] [{'concept': 'work of art'}, 'screenwriter', 'Aan'] [{'concept': 'work of art'}, 'screenwriter', 'Dhwani']
SELECT DISTINCT ?v WHERE { ?v property:screenwriter resource:Naushad . ?v rdf:type ontology:work_of_art }
[]
work of art
Q7702393
SYSTEM
Teri Payal Mere Geet
Q7702393
(c(Q838948),P58,Q1411238) (c(Q838948),P58,Q1890169) (c(Q838948),P58,Q13112773)
action filter_type
action find_reverse
entity Q674337
relation P58
type Q838948
That person a screwriter of is [ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q1411238'] [{'concept': 'Q838948'}, 'P58', 'Q1890169'] [{'concept': 'Q838948'}, 'P58', 'Q13112773']
SELECT DISTINCT ?v WHERE { ?v property:P58 resource:Q674337 . ?v rdf:type ontology:Q838948 }
Teri Payal Mere Geet
That person a screwriter of is Teri Payal Mere Geet
Teri Payal Mere Geet
action filter_type
action find_reverse
entity Naushad
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Mother India'] [{'concept': 'work of art'}, 'screenwriter', 'Aan'] [{'concept': 'work of art'}, 'screenwriter', 'Dhwani']
SELECT DISTINCT ?v WHERE { ?v property:screenwriter resource:Naushad . ?v rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q2342494 Q838948
USER
Which works of art inspired approximately 1 collectables and works of art ?
(c(Q2342494)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
value 1
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?u rdf:type ?c } GROUP BY ?z } . FILTER ( ?l = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
value 1
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?u rdf:type ?c } GROUP BY ?z } . FILTER ( ?l = 1 ) }
[]
work of art collectable work of art
Q17738 Q107724 Q465478
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Star Trek II: The Wrath of Khan
Q1136305 Q107724 Q1852671 Q19560629 Q17738 Q181598 Q753298 Q1754737 Q186014 Q734834 Q375786 Q83186 Q465478
(c(Q2342494)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
value 1
[ANSWERS] inspired approximately 1 collectables and works of art
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } . ?u rdf:type ?c } GROUP BY ?z } . FILTER ( ?l = 1 ) }
Doryphoros Thunderball Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
Star Wars Episode IV: A New Hope, Thunderball and Star Trek II: The Wrath of Khan inspired approximately 1 collectables and works of art
Star Wars Episode IV: A New Hope Thunderball Star Trek II: The Wrath of Khan
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
value 1
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?z WHERE { VALUES ( ?c ) { ( ontology:collectable ) ( ontology:work_of_art ) } . ?u rdf:type ?c } GROUP BY ?z } . FILTER ( ?l = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13456973 Q1890169
P58
Q502895
USER
Which people wrote the script for Aan or Cat's in the Bag... ?
OR((Q1890169,P58,c(Q502895)), (Q13456973,P58,c(Q502895)))
action filter_type
action union
action find
entity Q1890169
relation P58
action find
entity Q13456973
relation P58
type Q502895
{'OR': [['Q1890169', 'P58', {'concept': 'Q502895'}], ['Q13456973', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1890169 property:P58 ?z } UNION { resource:Q13456973 property:P58 ?z } } . ?z rdf:type ontology:Q502895 }
Cat's in the Bag... Aan
action filter_type
action union
action find
entity Aan
relation screenwriter
action find
entity Cat's in the Bag...
relation screenwriter
type common name
{'OR': [['Aan', 'screenwriter', {'concept': 'common name'}], ["Cat's in the Bag...", 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Aan property:screenwriter ?z } UNION { resource:Cat's_in_the_Bag... property:screenwriter ?z } } . ?z rdf:type ontology:common_name }
[]
common name
Q1508544 Q4500
SYSTEM
S. Ali Raza, Vince Gilligan
Q1508544 Q4500
OR((Q1890169,P58,c(Q502895)), (Q13456973,P58,c(Q502895)))
action filter_type
action union
action find
entity Q1890169
relation P58
action find
entity Q13456973
relation P58
type Q502895
[ANSWERS] wrote the script for Aan or Cat's in the Bag...
{'OR': [['Q1890169', 'P58', {'concept': 'Q502895'}], ['Q13456973', 'P58', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q1890169 property:P58 ?z } UNION { resource:Q13456973 property:P58 ?z } } . ?z rdf:type ontology:Q502895 }
S. Ali Raza Vince Gilligan
S. Ali Raza and Vince Gilligan wrote the script for Aan or Cat's in the Bag...
S. Ali Raza Vince Gilligan
action filter_type
action union
action find
entity Aan
relation screenwriter
action find
entity Cat's in the Bag...
relation screenwriter
type common name
{'OR': [['Aan', 'screenwriter', {'concept': 'common name'}], ["Cat's in the Bag...", 'screenwriter', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Aan property:screenwriter ?z } UNION { resource:Cat's_in_the_Bag... property:screenwriter ?z } } . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q107724 Q1058055
P941
Q838948
USER
How many works of art were Thunderball or The Three Graces a source of inspiration for ?
(c(Q838948),P941,Q107724) (c(Q838948),P941,Q1058055)
action count
action union
action filter_type
action find_reverse
entity Q107724
relation P941
type Q838948
action filter_type
action find_reverse
entity Q1058055
relation P941
type Q838948
[{'concept': 'Q838948'}, 'P941', 'Q107724'] [{'concept': 'Q838948'}, 'P941', 'Q1058055']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( resource:Q107724 ) ( resource:Q1058055 ) } . ?o property:P941 ?m }
Thunderball The Three Graces
action count
action union
action filter_type
action find_reverse
entity Thunderball
relation inspired by
type work of art
action filter_type
action find_reverse
entity The Three Graces
relation inspired by
type work of art
[{'concept': 'work of art'}, 'inspired by', 'Thunderball'] [{'concept': 'work of art'}, 'inspired by', 'The Three Graces']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( resource:Thunderball ) ( resource:The_Three_Graces ) } . ?o property:inspired_by ?m }
[]
work of art
SYSTEM
2
Q7071180 Q180279
(c(Q838948),P941,Q107724) (c(Q838948),P941,Q1058055)
action count
action union
action filter_type
action find_reverse
entity Q107724
relation P941
type Q838948
action filter_type
action find_reverse
entity Q1058055
relation P941
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P941', 'Q107724'] [{'concept': 'Q838948'}, 'P941', 'Q1058055']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( resource:Q107724 ) ( resource:Q1058055 ) } . ?o property:P941 ?m }
Nymph Never Say Never Again
2
action count
action union
action filter_type
action find_reverse
entity Thunderball
relation inspired by
type work of art
action filter_type
action find_reverse
entity The Three Graces
relation inspired by
type work of art
[{'concept': 'work of art'}, 'inspired by', 'Thunderball'] [{'concept': 'work of art'}, 'inspired by', 'The Three Graces']
SELECT DISTINCT ( COUNT ( ?o ) AS ?p ) WHERE { VALUES ( ?m ) { ( resource:Thunderball ) ( resource:The_Three_Graces ) } . ?o property:inspired_by ?m }
[]