Simple Question (Direct)
Simple Question
Q27627540
P57
Q502895
USER
Which person directed Doctor Strange (Doctor Extraño) ?
(Q27627540,P57,c(Q502895))
action filter_type
action find
entity Q27627540
relation P57
type Q502895
['Q27627540', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q27627540 property:P57 ?m }
Doctor Strange (Doctor Extraño)
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation director
type common name
['Doctor Strange (Doctor Extraño)', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Doctor_Strange_(Doctor_Extraño) property:director ?m }
[]
common name
Q23753030
SYSTEM
Rafael Calvo
Q23753030
(Q27627540,P57,c(Q502895))
action filter_type
action find
entity Q27627540
relation P57
type Q502895
[ANSWER] directed Doctor Strange (Doctor Extraño)
['Q27627540', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q27627540 property:P57 ?m }
Rafael Calvo
Rafael Calvo directed Doctor Strange (Doctor Extraño)
Rafael Calvo
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation director
type common name
['Doctor Strange (Doctor Extraño)', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Doctor_Strange_(Doctor_Extraño) property:director ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q27627540
P725
Q502895
USER
Who did the dubbing for that work ?
(Q23753030,P725,c(Q502895))
action filter_type
action find
entity Q27627540
relation P725
type Q502895
['Q23753030', 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q27627540 property:P725 ?z . ?z rdf:type ontology:Q502895 }
Doctor Strange (Doctor Extraño)
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation voice actor
type common name
['Rafael Calvo', 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Doctor_Strange_(Doctor_Extraño) property:voice_actor ?z . ?z rdf:type ontology:common_name }
[]
common name
Q27627641 Q23895071 Q11927013
SYSTEM
Isabel Valls, José Javier Serrano, Ivan Labanda
Q24634108 Q27627785 Q24036998 Q27627760 Q27627733 Q27627641 Q24040744 Q23895071 Q24040954 Q11927013
(Q23753030,P725,c(Q502895))
action filter_type
action find
entity Q27627540
relation P725
type Q502895
[ANSWERS] did the dubbing for that work
['Q23753030', 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q27627540 property:P725 ?z . ?z rdf:type ontology:Q502895 }
Iván Muelas Manuel Gimeno Carlos di Blasi Santi Lorenz Nuria Mediavilla Isabel Valls Paco Gázquez José Javier Serrano Salvador Moreno Ivan Labanda
Isabel Valls, José Javier Serrano and Ivan Labanda did the dubbing for that work
Isabel Valls José Javier Serrano Ivan Labanda
action filter_type
action find
entity Doctor Strange (Doctor Extraño)
relation voice actor
type common name
['Rafael Calvo', 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Doctor_Strange_(Doctor_Extraño) property:voice_actor ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P35
Q502895 Q35798 Q7275
USER
How many people are the heads of state of around 26 executive branches or states ?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
value 26
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { VALUES ( ?y ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?b rdf:type ?y } GROUP BY ?u } . FILTER ( ?w = 26 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
value 26
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { VALUES ( ?y ) { ( ontology:executive_branch ) ( ontology:state ) } . ?b rdf:type ?y } GROUP BY ?u } . FILTER ( ?w = 26 ) }
[]
common name executive branch state
SYSTEM
2
Q153688 Q168691
(c(Q35798)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
value 26
[ANSWER]
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { VALUES ( ?y ) { ( ontology:Q35798 ) ( ontology:Q7275 ) } . ?b rdf:type ?y } GROUP BY ?u } . FILTER ( ?w = 26 ) }
Umberto I of Italy Victor Emmanuel II of Savoy
2
action count
action approx
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
value 26
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?w ) WHERE { VALUES ( ?y ) { ( ontology:executive_branch ) ( ontology:state ) } . ?b rdf:type ?y } GROUP BY ?u } . FILTER ( ?w = 26 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19077417 Q27627540
P629
Q838948
USER
Which works of art are Doctor Strange (Doctor Extraño) or The Acharnians an edition or translation of ?
OR((Q27627540,P629,c(Q838948)), (Q19077417,P629,c(Q838948)))
action filter_type
action union
action find
entity Q27627540
relation P629
action find
entity Q19077417
relation P629
type Q838948
{'OR': [['Q27627540', 'P629', {'concept': 'Q838948'}], ['Q19077417', 'P629', {'concept': 'Q838948'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?p ) { ( resource:Q27627540 ) ( resource:Q19077417 ) } . ?p property:P629 ?g } . ?g rdf:type ontology:Q838948 }
The Acharnians Doctor Strange (Doctor Extraño)
action filter_type
action union
action find
entity Doctor Strange (Doctor Extraño)
relation edition or translation of
action find
entity The Acharnians
relation edition or translation of
type work of art
{'OR': [['Doctor Strange (Doctor Extraño)', 'edition or translation of', {'concept': 'work of art'}], ['The Acharnians', 'edition or translation of', {'concept': 'work of art'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?p ) { ( resource:Doctor_Strange_(Doctor_Extraño) ) ( resource:The_Acharnians ) } . ?p property:edition_or_translation_of ?g } . ?g rdf:type ontology:work_of_art }
[]
work of art
Q1059987 Q18406872
SYSTEM
The Acharnians, Doctor Strange
Q1059987 Q18406872
OR((Q27627540,P629,c(Q838948)), (Q19077417,P629,c(Q838948)))
action filter_type
action union
action find
entity Q27627540
relation P629
action find
entity Q19077417
relation P629
type Q838948
[ANSWERS] are Doctor Strange (Doctor Extraño) or The Acharnians an edition or translation of
{'OR': [['Q27627540', 'P629', {'concept': 'Q838948'}], ['Q19077417', 'P629', {'concept': 'Q838948'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?p ) { ( resource:Q27627540 ) ( resource:Q19077417 ) } . ?p property:P629 ?g } . ?g rdf:type ontology:Q838948 }
The Acharnians Doctor Strange
The Acharnians and Doctor Strange are Doctor Strange (Doctor Extraño) or The Acharnians an edition or translation of
The Acharnians Doctor Strange
action filter_type
action union
action find
entity Doctor Strange (Doctor Extraño)
relation edition or translation of
action find
entity The Acharnians
relation edition or translation of
type work of art
{'OR': [['Doctor Strange (Doctor Extraño)', 'edition or translation of', {'concept': 'work of art'}], ['The Acharnians', 'edition or translation of', {'concept': 'work of art'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?p ) { ( resource:Doctor_Strange_(Doctor_Extraño) ) ( resource:The_Acharnians ) } . ?p property:edition_or_translation_of ?g } . ?g rdf:type ontology:work_of_art }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P800
Q502895
USER
How many people are author of that work of art ?
(c(Q502895),P800,Q1059987)
[{'concept': 'Q502895'}, 'P800', 'Q1059987']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P800 resource:Q21198477 . ?z rdf:type ontology:Q502895 }
[{'concept': 'common name'}, 'notable work', 'The Acharnians']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:notable_work resource:The_Acharnians . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q1059987
SYSTEM
Did you mean The Acharnians ?
(c(Q502895),P800,Q1059987) (c(Q502895),P800,Q18406872)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q1059987'] [{'concept': 'Q502895'}, 'P800', 'Q18406872']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P800 resource:Q21198477 . ?z rdf:type ontology:Q502895 }
Did you mean The Acharnians ?
The Acharnians
[{'concept': 'common name'}, 'notable work', 'The Acharnians'] [{'concept': 'common name'}, 'notable work', 'Doctor Strange']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:notable_work resource:The_Acharnians . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P800,Q1059987)
[{'concept': 'Q502895'}, 'P800', 'Q1059987']
[{'concept': 'common name'}, 'notable work', 'The Acharnians']
[]
SYSTEM
1
Q43353
(c(Q502895),P800,Q1059987)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q1059987']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P800 resource:Q21198477 . ?z rdf:type ontology:Q502895 }
Aristophanes
1
[{'concept': 'common name'}, 'notable work', 'The Acharnians']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:notable_work resource:The_Acharnians . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q18406872
P136
Q483394 Q1792379
USER
How many genres or art genres are the genre of Doctor Strange ?
(Q18406872,P136,c(Q483394)) (Q18406872,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q18406872
relation P136
type Q483394
action filter_type
action find
entity Q18406872
relation P136
type Q1792379
['Q18406872', 'P136', {'concept': 'Q483394'}] ['Q18406872', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:Q483394 ) ( ontology:Q1792379 ) } . ?e rdf:type ?h }
Doctor Strange
action count
action union
action filter_type
action find
entity Doctor Strange
relation genre
type genre
action filter_type
action find
entity Doctor Strange
relation genre
type art genre
['Doctor Strange', 'genre', {'concept': 'genre'}] ['Doctor Strange', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:genre ) ( ontology:art_genre ) } . ?e rdf:type ?h }
[]
genre art genre
SYSTEM
4
Q24925 Q1535153 Q319221 Q188473
(Q18406872,P136,c(Q483394)) (Q18406872,P136,c(Q1792379))
action count
action union
action filter_type
action find
entity Q18406872
relation P136
type Q483394
action filter_type
action find
entity Q18406872
relation P136
type Q1792379
[ANSWER]
['Q18406872', 'P136', {'concept': 'Q483394'}] ['Q18406872', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:Q483394 ) ( ontology:Q1792379 ) } . ?e rdf:type ?h }
science fiction superhero film adventure film action film
4
action count
action union
action filter_type
action find
entity Doctor Strange
relation genre
type genre
action filter_type
action find
entity Doctor Strange
relation genre
type art genre
['Doctor Strange', 'genre', {'concept': 'genre'}] ['Doctor Strange', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:genre ) ( ontology:art_genre ) } . ?e rdf:type ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5347016 Q18406872
P161
Q502895
USER
Which people starred in Doctor Strange or Ee Sanje ?
OR((Q18406872,P161,c(Q502895)), (Q5347016,P161,c(Q502895)))
action filter_type
action union
action find
entity Q18406872
relation P161
action find
entity Q5347016
relation P161
type Q502895
{'OR': [['Q18406872', 'P161', {'concept': 'Q502895'}], ['Q5347016', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5347016 property:P161 ?w } UNION { resource:Q18406872 property:P161 ?w } } . ?w rdf:type ontology:Q502895 }
Ee Sanje Doctor Strange
action filter_type
action union
action find
entity Doctor Strange
relation cast member
action find
entity Ee Sanje
relation cast member
type common name
{'OR': [['Doctor Strange', 'cast member', {'concept': 'common name'}], ['Ee Sanje', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ee_Sanje property:cast_member ?w } UNION { resource:Doctor_Strange property:cast_member ?w } } . ?w rdf:type ontology:common_name }
[]
common name
Q190386 Q7418576 Q28310 Q294647 Q27624493 Q27624417 Q200534 Q27670379 Q27670385 Q317343
SYSTEM
Some of them are Rachel McAdams, Sanjjanaa, Scott Adkins, Mads Mikkelsen, Katrina Durden, Zara Phythian, Tilda Swinton, Daniel Dow, Ezra Khan, Chiwetel Ejiofor
Q27624520 Q317343 Q27624466 Q2844564 Q27670379 Q27670333 Q27670371 Q27670339 Q73362 Q244674 Q54314 Q7418576 Q16204431 Q3329808 Q27670385 Q200534 Q27670388 Q27670268 Q190386 Q27624417 Q27670305 Q27670368 Q27624555 Q28310 Q261981 Q294647 Q27624493 Q438445 Q27670352 Q27601640
OR((Q18406872,P161,c(Q502895)), (Q5347016,P161,c(Q502895)))
action filter_type
action union
action find
entity Q18406872
relation P161
action find
entity Q5347016
relation P161
type Q502895
[ANSWERS] starred in Doctor Strange or Ee Sanje
{'OR': [['Q18406872', 'P161', {'concept': 'Q502895'}], ['Q5347016', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q5347016 property:P161 ?w } UNION { resource:Q18406872 property:P161 ?w } } . ?w rdf:type ontology:Q502895 }
Topo Wresniwiro Chiwetel Ejiofor Alaa Safi Amy Landecker Daniel Dow Adam Pelta-Pauls Guillaume Faure Sarah Malin Benjamin Bratt Benedict Cumberbatch Chris Hemsworth Sanjjanaa Pat Kiernan Benedict Wong Ezra Khan Tilda Swinton Kimberly Van Luin Linda Louise Duan Rachel McAdams Zara Phythian Mark Anthony Brighton Elizabeth Healey Umit Ulgen Scott Adkins Meera Syal Mads Mikkelsen Katrina Durden Michael Stuhlbarg Eben Young Kobna Holdbrook-Smith
Rachel McAdams, Sanjjanaa, Scott Adkins, Mads Mikkelsen, Katrina Durden, Zara Phythian, Tilda Swinton, Daniel Dow, Ezra Khan and Chiwetel Ejiofor starred in Doctor Strange or Ee Sanje
Rachel McAdams Sanjjanaa Scott Adkins Mads Mikkelsen Katrina Durden Zara Phythian Tilda Swinton Daniel Dow Ezra Khan Chiwetel Ejiofor
action filter_type
action union
action find
entity Doctor Strange
relation cast member
action find
entity Ee Sanje
relation cast member
type common name
{'OR': [['Doctor Strange', 'cast member', {'concept': 'common name'}], ['Ee Sanje', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ee_Sanje property:cast_member ?w } UNION { resource:Doctor_Strange property:cast_member ?w } } . ?w rdf:type ontology:common_name }
[]