Simple Question (Direct)
Simple Question
Q550171
P21
Q290
USER
Which sex does Jean-Pierre Kahane have ?
(Q550171,P21,c(Q290))
action filter_type
action find
entity Q550171
relation P21
type Q290
['Q550171', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q550171 property:P21 ?c . ?c rdf:type ontology:Q290 }
Jean-Pierre Kahane
action filter_type
action find
entity Jean-Pierre Kahane
relation gender
type sex
['Jean-Pierre Kahane', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Jean-Pierre_Kahane property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q550171,P21,c(Q290))
action filter_type
action find
entity Q550171
relation P21
type Q290
Jean-Pierre Kahane has 1 [ANSWER]
['Q550171', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q550171 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
Jean-Pierre Kahane has 1 male
male
action filter_type
action find
entity Jean-Pierre Kahane
relation gender
type sex
['Jean-Pierre Kahane', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Jean-Pierre_Kahane property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q550171
P184
Q502895
USER
Which person was the doctoral supervisor of that one ?
(Q6581097,P184,c(Q502895))
action filter_type
action find
entity Q550171
relation P184
type Q502895
['Q6581097', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q550171 property:P184 ?o . ?o rdf:type ontology:Q502895 }
Jean-Pierre Kahane
action filter_type
action find
entity Jean-Pierre Kahane
relation doctoral advisor
type common name
['male', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Jean-Pierre_Kahane property:doctoral_advisor ?o . ?o rdf:type ontology:common_name }
[]
common name
Q720471
SYSTEM
Szolem Mandelbrojt
Q720471
(Q6581097,P184,c(Q502895))
action filter_type
action find
entity Q550171
relation P184
type Q502895
[ANSWER] was the doctoral supervisor of that one
['Q6581097', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q550171 property:P184 ?o . ?o rdf:type ontology:Q502895 }
Szolem Mandelbrojt
Szolem Mandelbrojt was the doctoral supervisor of that one
Szolem Mandelbrojt
action filter_type
action find
entity Jean-Pierre Kahane
relation doctoral advisor
type common name
['male', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Jean-Pierre_Kahane property:doctoral_advisor ?o . ?o rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q142 Q550171
P27 P40
Q502895
USER
Which people have Jean-Pierre Kahane as a child and are a citizen of France ?
AND((c(Q502895),P40,Q550171), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q550171
relation P40
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q550171'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?v WHERE { ?v property:P27 resource:Q142 . ?v property:P40 resource:Q550171 . ?v rdf:type ontology:Q502895 }
France Jean-Pierre Kahane
action filter_type
action intersection
action find_reverse
entity Jean-Pierre Kahane
relation child
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Jean-Pierre Kahane'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?v WHERE { ?v property:country_of_citizenship resource:France . ?v property:child resource:Jean-Pierre_Kahane . ?v rdf:type ontology:common_name }
[]
common name
Q16634886
SYSTEM
Ernest Kahane
Q16634886
AND((c(Q502895),P40,Q550171), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q550171
relation P40
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWER] have Jean-Pierre Kahane as a child and are a citizen of France
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q550171'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?v WHERE { ?v property:P27 resource:Q142 . ?v property:P40 resource:Q550171 . ?v rdf:type ontology:Q502895 }
Ernest Kahane
Ernest Kahane have Jean-Pierre Kahane as a child and are a citizen of France
Ernest Kahane
action filter_type
action intersection
action find_reverse
entity Jean-Pierre Kahane
relation child
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Jean-Pierre Kahane'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?v WHERE { ?v property:country_of_citizenship resource:France . ?v property:child resource:Jean-Pierre_Kahane . ?v rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q16634886 Q90
P20
Q56061
USER
Did that person die Paris ?
(Q16634886,P20,Q90)
action is_in
entity Q90
action find
entity Q16634886
relation P20
['Q16634886', 'P20', 'Q90']
ASK WHERE { resource:Q16634886 property:P20 resource:Q90 }
Ernest Kahane Paris
action is_in
entity Paris
action find
entity Ernest Kahane
relation place of death
['Ernest Kahane', 'place of death', 'Paris']
ASK WHERE { resource:Ernest_Kahane property:place_of_death resource:Paris }
[]
administrative territorial entity
SYSTEM
YES
(Q16634886,P20,Q90)
action is_in
entity Q90
action find
entity Q16634886
relation P20
[ANSWER]
['Q16634886', 'P20', 'Q90']
ASK WHERE { resource:Q16634886 property:P20 resource:Q90 }
Yes
action is_in
entity Paris
action find
entity Ernest Kahane
relation place of death
['Ernest Kahane', 'place of death', 'Paris']
ASK WHERE { resource:Ernest_Kahane property:place_of_death resource:Paris }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q720471 Q46300
P27
Q15617994
USER
Is Szolem Mandelbrojt an inhabitant of Crespadoro ?
(Q720471,P27,Q46300)
action is_in
entity Q46300
action find
entity Q720471
relation P27
['Q720471', 'P27', 'Q46300']
ASK WHERE { resource:Q720471 property:P27 resource:Q46300 }
Szolem Mandelbrojt Crespadoro
action is_in
entity Crespadoro
action find
entity Szolem Mandelbrojt
relation country of citizenship
['Szolem Mandelbrojt', 'country of citizenship', 'Crespadoro']
ASK WHERE { resource:Szolem_Mandelbrojt property:country_of_citizenship resource:Crespadoro }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q720471,P27,Q46300)
action is_in
entity Q46300
action find
entity Q720471
relation P27
[ANSWER]
['Q720471', 'P27', 'Q46300']
ASK WHERE { resource:Q720471 property:P27 resource:Q46300 }
No
action is_in
entity Crespadoro
action find
entity Szolem Mandelbrojt
relation country of citizenship
['Szolem Mandelbrojt', 'country of citizenship', 'Crespadoro']
ASK WHERE { resource:Szolem_Mandelbrojt property:country_of_citizenship resource:Crespadoro }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 3208 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3208
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?c ) WHERE { ?w property:P1303 ?q . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?c = 3208 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3208
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?c ) WHERE { ?w property:instrument ?q . ?w rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?c = 3208 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3208
[ANSWERS] are played by approximately 3208 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?c ) WHERE { ?w property:P1303 ?q . ?w rdf:type ontology:Q502895 . ?q rdf:type ontology:Q34379 } GROUP BY ?q } . FILTER ( ?c = 3208 ) }
violin organ drum kit
Violin, organ and drum kit are played by approximately 3208 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3208
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?c ) WHERE { ?w property:instrument ?q . ?w rdf:type ontology:common_name . ?q rdf:type ontology:musical_instrument } GROUP BY ?q } . FILTER ( ?c = 3208 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1444
P870
Q15850590
USER
Who employs that musical instrument as a musical instrument ?
(c(Q15850590),P870,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P870
type Q15850590
[{'concept': 'Q15850590'}, 'P870', 'Q1444']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15850590 . ?h property:P870 resource:Q1444 }
organ
action filter_type
action find_reverse
entity organ
relation instrumentation
type theatrical genre
[{'concept': 'theatrical genre'}, 'instrumentation', 'organ']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:theatrical_genre . ?h property:instrumentation resource:organ }
[]
theatrical genre
Clarification for simple ques.
Q8355
SYSTEM
Did you mean violin ?
Q8355 Q1444 Q128309
(c(Q15850590),P870,Q8355) (c(Q15850590),P870,Q1444) (c(Q15850590),P870,Q128309)
[ANSWER]
[{'concept': 'Q15850590'}, 'P870', 'Q8355'] [{'concept': 'Q15850590'}, 'P870', 'Q1444'] [{'concept': 'Q15850590'}, 'P870', 'Q128309']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15850590 . ?h property:P870 resource:Q1444 }
violin organ drum kit
Did you mean violin ?
violin
[{'concept': 'theatrical genre'}, 'instrumentation', 'violin'] [{'concept': 'theatrical genre'}, 'instrumentation', 'organ'] [{'concept': 'theatrical genre'}, 'instrumentation', 'drum kit']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:theatrical_genre . ?h property:instrumentation resource:organ }
[]
Simple Question (Coreferenced)
USER
No, I meant organ. Could you tell me the answer for that?
(c(Q15850590),P870,Q1444)
Q1444
[{'concept': 'Q15850590'}, 'P870', 'Q1444']
[{'concept': 'theatrical genre'}, 'instrumentation', 'organ']
[]
Q23085 Q172324 Q723407
SYSTEM
Lohengrin, Otello, Salome
Q1235069 Q723407 Q249749 Q207990 Q1143019 Q7721223 Q1220040 Q2550219 Q172324 Q1216312 Q23085
(c(Q15850590),P870,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P870
type Q15850590
[ANSWERS] employ that musical instrument as a musical instrument
[{'concept': 'Q15850590'}, 'P870', 'Q1444']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15850590 . ?h property:P870 resource:Q1444 }
Doktor Faust Salome Bluebeard's Castle Turandot Die Frau ohne Schatten The Canterville Ghost Die ägyptische Helena Esclarmonde Otello Die Soldaten Lohengrin
Lohengrin, Otello and Salome employ that musical instrument as a musical instrument
Lohengrin Otello Salome
action filter_type
action find_reverse
entity organ
relation instrumentation
type theatrical genre
[{'concept': 'theatrical genre'}, 'instrumentation', 'organ']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:theatrical_genre . ?h property:instrumentation resource:organ }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q23085 Q172324 Q723407
P800
Q502895
USER
Which people are accredited with being the author of the notable work Lohengrin, Otello and Salome ?
(c(Q502895),P800,Q23085) (c(Q502895),P800,Q172324) (c(Q502895),P800,Q723407)
action union
action filter_type
action find_reverse
entity Q23085
relation P800
type Q502895
action filter_type
action find_reverse
entity Q172324
relation P800
type Q502895
action filter_type
action find_reverse
entity Q723407
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q23085'] [{'concept': 'Q502895'}, 'P800', 'Q172324'] [{'concept': 'Q502895'}, 'P800', 'Q723407']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Q23085 ) ( resource:Q172324 ) } . ?q property:P800 ?i }
Lohengrin Otello Salome
action union
action filter_type
action find_reverse
entity Lohengrin
relation notable work
type common name
action filter_type
action find_reverse
entity Otello
relation notable work
type common name
action filter_type
action find_reverse
entity Salome
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Lohengrin'] [{'concept': 'common name'}, 'notable work', 'Otello'] [{'concept': 'common name'}, 'notable work', 'Salome']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Lohengrin ) ( resource:Otello ) } . ?q property:notable_work ?i }
[]
common name
Q1511 Q7317 Q13894
SYSTEM
Richard Wagner, Giuseppe Verdi, Richard Strauss
Q1511 Q7317 Q13894
(c(Q502895),P800,Q23085) (c(Q502895),P800,Q172324) (c(Q502895),P800,Q723407)
action union
action filter_type
action find_reverse
entity Q23085
relation P800
type Q502895
action filter_type
action find_reverse
entity Q172324
relation P800
type Q502895
action filter_type
action find_reverse
entity Q723407
relation P800
type Q502895
[ANSWERS] are accredited with being the author of the notable work Lohengrin, Otello and Salome
[{'concept': 'Q502895'}, 'P800', 'Q23085'] [{'concept': 'Q502895'}, 'P800', 'Q172324'] [{'concept': 'Q502895'}, 'P800', 'Q723407']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Q23085 ) ( resource:Q172324 ) } . ?q property:P800 ?i }
Richard Wagner Giuseppe Verdi Richard Strauss
Richard Wagner, Giuseppe Verdi and Richard Strauss are accredited with being the author of the notable work Lohengrin, Otello and Salome
Richard Wagner Giuseppe Verdi Richard Strauss
action union
action filter_type
action find_reverse
entity Lohengrin
relation notable work
type common name
action filter_type
action find_reverse
entity Otello
relation notable work
type common name
action filter_type
action find_reverse
entity Salome
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Lohengrin'] [{'concept': 'common name'}, 'notable work', 'Otello'] [{'concept': 'common name'}, 'notable work', 'Salome']
SELECT DISTINCT ?q WHERE { VALUES ( ?i ) { ( resource:Lohengrin ) ( resource:Otello ) } . ?q property:notable_work ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1511
P86
Q15850590
USER
What are Richard Wagner a composer of ?
(c(Q15850590),P86,Q1511)
action filter_type
action find_reverse
entity Q1511
relation P86
type Q15850590
[{'concept': 'Q15850590'}, 'P86', 'Q1511']
SELECT DISTINCT ?i WHERE { ?i property:P86 resource:Q1511 . ?i rdf:type ontology:Q15850590 }
Richard Wagner
action filter_type
action find_reverse
entity Richard Wagner
relation composer
type theatrical genre
[{'concept': 'theatrical genre'}, 'composer', 'Richard Wagner']
SELECT DISTINCT ?i WHERE { ?i property:composer resource:Richard_Wagner . ?i rdf:type ontology:theatrical_genre }
[]
theatrical genre
Q190237 Q23085 Q272029
SYSTEM
Der Ring des Nibelungen, Lohengrin, Götterdämmerung
Q1324254 Q23085 Q114640 Q689441 Q465540 Q1213477 Q174392 Q324319 Q327717 Q1996297 Q190237 Q333146 Q560619 Q272029 Q220340 Q477656
(c(Q15850590),P86,Q1511)
action filter_type
action find_reverse
entity Q1511
relation P86
type Q15850590
Richard Wagner a composer of are [ANSWERS]
[{'concept': 'Q15850590'}, 'P86', 'Q1511']
SELECT DISTINCT ?i WHERE { ?i property:P86 resource:Q1511 . ?i rdf:type ontology:Q15850590 }
Tristan und Isolde Lohengrin The Flying Dutchman Rienzi Die Meistersinger von Nürnberg Die Hochzeit Das Liebesverbot Die Walküre Das Rheingold Männerlist grösser als Frauenlist Der Ring des Nibelungen Siegfried Tannhäuser Götterdämmerung Parsifal Die Feen
Richard Wagner a composer of are Der Ring des Nibelungen, Lohengrin and Götterdämmerung
Der Ring des Nibelungen Lohengrin Götterdämmerung
action filter_type
action find_reverse
entity Richard Wagner
relation composer
type theatrical genre
[{'concept': 'theatrical genre'}, 'composer', 'Richard Wagner']
SELECT DISTINCT ?i WHERE { ?i property:composer resource:Richard_Wagner . ?i rdf:type ontology:theatrical_genre }
[]
Clarification
Simple Question|Single Entity|Indirect
Q272029
P144
Q24457356
USER
Which historiographical concept is that theatrical genre considered a copy of ?
(Q272029,P144,c(Q24457356))
action filter_type
action find
entity Q272029
relation P144
type Q24457356
['Q272029', 'P144', {'concept': 'Q24457356'}]
SELECT DISTINCT ?w WHERE { resource:Q272029 property:P144 ?w . ?w rdf:type ontology:Q24457356 }
Götterdämmerung
action filter_type
action find
entity Götterdämmerung
relation based on
type historiographical concept
['Götterdämmerung', 'based on', {'concept': 'historiographical concept'}]
SELECT DISTINCT ?w WHERE { resource:Götterdämmerung property:based_on ?w . ?w rdf:type ontology:historiographical_concept }
[]
historiographical concept
Clarification for simple ques.
Q272029
SYSTEM
Did you mean Götterdämmerung ?
Q190237 Q23085 Q272029
(Q190237,P144,c(Q24457356)) (Q23085,P144,c(Q24457356)) (Q272029,P144,c(Q24457356))
[ANSWER]
['Q190237', 'P144', {'concept': 'Q24457356'}] ['Q23085', 'P144', {'concept': 'Q24457356'}] ['Q272029', 'P144', {'concept': 'Q24457356'}]
SELECT DISTINCT ?w WHERE { resource:Q272029 property:P144 ?w . ?w rdf:type ontology:Q24457356 }
Der Ring des Nibelungen Lohengrin Götterdämmerung
Did you mean Götterdämmerung ?
Götterdämmerung
['Der Ring des Nibelungen', 'based on', {'concept': 'historiographical concept'}] ['Lohengrin', 'based on', {'concept': 'historiographical concept'}] ['Götterdämmerung', 'based on', {'concept': 'historiographical concept'}]
SELECT DISTINCT ?w WHERE { resource:Götterdämmerung property:based_on ?w . ?w rdf:type ontology:historiographical_concept }
[]
Simple Question (Coreferenced)
USER
Yes
(Q272029,P144,c(Q24457356))
['Q272029', 'P144', {'concept': 'Q24457356'}]
['Götterdämmerung', 'based on', {'concept': 'historiographical concept'}]
[]
Q128285
SYSTEM
Norse mythology
Q128285
(Q272029,P144,c(Q24457356))
action filter_type
action find
entity Q272029
relation P144
type Q24457356
[ANSWER] is that theatrical genre considered a copy of
['Q272029', 'P144', {'concept': 'Q24457356'}]
SELECT DISTINCT ?w WHERE { resource:Q272029 property:P144 ?w . ?w rdf:type ontology:Q24457356 }
Norse mythology
Norse mythology is that theatrical genre considered a copy of
Norse mythology
action filter_type
action find
entity Götterdämmerung
relation based on
type historiographical concept
['Götterdämmerung', 'based on', {'concept': 'historiographical concept'}]
SELECT DISTINCT ?w WHERE { resource:Götterdämmerung property:based_on ?w . ?w rdf:type ontology:historiographical_concept }
[]