Simple Question (Direct)
Simple Question
Q18832
P26
Q502895
USER
Which person is the spouse of Sławomir Mrożek ?
(Q18832,P26,c(Q502895))
action filter_type
action find
entity Q18832
relation P26
type Q502895
['Q18832', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q18832 property:P26 ?f }
Sławomir Mrożek
action filter_type
action find
entity Sławomir Mrożek
relation spouse
type common name
['Sławomir Mrożek', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Sławomir_Mrożek property:spouse ?f }
[]
common name
Q27477884
SYSTEM
Maria Obremba
Q27477884
(Q18832,P26,c(Q502895))
action filter_type
action find
entity Q18832
relation P26
type Q502895
[ANSWER] is the spouse of Sławomir Mrożek
['Q18832', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . resource:Q18832 property:P26 ?f }
Maria Obremba
Maria Obremba is the spouse of Sławomir Mrożek
Maria Obremba
action filter_type
action find
entity Sławomir Mrożek
relation spouse
type common name
['Sławomir Mrożek', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . resource:Sławomir_Mrożek property:spouse ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18832
P50
Q838948
USER
Which work of art has Sławomir Mrożek as its author ?
(c(Q838948),P50,Q18832)
action filter_type
action find_reverse
entity Q18832
relation P50
type Q838948
[{'concept': 'Q838948'}, 'P50', 'Q18832']
SELECT DISTINCT ?u WHERE { ?u property:P50 resource:Q18832 . ?u rdf:type ontology:Q838948 }
Sławomir Mrożek
action filter_type
action find_reverse
entity Sławomir Mrożek
relation author
type work of art
[{'concept': 'work of art'}, 'author', 'Sławomir Mrożek']
SELECT DISTINCT ?u WHERE { ?u property:author resource:Sławomir_Mrożek . ?u rdf:type ontology:work_of_art }
[]
work of art
Q9355482
SYSTEM
Tango
Q9355482
(c(Q838948),P50,Q18832)
action filter_type
action find_reverse
entity Q18832
relation P50
type Q838948
[ANSWER] has Sławomir Mrożek as its author
[{'concept': 'Q838948'}, 'P50', 'Q18832']
SELECT DISTINCT ?u WHERE { ?u property:P50 resource:Q18832 . ?u rdf:type ontology:Q838948 }
Tango
Tango has Sławomir Mrożek as its author
Tango
action filter_type
action find_reverse
entity Sławomir Mrożek
relation author
type work of art
[{'concept': 'work of art'}, 'author', 'Sławomir Mrożek']
SELECT DISTINCT ?u WHERE { ?u property:author resource:Sławomir_Mrożek . ?u rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18832
P937
Q486972
USER
Which is the work location of Sławomir Mrożek ?
(Q18832,P937,c(Q486972))
action filter_type
action find
entity Q18832
relation P937
type Q486972
['Q18832', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q18832 property:P937 ?z . ?z rdf:type ontology:Q486972 }
Sławomir Mrożek
action filter_type
action find
entity Sławomir Mrożek
relation work location
type human settlement
['Sławomir Mrożek', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Sławomir_Mrożek property:work_location ?z . ?z rdf:type ontology:human_settlement }
[]
human settlement
Q31487
SYSTEM
Kraków
Q31487
(Q18832,P937,c(Q486972))
action filter_type
action find
entity Q18832
relation P937
type Q486972
[ANSWER] is the work location of Sławomir Mrożek
['Q18832', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?z WHERE { resource:Q18832 property:P937 ?z . ?z rdf:type ontology:Q486972 }
Kraków
Kraków is the work location of Sławomir Mrożek
Kraków
action filter_type
action find
entity Sławomir Mrożek
relation work location
type human settlement
['Sławomir Mrożek', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?z WHERE { resource:Sławomir_Mrożek property:work_location ?z . ?z rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15439245
Q486972
USER
And how about Cornelia Franz?
(Q15439245,P937,c(Q486972))
action filter_type
action find
entity Q15439245
relation P937
type Q486972
['Q15439245', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q15439245 property:P937 ?u . ?u rdf:type ontology:Q486972 }
Cornelia Franz
action filter_type
action find
entity Cornelia Franz
relation work location
type human settlement
['Cornelia Franz', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Cornelia_Franz property:work_location ?u . ?u rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q15439245,P937,c(Q486972))
action filter_type
action find
entity Q15439245
relation P937
type Q486972
[ANSWER]
['Q15439245', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q15439245 property:P937 ?u . ?u rdf:type ontology:Q486972 }
Hamburg
Hamburg
action filter_type
action find
entity Cornelia Franz
relation work location
type human settlement
['Cornelia Franz', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Cornelia_Franz property:work_location ?u . ?u rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P6
Q502895
USER
How many people are the heads of the government of that human settlement ?
(Q1055,P6,c(Q502895))
action count
action filter_type
action find
entity Q1055
relation P6
type Q502895
['Q1055', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q1055 property:P6 ?r . ?r rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Hamburg
relation head of government
type common name
['Hamburg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Hamburg property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
SYSTEM
14
Q63421 Q84380 Q60426 Q447940 Q71371 Q62673 Q77390 Q85910 Q61053 Q68114 Q87670 Q74266 Q70051 Q85791
(Q1055,P6,c(Q502895))
action count
action filter_type
action find
entity Q1055
relation P6
type Q502895
[ANSWER]
['Q1055', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Q1055 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Max Brauer Kurt Sieveking Ole von Beust Hans-Ulrich Klose Henning Voscherau Klaus von Dohnanyi Christoph Ahlhaus Paul Nevermann Olaf Scholz Herbert Weichmann Rudolf Petersen Carl Vincent Krogmann Ortwin Runde Peter Schulz
14
action count
action filter_type
action find
entity Hamburg
relation head of government
type common name
['Hamburg', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { resource:Hamburg property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1055
P740
Q2088357
USER
What are the musical ensembles that were formed at Hamburg ?
(c(Q2088357),P740,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q1055']
SELECT DISTINCT ?y WHERE { ?y property:P740 resource:Q1055 . ?y rdf:type ontology:Q2088357 }
Hamburg
action filter_type
action find_reverse
entity Hamburg
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Hamburg']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation resource:Hamburg . ?y rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q557247 Q1313330 Q19833921
SYSTEM
Slapp Happy, Eisenvater, 187 Strassenbande
Q687309 Q4656532 Q15833701 Q896748 Q557247 Q1313330 Q1459415 Q1269022 Q673735 Q15860393 Q15794671 Q322529 Q238583 Q19833921 Q179898 Q692631
(c(Q2088357),P740,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P740
type Q2088357
The musical ensembles that were formed at Hamburg are the [ANSWERS]
[{'concept': 'Q2088357'}, 'P740', 'Q1055']
SELECT DISTINCT ?y WHERE { ?y property:P740 resource:Q1055 . ?y rdf:type ontology:Q2088357 }
The Underdog Project A Dog Called Ego Mantar The Rattles Slapp Happy Eisenvater JaKönigJa Dynamite Deluxe Les Humphries Singers Trailer Park Sex Collapse Under the Empire Frumpy Slime 187 Strassenbande Masterplan Revolverheld
The musical ensembles that were formed at Hamburg are the Slapp Happy, Eisenvater and 187 Strassenbande
Slapp Happy Eisenvater 187 Strassenbande
action filter_type
action find_reverse
entity Hamburg
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Hamburg']
SELECT DISTINCT ?y WHERE { ?y property:location_of_formation resource:Hamburg . ?y rdf:type ontology:musical_ensemble }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1055
P138
Q151885
USER
Which concepts are named after Hamburg ?
(c(Q151885),P138,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P138
type Q151885
[{'concept': 'Q151885'}, 'P138', 'Q1055']
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q1055 . ?t rdf:type ontology:Q151885 }
Hamburg
action filter_type
action find_reverse
entity Hamburg
relation named after
type concept
[{'concept': 'concept'}, 'named after', 'Hamburg']
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:Hamburg . ?t rdf:type ontology:concept }
[]
concept
Q896513 Q502702
SYSTEM
Hamburger Schule, Hamburg culture
Q896513 Q502702
(c(Q151885),P138,Q1055)
action filter_type
action find_reverse
entity Q1055
relation P138
type Q151885
In [ANSWERS] are named after Hamburg
[{'concept': 'Q151885'}, 'P138', 'Q1055']
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q1055 . ?t rdf:type ontology:Q151885 }
Hamburger Schule Hamburg culture
In Hamburger Schule and Hamburg culture are named after Hamburg
Hamburger Schule Hamburg culture
action filter_type
action find_reverse
entity Hamburg
relation named after
type concept
[{'concept': 'concept'}, 'named after', 'Hamburg']
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:Hamburg . ?t rdf:type ontology:concept }
[]
Clarification
Simple Question|Single Entity|Indirect
Q502702
P61
Q502895
USER
Which person was the first person to come up with that concept ?
(Q502702,P61,c(Q502895))
action filter_type
action find
entity Q502702
relation P61
type Q502895
['Q502702', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q502702 property:P61 ?w . ?w rdf:type ontology:Q502895 }
Hamburg culture
action filter_type
action find
entity Hamburg culture
relation discoverer or inventor
type common name
['Hamburg culture', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hamburg_culture property:discoverer_or_inventor ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q896513
SYSTEM
Did you mean Hamburger Schule ?
Q896513 Q502702
(Q896513,P61,c(Q502895)) (Q502702,P61,c(Q502895))
[ANSWER]
['Q896513', 'P61', {'concept': 'Q502895'}] ['Q502702', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q502702 property:P61 ?w . ?w rdf:type ontology:Q502895 }
Hamburger Schule Hamburg culture
Did you mean Hamburger Schule ?
Hamburger Schule
['Hamburger Schule', 'discoverer or inventor', {'concept': 'common name'}] ['Hamburg culture', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hamburg_culture property:discoverer_or_inventor ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Hamburg culture. Could you tell me the answer for that?
(Q502702,P61,c(Q502895))
Q502702
['Q502702', 'P61', {'concept': 'Q502895'}]
['Hamburg culture', 'discoverer or inventor', {'concept': 'common name'}]
[]
Q78016
SYSTEM
Martin Heinrich Gustav Schwantes
Q78016
(Q502702,P61,c(Q502895))
action filter_type
action find
entity Q502702
relation P61
type Q502895
[ANSWER] was the first person to come up with that concept
['Q502702', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q502702 property:P61 ?w . ?w rdf:type ontology:Q502895 }
Martin Heinrich Gustav Schwantes
Martin Heinrich Gustav Schwantes was the first person to come up with that concept
Martin Heinrich Gustav Schwantes
action filter_type
action find
entity Hamburg culture
relation discoverer or inventor
type common name
['Hamburg culture', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Hamburg_culture property:discoverer_or_inventor ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1811538 Q15439245
P19 P20
Q486972
USER
Which human settlements were Cornelia Franz born at or did the expiration of Ödön Téry occur ?
OR((Q15439245,P19,c(Q486972)), (Q1811538,P20,c(Q486972)))
action filter_type
action union
action find
entity Q15439245
relation P19
action find
entity Q1811538
relation P20
type Q486972
{'OR': [['Q15439245', 'P19', {'concept': 'Q486972'}], ['Q1811538', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q15439245 property:P19 ?x } UNION { resource:Q1811538 property:P20 ?x } } . ?x rdf:type ontology:Q486972 }
Ödön Téry Cornelia Franz
action filter_type
action union
action find
entity Cornelia Franz
relation place of birth
action find
entity Ödön Téry
relation place of death
type human settlement
{'OR': [['Cornelia Franz', 'place of birth', {'concept': 'human settlement'}], ['Ödön Téry', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Cornelia_Franz property:place_of_birth ?x } UNION { resource:Ödön_Téry property:place_of_death ?x } } . ?x rdf:type ontology:human_settlement }
[]
human settlement
Q1055 Q2717546
SYSTEM
Hamburg, Belvedere
Q1055 Q2717546
OR((Q15439245,P19,c(Q486972)), (Q1811538,P20,c(Q486972)))
action filter_type
action union
action find
entity Q15439245
relation P19
action find
entity Q1811538
relation P20
type Q486972
Cornelia Franz were born at occur in [ANSWERS]
{'OR': [['Q15439245', 'P19', {'concept': 'Q486972'}], ['Q1811538', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q15439245 property:P19 ?x } UNION { resource:Q1811538 property:P20 ?x } } . ?x rdf:type ontology:Q486972 }
Hamburg Belvedere
Cornelia Franz were born at occur in Hamburg and Belvedere
Hamburg Belvedere
action filter_type
action union
action find
entity Cornelia Franz
relation place of birth
action find
entity Ödön Téry
relation place of death
type human settlement
{'OR': [['Cornelia Franz', 'place of birth', {'concept': 'human settlement'}], ['Ödön Téry', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Cornelia_Franz property:place_of_birth ?x } UNION { resource:Ödön_Téry property:place_of_death ?x } } . ?x rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P136
Q151885 Q502895 Q838948
USER
Which concepts are the genre of exactly 35 people or works of art ?
(c(Q502895)|c(Q838948),P136,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q502895
action find_reverse_tuple_counts
relation P136
type Q151885
type Q838948
value 35
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?y ) WHERE { VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q838948 ) } . ?v rdf:type ?i } GROUP BY ?h } . FILTER ( ?y = 35 ) }
action equal
action union
action find_reverse_tuple_counts
relation genre
type concept
type common name
action find_reverse_tuple_counts
relation genre
type concept
type work of art
value 35
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?y ) WHERE { VALUES ( ?i ) { ( ontology:common_name ) ( ontology:work_of_art ) } . ?v rdf:type ?i } GROUP BY ?h } . FILTER ( ?y = 35 ) }
[]
concept common name work of art
Q217467 Q378988 Q876171
SYSTEM
art rock, adult contemporary music, East Coast hip hop
Q217467 Q378988 Q876171
(c(Q502895)|c(Q838948),P136,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P136
type Q151885
type Q502895
action find_reverse_tuple_counts
relation P136
type Q151885
type Q838948
value 35
[ANSWERS] are the genre of exactly 35 people or works of art
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?y ) WHERE { VALUES ( ?i ) { ( ontology:Q502895 ) ( ontology:Q838948 ) } . ?v rdf:type ?i } GROUP BY ?h } . FILTER ( ?y = 35 ) }
art rock adult contemporary music East Coast hip hop
Art rock, adult contemporary music and East Coast hip hop are the genre of exactly 35 people or works of art
art rock adult contemporary music East Coast hip hop
action equal
action union
action find_reverse_tuple_counts
relation genre
type concept
type common name
action find_reverse_tuple_counts
relation genre
type concept
type work of art
value 35
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?v ) AS ?y ) WHERE { VALUES ( ?i ) { ( ontology:common_name ) ( ontology:work_of_art ) } . ?v rdf:type ?i } GROUP BY ?h } . FILTER ( ?y = 35 ) }
[]