Simple Question (Direct)
Simple Question
Q2113829
P106
Q12737077
USER
What are the professions of Nigel Balchin ?
(Q2113829,P106,c(Q12737077))
action filter_type
action find
entity Q2113829
relation P106
type Q12737077
['Q2113829', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q2113829 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Nigel Balchin
action filter_type
action find
entity Nigel Balchin
relation occupation
type occupation
['Nigel Balchin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Nigel_Balchin property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q212980 Q36180 Q47064
SYSTEM
psychologist, writer, military personnel
Q212980 Q36180 Q47064
(Q2113829,P106,c(Q12737077))
action filter_type
action find
entity Q2113829
relation P106
type Q12737077
The professions of Nigel Balchin are [ANSWERS]
['Q2113829', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q2113829 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
psychologist writer military personnel
The professions of Nigel Balchin are psychologist, writer and military personnel
psychologist writer military personnel
action filter_type
action find
entity Nigel Balchin
relation occupation
type occupation
['Nigel Balchin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Nigel_Balchin property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2113829
P58
Q838948
USER
Which works of art are Nigel Balchin a screenwriter of ?
(c(Q838948),P58,Q2113829)
action filter_type
action find_reverse
entity Q2113829
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q2113829']
SELECT DISTINCT ?n WHERE { ?n property:P58 resource:Q2113829 . ?n rdf:type ontology:Q838948 }
Nigel Balchin
action filter_type
action find_reverse
entity Nigel Balchin
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Nigel Balchin']
SELECT DISTINCT ?n WHERE { ?n property:screenwriter resource:Nigel_Balchin . ?n rdf:type ontology:work_of_art }
[]
work of art
Q1248538 Q1195373 Q3576935
SYSTEM
Barabbas, The Man Who Never Was, 23 Paces to Baker Street
Q6748276 Q2006853 Q3576935 Q383810 Q2430444 Q1887789 Q1195373 Q2571122 Q1248538 Q6864077 Q6288465
(c(Q838948),P58,Q2113829)
action filter_type
action find_reverse
entity Q2113829
relation P58
type Q838948
Barabbas, The Man Who Never was and 23 Paces to Baker Street are Nigel Balchin a screenwriter of
[{'concept': 'Q838948'}, 'P58', 'Q2113829']
SELECT DISTINCT ?n WHERE { ?n property:P58 resource:Q2113829 . ?n rdf:type ontology:Q838948 }
Mandy The Singer Not the Song 23 Paces to Baker Street Separate Lies The Barbarian and the Geisha Malta Story The Man Who Never Was The Blue Angel Barabbas Mine Own Executioner Josephine and Men
Barabbas, The Man Who Never was and 23 Paces to Baker Street are Nigel Balchin a screenwriter of
Barabbas The Man Who Never Was 23 Paces to Baker Street
action filter_type
action find_reverse
entity Nigel Balchin
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Nigel Balchin']
SELECT DISTINCT ?n WHERE { ?n property:screenwriter resource:Nigel_Balchin . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1248538 Q1195373 Q3576935
P86
Q502895
USER
Who were Barabbas, The Man Who Never Was and 23 Paces to Baker Street composed by ?
(Q1248538,P86,c(Q502895)) (Q1195373,P86,c(Q502895)) (Q3576935,P86,c(Q502895))
action union
action filter_type
action find
entity Q1248538
relation P86
type Q502895
action filter_type
action find
entity Q1195373
relation P86
type Q502895
action filter_type
action find
entity Q3576935
relation P86
type Q502895
['Q1248538', 'P86', {'concept': 'Q502895'}] ['Q1195373', 'P86', {'concept': 'Q502895'}] ['Q3576935', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { resource:Q1248538 property:P86 ?m . ?m rdf:type ontology:Q502895 } UNION { resource:Q1195373 property:P86 ?m . ?m rdf:type ontology:Q502895 } }
Barabbas The Man Who Never Was 23 Paces to Baker Street
action union
action filter_type
action find
entity Barabbas
relation composer
type common name
action filter_type
action find
entity The Man Who Never Was
relation composer
type common name
action filter_type
action find
entity 23 Paces to Baker Street
relation composer
type common name
['Barabbas', 'composer', {'concept': 'common name'}] ['The Man Who Never Was', 'composer', {'concept': 'common name'}] ['23 Paces to Baker Street', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { resource:Barabbas property:composer ?m . ?m rdf:type ontology:common_name } UNION { resource:The_Man_Who_Never_Was property:composer ?m . ?m rdf:type ontology:common_name } }
[]
common name
Q330230 Q428560 Q1367518
SYSTEM
Mario Nascimbene, Alan Rawsthorne, Leigh Harline
Q330230 Q428560 Q1367518
(Q1248538,P86,c(Q502895)) (Q1195373,P86,c(Q502895)) (Q3576935,P86,c(Q502895))
action union
action filter_type
action find
entity Q1248538
relation P86
type Q502895
action filter_type
action find
entity Q1195373
relation P86
type Q502895
action filter_type
action find
entity Q3576935
relation P86
type Q502895
Barabbas , The Man Never Was and 23 Paces to Baker Street composed by were [ANSWERS]
['Q1248538', 'P86', {'concept': 'Q502895'}] ['Q1195373', 'P86', {'concept': 'Q502895'}] ['Q3576935', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { resource:Q1248538 property:P86 ?m . ?m rdf:type ontology:Q502895 } UNION { resource:Q1195373 property:P86 ?m . ?m rdf:type ontology:Q502895 } }
Mario Nascimbene Alan Rawsthorne Leigh Harline
Barabbas , The Man Never Was and 23 Paces to Baker Street composed by were Mario Nascimbene, Alan Rawsthorne and Leigh Harline
Mario Nascimbene Alan Rawsthorne Leigh Harline
action union
action filter_type
action find
entity Barabbas
relation composer
type common name
action filter_type
action find
entity The Man Who Never Was
relation composer
type common name
action filter_type
action find
entity 23 Paces to Baker Street
relation composer
type common name
['Barabbas', 'composer', {'concept': 'common name'}] ['The Man Who Never Was', 'composer', {'concept': 'common name'}] ['23 Paces to Baker Street', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { resource:Barabbas property:composer ?m . ?m rdf:type ontology:common_name } UNION { resource:The_Man_Who_Never_Was property:composer ?m . ?m rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q428560
P136
Q15198957
USER
Which aspect of music can be considered as genre of that person ?
(Q428560,P136,c(Q15198957))
action filter_type
action find
entity Q428560
relation P136
type Q15198957
['Q428560', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?v WHERE { resource:Q428560 property:P136 ?v . ?v rdf:type ontology:Q15198957 }
Alan Rawsthorne
action filter_type
action find
entity Alan Rawsthorne
relation genre
type aspect of music
['Alan Rawsthorne', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?v WHERE { resource:Alan_Rawsthorne property:genre ?v . ?v rdf:type ontology:aspect_of_music }
[]
aspect of music
Clarification for simple ques.
Q1367518
SYSTEM
Did you mean Leigh Harline ?
Q330230 Q428560 Q1367518
(Q330230,P136,c(Q15198957)) (Q428560,P136,c(Q15198957)) (Q1367518,P136,c(Q15198957))
[ANSWER]
['Q330230', 'P136', {'concept': 'Q15198957'}] ['Q428560', 'P136', {'concept': 'Q15198957'}] ['Q1367518', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?v WHERE { resource:Q428560 property:P136 ?v . ?v rdf:type ontology:Q15198957 }
Mario Nascimbene Alan Rawsthorne Leigh Harline
Did you mean Leigh Harline ?
Leigh Harline
['Mario Nascimbene', 'genre', {'concept': 'aspect of music'}] ['Alan Rawsthorne', 'genre', {'concept': 'aspect of music'}] ['Leigh Harline', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?v WHERE { resource:Alan_Rawsthorne property:genre ?v . ?v rdf:type ontology:aspect_of_music }
[]
Simple Question (Coreferenced)
USER
No, I meant Alan Rawsthorne. Could you tell me the answer for that?
(Q428560,P136,c(Q15198957))
Q428560
['Q428560', 'P136', {'concept': 'Q15198957'}]
['Alan Rawsthorne', 'genre', {'concept': 'aspect of music'}]
[]
Q9734
SYSTEM
symphony
Q9734
(Q428560,P136,c(Q15198957))
action filter_type
action find
entity Q428560
relation P136
type Q15198957
[ANSWER] can be considered as genre of that person
['Q428560', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?v WHERE { resource:Q428560 property:P136 ?v . ?v rdf:type ontology:Q15198957 }
symphony
Symphony can be considered as genre of that person
symphony
action filter_type
action find
entity Alan Rawsthorne
relation genre
type aspect of music
['Alan Rawsthorne', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?v WHERE { resource:Alan_Rawsthorne property:genre ?v . ?v rdf:type ontology:aspect_of_music }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q838948 Q201658 Q3305213
USER
Which works of art do max number of film genres or paintings extend upon ?
(c(Q201658)|c(Q3305213),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q3305213
[[{'concept': 'Q201658'}, {'concept': 'Q3305213'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?t = ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q201658 ) ( ontology:Q3305213 ) } . ?e rdf:type ?z } GROUP BY ?r } . { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q3305213 ) } } GROUP BY ?o } } }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type painting
[[{'concept': 'film genre'}, {'concept': 'painting'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?t = ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:film_genre ) ( ontology:painting ) } . ?e rdf:type ?z } GROUP BY ?r } . { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:painting ) } } GROUP BY ?o } } }
[]
work of art film genre painting
Q41567 Q669694
SYSTEM
Hamlet, A Doll's House
Q41567 Q669694
(c(Q201658)|c(Q3305213),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
action find_reverse_tuple_counts
relation P144
type Q838948
type Q3305213
[ANSWERS]
[[{'concept': 'Q201658'}, {'concept': 'Q3305213'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?t = ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q201658 ) ( ontology:Q3305213 ) } . ?e rdf:type ?z } GROUP BY ?r } . { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q201658 ) ( ontology:Q3305213 ) } } GROUP BY ?o } } }
Hamlet A Doll's House
Which works of art max number of film genres or paintings extend upon
Hamlet A Doll's House
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
action find_reverse_tuple_counts
relation based on
type work of art
type painting
[[{'concept': 'film genre'}, {'concept': 'painting'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?t = ?a ) . { SELECT DISTINCT ?r ( COUNT ( ?e ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:film_genre ) ( ontology:painting ) } . ?e rdf:type ?z } GROUP BY ?r } . { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?y ) WHERE { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:film_genre ) ( ontology:painting ) } } GROUP BY ?o } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q201022
P180
Q838948 Q838948 Q386724
USER
Which works of art are depicted in around the same number of works of art or works as folk dance ?
(c(Q838948)|c(Q386724),P180,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q201022
relation P180
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) ?w WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } . ?b rdf:type ?p } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P180 resource:Q201022 . { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?o = ?c ) }
folk dance
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity folk dance
relation depicts
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) ?w WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:work ) } . ?b rdf:type ?p } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:depicts resource:folk_dance . { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?o = ?c ) }
[]
work of art work of art work
Q17305020 Q734834 Q465762
SYSTEM
Tanagra, Ghent Altarpiece, Laocoön and His Sons
Q86440 Q27478577 Q7294420 Q23714516 Q216402 Q18147625 Q18147624 Q20176696 Q1111051 Q846870 Q21375954 Q27478544 Q766487 Q232042 Q27462703 Q215194 Q3545179 Q221211 Q2439030 Q170980 Q333009 Q750209 Q19969041 Q734834 Q3015661 Q473237 Q20631770 Q267971 Q2535008 Q17172602 Q93184 Q177600 Q221323 Q2111434 Q1230963 Q185382 Q11060274 Q3424549 Q1779386 Q1395302 Q826635 Q2070542 Q733893 Q185392 Q619135 Q294001 Q848790 Q3731233 Q17275826 Q215911 Q476968 Q3305213 Q17305020 Q280336 Q652011 Q16332506 Q2963060 Q907387 Q3143107 Q374591 Q959962 Q6555477 Q125191 Q130958 Q371752 Q203443 Q201022 Q774967 Q945850 Q216185 Q79218 Q1989744 Q465762 Q7539835 Q745783 Q3918710 Q599302 Q208440 Q1192229 Q21743265
(c(Q838948)|c(Q386724),P180,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q201022
relation P180
type Q838948
type Q386724
[ANSWERS] are depicted in around the same number of works of art or works as folk dance
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) ?w WHERE { VALUES ( ?p ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } . ?b rdf:type ?p } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:P180 resource:Q201022 . { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q386724 ) } } } } . FILTER ( ?o = ?c ) }
The Tempest Artemis of Ephesus Raqs sharqi equestrian statue of Louis XIII Winged Victory of Samothrace Farnese Flora Farnese Hercules Sanford Robinson Gifford Colonne Vendôme Prometheus Bound Allegory of the city of Paris Silenus holding the child Dionysos David The Two Gentlemen of Verona Satyr playing flute gargoyle Rape of the Sabine Women Twelfth Night St. Peter's Baldacchino obelisk can-can Colossi of Memnon Allegory of the Seine River Ghent Altarpiece erotic dancing Statue of Bartolomeo Colleoni equestrian statue of George Washington Triton Fountain Neptune and Triton monumental cross drawing stick figure golden calf pendant Under Western Stars Trevi Fountain print Frederik V on Horseback Menat One True Thing Elephant and Obelisk Hermes Chair of Saint Peter Borghese Gladiator Apollo Belvedere Oedipus at Colonus Dying Gaul Heracles and Nessus Portrait of Rembrandt with a gorget serenade krater painting Tanagra partner dance Richard III Ploughman Marly horses Equestrian Statue of Marcus Aurelius Humains Farnese Hercules diagram Lion of Venice photograph The Great Sphinx calvary headstone folk dance Venus de' Medici Apollo and Daphne Charing Cross triptych Moses Laocoön and His Sons Sleeping Ariadne hydria Wrestlers Column of Antoninus Pius chess piece The Original Sin Torso in Metal from Rock Drill
Tanagra, Ghent Altarpiece and Laocoön and His Sons are depicted in around the same number of works of art or works as folk dance
Tanagra Ghent Altarpiece Laocoön and His Sons
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action count
action filter_multi_types
action find_reverse
entity folk dance
relation depicts
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) ?w WHERE { VALUES ( ?p ) { ( ontology:work_of_art ) ( ontology:work ) } . ?b rdf:type ?p } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { ?h property:depicts resource:folk_dance . { ?h rdf:type ?l . VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:work ) } } } } . FILTER ( ?o = ?c ) }
[]