Simple Question (Direct)
Simple Question
Q462613
P119
Q39614
USER
Where is the place of burial for Pierre Decourcelle located ?
(Q462613,P119,c(Q39614))
action filter_type
action find
entity Q462613
relation P119
type Q39614
['Q462613', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?b WHERE { resource:Q462613 property:P119 ?b . ?b rdf:type ontology:Q39614 }
Pierre Decourcelle
action filter_type
action find
entity Pierre Decourcelle
relation place of burial
type cemetery
['Pierre Decourcelle', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?b WHERE { resource:Pierre_Decourcelle property:place_of_burial ?b . ?b rdf:type ontology:cemetery }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q462613,P119,c(Q39614))
action filter_type
action find
entity Q462613
relation P119
type Q39614
The place of burial for Pierre Decourcelle is located in [ANSWER]
['Q462613', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?b WHERE { resource:Q462613 property:P119 ?b . ?b rdf:type ontology:Q39614 }
Père Lachaise Cemetery
The place of burial for Pierre Decourcelle is located in Père Lachaise Cemetery
Père Lachaise Cemetery
action filter_type
action find
entity Pierre Decourcelle
relation place of burial
type cemetery
['Pierre Decourcelle', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?b WHERE { resource:Pierre_Decourcelle property:place_of_burial ?b . ?b rdf:type ontology:cemetery }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q311
P84
Q502895
USER
Which person designed the architecture of that cemetery ?
(Q311,P84,c(Q502895))
action filter_type
action find
entity Q311
relation P84
type Q502895
['Q311', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q311 property:P84 ?w . ?w rdf:type ontology:Q502895 }
Père Lachaise Cemetery
action filter_type
action find
entity Père Lachaise Cemetery
relation architect
type common name
['Père Lachaise Cemetery', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Père_Lachaise_Cemetery property:architect ?w . ?w rdf:type ontology:common_name }
[]
common name
Q1342645
SYSTEM
Alexandre-Théodore Brongniart
Q1342645
(Q311,P84,c(Q502895))
action filter_type
action find
entity Q311
relation P84
type Q502895
[ANSWER] designed the architecture of that cemetery
['Q311', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q311 property:P84 ?w . ?w rdf:type ontology:Q502895 }
Alexandre-Théodore Brongniart
Alexandre-Théodore Brongniart designed the architecture of that cemetery
Alexandre-Théodore Brongniart
action filter_type
action find
entity Père Lachaise Cemetery
relation architect
type common name
['Père Lachaise Cemetery', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Père_Lachaise_Cemetery property:architect ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q207628 Q811979
USER
Which people are approximately 1 musical compositions or architectural structures dedicated to ?
(c(Q207628)|c(Q811979),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
value 1
[[{'concept': 'Q207628'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q207628 ) } . ?e rdf:type ?p } GROUP BY ?o } . FILTER ( ?b = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
value 1
[[{'concept': 'musical composition'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?o WHERE { VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:musical_composition ) } . ?e rdf:type ?p } GROUP BY ?o } . FILTER ( ?b = 1 ) }
[]
common name musical composition architectural structure
Q41309 Q120180 Q935
SYSTEM
Franz Liszt, Alexander III of Russia, Isaac Newton
Q85210 Q150767 Q935 Q1948037 Q44039 Q120180 Q2594000 Q160257 Q313196 Q51056 Q2853967 Q472635 Q92467 Q538335 Q374467 Q179858 Q123062 Q41309
(c(Q207628)|c(Q811979),P825,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q207628
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
value 1
[ANSWERS] are approximately 1 musical compositions or architectural structures dedicated to
[[{'concept': 'Q207628'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q207628 ) } . ?e rdf:type ?p } GROUP BY ?o } . FILTER ( ?b = 1 ) }
Karl Ritter von Stremayr Benjamin Britten Isaac Newton Moritz Reichsgraf von Fries Ludwig II of Bavaria Alexander III of Russia Diego Brosset Wanda Landowska Louis Desaix Franz Joseph I of Austria Antoine Gailleton Gustav, Prince of Vasa Theodor Avé-Lallemant Marianne Kirchgessner Gabriel of Our Lady of Sorrows Urho Kekkonen Jacques Necker Franz Liszt
Franz Liszt, Alexander III of Russia and Isaac Newton are approximately 1 musical compositions or architectural structures dedicated to
Franz Liszt Alexander III of Russia Isaac Newton
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type musical composition
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
value 1
[[{'concept': 'musical composition'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?b ) ?o WHERE { VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:musical_composition ) } . ?e rdf:type ?p } GROUP BY ?o } . FILTER ( ?b = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q41309
P737
Q502895
USER
Which person was influenced by that one ?
(c(Q502895),P737,Q41309)
action filter_type
action find_reverse
entity Q41309
relation P737
type Q502895
[{'concept': 'Q502895'}, 'P737', 'Q41309']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P737 resource:Q41309 }
Franz Liszt
action filter_type
action find_reverse
entity Franz Liszt
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Franz Liszt']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:influenced_by resource:Franz_Liszt }
[]
common name
Clarification for simple ques.
Q120180
SYSTEM
Did you mean Alexander III of Russia ?
Q41309 Q120180 Q935
(c(Q502895),P737,Q41309) (c(Q502895),P737,Q120180) (c(Q502895),P737,Q935)
[ANSWER]
[{'concept': 'Q502895'}, 'P737', 'Q41309'] [{'concept': 'Q502895'}, 'P737', 'Q120180'] [{'concept': 'Q502895'}, 'P737', 'Q935']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P737 resource:Q41309 }
Franz Liszt Alexander III of Russia Isaac Newton
Did you mean Alexander III of Russia ?
Alexander III of Russia
[{'concept': 'common name'}, 'influenced by', 'Franz Liszt'] [{'concept': 'common name'}, 'influenced by', 'Alexander III of Russia'] [{'concept': 'common name'}, 'influenced by', 'Isaac Newton']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:influenced_by resource:Franz_Liszt }
[]
Simple Question (Coreferenced)
USER
No, I meant Franz Liszt. Could you tell me the answer for that?
(c(Q502895),P737,Q41309)
Q41309
[{'concept': 'Q502895'}, 'P737', 'Q41309']
[{'concept': 'common name'}, 'influenced by', 'Franz Liszt']
[]
Q655736
SYSTEM
William Wallace
Q655736
(c(Q502895),P737,Q41309)
action filter_type
action find_reverse
entity Q41309
relation P737
type Q502895
Darwin [ANSWER] was influenced by that one
[{'concept': 'Q502895'}, 'P737', 'Q41309']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P737 resource:Q41309 }
William Wallace
Darwin William Wallace was influenced by that one
William Wallace
action filter_type
action find_reverse
entity Franz Liszt
relation influenced by
type common name
[{'concept': 'common name'}, 'influenced by', 'Franz Liszt']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:influenced_by resource:Franz_Liszt }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q655736 Q145 Q515721
P27
Q15617994
USER
Is that person a native of United Kingdom and Otzweiler ?
(Q655736,P27,Q145) (Q655736,P27,Q515721)
action is_in
entity Q655736
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q515721
relation P27
['Q655736', 'P27', 'Q145'] ['Q655736', 'P27', 'Q515721']
ASK WHERE { resource:Q655736 property:P27 resource:Q145 . resource:Q655736 property:P27 resource:Q515721 }
William Wallace United Kingdom Otzweiler
action is_in
entity William Wallace
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Otzweiler
relation country of citizenship
['William Wallace', 'country of citizenship', 'United Kingdom'] ['William Wallace', 'country of citizenship', 'Otzweiler']
ASK WHERE { resource:William_Wallace property:country_of_citizenship resource:United_Kingdom . resource:William_Wallace property:country_of_citizenship resource:Otzweiler }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q655736,P27,Q145) (Q655736,P27,Q515721)
action is_in
entity Q655736
action intersection
action find_reverse
entity Q145
relation P27
action find_reverse
entity Q515721
relation P27
[ANSWER]
['Q655736', 'P27', 'Q145'] ['Q655736', 'P27', 'Q515721']
ASK WHERE { resource:Q655736 property:P27 resource:Q145 . resource:Q655736 property:P27 resource:Q515721 }
YES and NO respectively
action is_in
entity William Wallace
action intersection
action find_reverse
entity United Kingdom
relation country of citizenship
action find_reverse
entity Otzweiler
relation country of citizenship
['William Wallace', 'country of citizenship', 'United Kingdom'] ['William Wallace', 'country of citizenship', 'Otzweiler']
ASK WHERE { resource:William_Wallace property:country_of_citizenship resource:United_Kingdom . resource:William_Wallace property:country_of_citizenship resource:Otzweiler }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q311
P138
Q502895
USER
Which person is namesake of Père Lachaise Cemetery ?
(Q311,P138,c(Q502895))
action filter_type
action find
entity Q311
relation P138
type Q502895
['Q311', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q311 property:P138 ?c . ?c rdf:type ontology:Q502895 }
Père Lachaise Cemetery
action filter_type
action find
entity Père Lachaise Cemetery
relation named after
type common name
['Père Lachaise Cemetery', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Père_Lachaise_Cemetery property:named_after ?c . ?c rdf:type ontology:common_name }
[]
common name
Q960159
SYSTEM
François de la Chaise
Q960159
(Q311,P138,c(Q502895))
action filter_type
action find
entity Q311
relation P138
type Q502895
[ANSWER] is namesake of Père Lachaise Cemetery
['Q311', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q311 property:P138 ?c . ?c rdf:type ontology:Q502895 }
François de la Chaise
François de la Chaise is namesake of Père Lachaise Cemetery
François de la Chaise
action filter_type
action find
entity Père Lachaise Cemetery
relation named after
type common name
['Père Lachaise Cemetery', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Père_Lachaise_Cemetery property:named_after ?c . ?c rdf:type ontology:common_name }
[]