Simple Question (Direct)
Simple Question
Q2562440
P20
Q56061
USER
Where did Werner Schendell die ?
(Q2562440,P20,c(Q56061))
action filter_type
action find
entity Q2562440
relation P20
type Q56061
['Q2562440', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q2562440 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Werner Schendell
action filter_type
action find
entity Werner Schendell
relation place of death
type administrative territorial entity
['Werner Schendell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Werner_Schendell property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q2562440,P20,c(Q56061))
action filter_type
action find
entity Q2562440
relation P20
type Q56061
Werner Schendell died in [ANSWER]
['Q2562440', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q2562440 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Berlin
Werner Schendell died in Berlin
Berlin
action filter_type
action find
entity Werner Schendell
relation place of death
type administrative territorial entity
['Werner Schendell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Werner_Schendell property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P127
Q2668072
USER
Which collection belongs to that administrative territory ?
(c(Q2668072),P127,Q64)
action filter_type
action find_reverse
entity Q64
relation P127
type Q2668072
[{'concept': 'Q2668072'}, 'P127', 'Q64']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q64 . ?g rdf:type ontology:Q2668072 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation owned by
type collection
[{'concept': 'collection'}, 'owned by', 'Berlin']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Berlin . ?g rdf:type ontology:collection }
[]
collection
Q568767
SYSTEM
Bröhan Museum
Q568767
(c(Q2668072),P127,Q64)
action filter_type
action find_reverse
entity Q64
relation P127
type Q2668072
[ANSWER] belongs to that administrative territory
[{'concept': 'Q2668072'}, 'P127', 'Q64']
SELECT DISTINCT ?g WHERE { ?g property:P127 resource:Q64 . ?g rdf:type ontology:Q2668072 }
Bröhan Museum
Bröhan Museum belongs to that administrative territory
Bröhan Museum
action filter_type
action find_reverse
entity Berlin
relation owned by
type collection
[{'concept': 'collection'}, 'owned by', 'Berlin']
SELECT DISTINCT ?g WHERE { ?g property:owned_by resource:Berlin . ?g rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q568767
P366
Q41176
USER
Which building is recognized as the main use of that collection ?
(Q568767,P366,c(Q41176))
action filter_type
action find
entity Q568767
relation P366
type Q41176
['Q568767', 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ?k WHERE { resource:Q568767 property:P366 ?k . ?k rdf:type ontology:Q41176 }
Bröhan Museum
action filter_type
action find
entity Bröhan Museum
relation use
type building
['Bröhan Museum', 'use', {'concept': 'building'}]
SELECT DISTINCT ?k WHERE { resource:Bröhan_Museum property:use ?k . ?k rdf:type ontology:building }
[]
building
Q131263
SYSTEM
barracks
Q131263
(Q568767,P366,c(Q41176))
action filter_type
action find
entity Q568767
relation P366
type Q41176
Collection [ANSWER] is recognized as the main use of that collection
['Q568767', 'P366', {'concept': 'Q41176'}]
SELECT DISTINCT ?k WHERE { resource:Q568767 property:P366 ?k . ?k rdf:type ontology:Q41176 }
barracks
Collection barracks is recognized as the main use of that collection
barracks
action filter_type
action find
entity Bröhan Museum
relation use
type building
['Bröhan Museum', 'use', {'concept': 'building'}]
SELECT DISTINCT ?k WHERE { resource:Bröhan_Museum property:use ?k . ?k rdf:type ontology:building }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q670933 Q64
P710 P6
Q502895
USER
Which people do Berlin serve as the head of government for and were participants of German presidential election, 2012 ?
AND((Q64,P6,c(Q502895)), (Q670933,P710,c(Q502895)))
action filter_type
action intersection
action find
entity Q64
relation P6
action find
entity Q670933
relation P710
type Q502895
{'AND': [['Q64', 'P6', {'concept': 'Q502895'}], ['Q670933', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { resource:Q64 property:P6 ?d . resource:Q670933 property:P710 ?d . ?d rdf:type ontology:Q502895 }
German presidential election, 2012 Berlin
action filter_type
action intersection
action find
entity Berlin
relation head of government
action find
entity German presidential election, 2012
relation participant
type common name
{'AND': [['Berlin', 'head of government', {'concept': 'common name'}], ['German presidential election, 2012', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { resource:Berlin property:head_of_government ?d . resource:German_presidential_election,_2012 property:participant ?d . ?d rdf:type ontology:common_name }
[]
common name
Q8863 Q552483 Q102844
SYSTEM
Klaus Wowereit, Hans-Jochen Vogel, Michael Müller
Q8863 Q552483 Q102844
AND((Q64,P6,c(Q502895)), (Q670933,P710,c(Q502895)))
action filter_type
action intersection
action find
entity Q64
relation P6
action find
entity Q670933
relation P710
type Q502895
Berlin serve and were participants of German presidential election , 2012 with [ANSWERS] as the head of government for
{'AND': [['Q64', 'P6', {'concept': 'Q502895'}], ['Q670933', 'P710', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { resource:Q64 property:P6 ?d . resource:Q670933 property:P710 ?d . ?d rdf:type ontology:Q502895 }
Klaus Wowereit Hans-Jochen Vogel Michael Müller
Berlin serve and were participants of German presidential election , 2012 with Klaus Wowereit, Hans-Jochen Vogel and Michael Müller as the head of government for
Klaus Wowereit Hans-Jochen Vogel Michael Müller
action filter_type
action intersection
action find
entity Berlin
relation head of government
action find
entity German presidential election, 2012
relation participant
type common name
{'AND': [['Berlin', 'head of government', {'concept': 'common name'}], ['German presidential election, 2012', 'participant', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { resource:Berlin property:head_of_government ?d . resource:German_presidential_election,_2012 property:participant ?d . ?d rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q64
P6
Q56061
USER
Are those people the head of the goverment of Berlin ?
(Q64,P6,Q8863) (Q64,P6,Q552483) (Q64,P6,Q102844)
action is_in
entity prev_answer
action find
entity Q64
relation P6
['Q64', 'P6', 'Q8863'] ['Q64', 'P6', 'Q552483'] ['Q64', 'P6', 'Q102844']
ASK WHERE { resource:Q64 property:P6 ?j . VALUES ( ?j ) { ( resource:Q8863 ) ( resource:Q552483 ) ( resource:Q102844 ) } }
Berlin
action is_in
entity prev_answer
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Klaus Wowereit'] ['Berlin', 'head of government', 'Hans-Jochen Vogel'] ['Berlin', 'head of government', 'Michael Müller']
ASK WHERE { resource:Berlin property:head_of_government ?j . VALUES ( ?j ) { ( resource:Klaus_Wowereit ) ( resource:Hans-Jochen_Vogel ) ( resource:Michael_Müller ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q64,P6,Q8863) (Q64,P6,Q552483) (Q64,P6,Q102844)
action is_in
entity prev_answer
action find
entity Q64
relation P6
[ANSWER]
['Q64', 'P6', 'Q8863'] ['Q64', 'P6', 'Q552483'] ['Q64', 'P6', 'Q102844']
ASK WHERE { resource:Q64 property:P6 ?j . VALUES ( ?j ) { ( resource:Q8863 ) ( resource:Q552483 ) ( resource:Q102844 ) } }
Yes
action is_in
entity prev_answer
action find
entity Berlin
relation head of government
['Berlin', 'head of government', 'Klaus Wowereit'] ['Berlin', 'head of government', 'Hans-Jochen Vogel'] ['Berlin', 'head of government', 'Michael Müller']
ASK WHERE { resource:Berlin property:head_of_government ?j . VALUES ( ?j ) { ( resource:Klaus_Wowereit ) ( resource:Hans-Jochen_Vogel ) ( resource:Michael_Müller ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q8863 Q690370
P463
Q43229
USER
Was Klaus Wowereit a member of Young Socialists in the SPD ?
(Q8863,P463,Q690370)
action is_in
entity Q690370
action find
entity Q8863
relation P463
['Q8863', 'P463', 'Q690370']
ASK WHERE { resource:Q8863 property:P463 resource:Q690370 }
Klaus Wowereit Young Socialists in the SPD
action is_in
entity Young Socialists in the SPD
action find
entity Klaus Wowereit
relation member of
['Klaus Wowereit', 'member of', 'Young Socialists in the SPD']
ASK WHERE { resource:Klaus_Wowereit property:member_of resource:Young_Socialists_in_the_SPD }
[]
organization
SYSTEM
YES
(Q8863,P463,Q690370)
action is_in
entity Q690370
action find
entity Q8863
relation P463
[ANSWER]
['Q8863', 'P463', 'Q690370']
ASK WHERE { resource:Q8863 property:P463 resource:Q690370 }
Yes
action is_in
entity Young Socialists in the SPD
action find
entity Klaus Wowereit
relation member of
['Klaus Wowereit', 'member of', 'Young Socialists in the SPD']
ASK WHERE { resource:Klaus_Wowereit property:member_of resource:Young_Socialists_in_the_SPD }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2562440 Q5820045 Q3891413
P19
Q56061
USER
Does Werner Schendell have birthplace at Qomsheh-ye Seyyed Yaqub and Presaca ?
(Q2562440,P19,Q5820045) (Q2562440,P19,Q3891413)
action is_in
entity Q2562440
action intersection
action find_reverse
entity Q5820045
relation P19
action find_reverse
entity Q3891413
relation P19
['Q2562440', 'P19', 'Q5820045'] ['Q2562440', 'P19', 'Q3891413']
ASK WHERE { resource:Q2562440 property:P19 resource:Q5820045 . resource:Q2562440 property:P19 resource:Q3891413 }
Werner Schendell Qomsheh-ye Seyyed Yaqub Presaca
action is_in
entity Werner Schendell
action intersection
action find_reverse
entity Qomsheh-ye Seyyed Yaqub
relation place of birth
action find_reverse
entity Presaca
relation place of birth
['Werner Schendell', 'place of birth', 'Qomsheh-ye Seyyed Yaqub'] ['Werner Schendell', 'place of birth', 'Presaca']
ASK WHERE { resource:Werner_Schendell property:place_of_birth resource:Qomsheh-ye_Seyyed_Yaqub . resource:Werner_Schendell property:place_of_birth resource:Presaca }
[]
administrative territorial entity
SYSTEM
NO
(Q2562440,P19,Q5820045) (Q2562440,P19,Q3891413)
action is_in
entity Q2562440
action intersection
action find_reverse
entity Q5820045
relation P19
action find_reverse
entity Q3891413
relation P19
[ANSWER]
['Q2562440', 'P19', 'Q5820045'] ['Q2562440', 'P19', 'Q3891413']
ASK WHERE { resource:Q2562440 property:P19 resource:Q5820045 . resource:Q2562440 property:P19 resource:Q3891413 }
No
action is_in
entity Werner Schendell
action intersection
action find_reverse
entity Qomsheh-ye Seyyed Yaqub
relation place of birth
action find_reverse
entity Presaca
relation place of birth
['Werner Schendell', 'place of birth', 'Qomsheh-ye Seyyed Yaqub'] ['Werner Schendell', 'place of birth', 'Presaca']
ASK WHERE { resource:Werner_Schendell property:place_of_birth resource:Qomsheh-ye_Seyyed_Yaqub . resource:Werner_Schendell property:place_of_birth resource:Presaca }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q552483
P488
Q7278
USER
Which political party is Hans-Jochen Vogel a chairperson of ?
(c(Q7278),P488,Q552483)
action filter_type
action find_reverse
entity Q552483
relation P488
type Q7278
[{'concept': 'Q7278'}, 'P488', 'Q552483']
SELECT DISTINCT ?e WHERE { ?e property:P488 resource:Q552483 . ?e rdf:type ontology:Q7278 }
Hans-Jochen Vogel
action filter_type
action find_reverse
entity Hans-Jochen Vogel
relation chairperson
type political party
[{'concept': 'political party'}, 'chairperson', 'Hans-Jochen Vogel']
SELECT DISTINCT ?e WHERE { ?e property:chairperson resource:Hans-Jochen_Vogel . ?e rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(c(Q7278),P488,Q552483)
action filter_type
action find_reverse
entity Q552483
relation P488
type Q7278
Party [ANSWER] is Hans-Jochen Vogel a chairperson of
[{'concept': 'Q7278'}, 'P488', 'Q552483']
SELECT DISTINCT ?e WHERE { ?e property:P488 resource:Q552483 . ?e rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Hans-Jochen Vogel a chairperson of
Social Democratic Party of Germany
action filter_type
action find_reverse
entity Hans-Jochen Vogel
relation chairperson
type political party
[{'concept': 'political party'}, 'chairperson', 'Hans-Jochen Vogel']
SELECT DISTINCT ?e WHERE { ?e property:chairperson resource:Hans-Jochen_Vogel . ?e rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q552483
P39
Q12737077
USER
Which occupations were the positions occupied by that person ?
(Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q552483
relation P39
type Q12737077
['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q552483 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Hans-Jochen Vogel
action filter_type
action find
entity Hans-Jochen Vogel
relation position held
type occupation
['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Hans-Jochen_Vogel property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q30185 Q1939555 Q18327335
SYSTEM
mayor, member of the German Bundestag, Member of the Abgeordnetenhaus of Berlin
Q30185 Q1939555 Q18327335
(Q49768,P39,c(Q12737077))
action filter_type
action find
entity Q552483
relation P39
type Q12737077
[ANSWERS] were the positions occupied by that person
['Q49768', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q552483 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
mayor member of the German Bundestag Member of the Abgeordnetenhaus of Berlin
Mayor, member of the German Bundestag and Member of the Abgeordnetenhaus of Berlin were the positions occupied by that person
mayor member of the German Bundestag Member of the Abgeordnetenhaus of Berlin
action filter_type
action find
entity Hans-Jochen Vogel
relation position held
type occupation
['Social Democratic Party of Germany', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Hans-Jochen_Vogel property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3624957
P39
Q502895
USER
Were Ash Stymest responsible for occupying the position of those occupations ?
(Q3624957,P39,Q30185) (Q3624957,P39,Q1939555) (Q3624957,P39,Q18327335)
action is_in
entity prev_answer
action find
entity Q3624957
relation P39
['Q3624957', 'P39', 'Q30185'] ['Q3624957', 'P39', 'Q1939555'] ['Q3624957', 'P39', 'Q18327335']
ASK WHERE { resource:Q3624957 property:P39 ?v . VALUES ( ?v ) { ( resource:Q30185 ) ( resource:Q1939555 ) ( resource:Q18327335 ) } }
Ash Stymest
action is_in
entity prev_answer
action find
entity Ash Stymest
relation position held
['Ash Stymest', 'position held', 'mayor'] ['Ash Stymest', 'position held', 'member of the German Bundestag'] ['Ash Stymest', 'position held', 'Member of the Abgeordnetenhaus of Berlin']
ASK WHERE { resource:Ash_Stymest property:position_held ?v . VALUES ( ?v ) { ( resource:mayor ) ( resource:member_of_the_German_Bundestag ) ( resource:Member_of_the_Abgeordnetenhaus_of_Berlin ) } }
[]
common name
SYSTEM
NO
(Q3624957,P39,Q30185) (Q3624957,P39,Q1939555) (Q3624957,P39,Q18327335)
action is_in
entity prev_answer
action find
entity Q3624957
relation P39
[ANSWER]
['Q3624957', 'P39', 'Q30185'] ['Q3624957', 'P39', 'Q1939555'] ['Q3624957', 'P39', 'Q18327335']
ASK WHERE { resource:Q3624957 property:P39 ?v . VALUES ( ?v ) { ( resource:Q30185 ) ( resource:Q1939555 ) ( resource:Q18327335 ) } }
No
action is_in
entity prev_answer
action find
entity Ash Stymest
relation position held
['Ash Stymest', 'position held', 'mayor'] ['Ash Stymest', 'position held', 'member of the German Bundestag'] ['Ash Stymest', 'position held', 'Member of the Abgeordnetenhaus of Berlin']
ASK WHERE { resource:Ash_Stymest property:position_held ?v . VALUES ( ?v ) { ( resource:mayor ) ( resource:member_of_the_German_Bundestag ) ( resource:Member_of_the_Abgeordnetenhaus_of_Berlin ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q164294
P417
Q502895 Q12737077
USER
Which people are the patron saint of more number of occupations than Saint Anna ?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q164294
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q164294 property:P417 ?a } } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:P417 ?x . ?x rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?x } }
Saint Anna
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Anna
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:common_name . resource:Saint_Anna property:patron_saint ?a } } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:patron_saint ?x . ?x rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?x } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q164294
relation P417
type Q502895
[ANSWERS] are the patron saint of more number of occupations than Saint Anna
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:Q502895 . resource:Q164294 property:P417 ?a } } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:P417 ?x . ?x rdf:type ontology:Q502895 . ?s rdf:type ontology:Q12737077 } GROUP BY ?x } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas, Albertus Magnus and Isidore of Seville are the patron saint of more number of occupations than Saint Anna
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Saint Anna
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ontology:common_name . resource:Saint_Anna property:patron_saint ?a } } . FILTER ( ?b > ?l ) . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:patron_saint ?x . ?x rdf:type ontology:common_name . ?s rdf:type ontology:occupation } GROUP BY ?x } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2005417
P417
Q502895 Q12737077
USER
And what about Privat de Mende?
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q2005417
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q2005417 property:P417 ?g } } . FILTER ( ?s > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?s ) WHERE { ?u rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?u } GROUP BY ?u } }
Privat de Mende
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Privat de Mende
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:common_name . resource:Privat_de_Mende property:patron_saint ?g } } . FILTER ( ?s > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?s ) WHERE { ?u rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?u } GROUP BY ?u } }
[]
common name occupation
Q9438 Q60059 Q166876
SYSTEM
Thomas Aquinas, Albertus Magnus, Isidore of Seville
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q2005417
relation P417
type Q502895
[ANSWERS]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:Q502895 . resource:Q2005417 property:P417 ?g } } . FILTER ( ?s > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?s ) WHERE { ?u rdf:type ontology:Q502895 . ?a rdf:type ontology:Q12737077 . ?a property:P417 ?u } GROUP BY ?u } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
Thomas Aquinas Albertus Magnus Isidore of Seville
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Privat de Mende
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?k ) WHERE { ?g rdf:type ontology:common_name . resource:Privat_de_Mende property:patron_saint ?g } } . FILTER ( ?s > ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?s ) WHERE { ?u rdf:type ontology:common_name . ?a rdf:type ontology:occupation . ?a property:patron_saint ?u } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atleast 1676 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1676
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?q >= 1676 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1676
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?q >= 1676 ) }
[]
musical instrument common name
SYSTEM
4
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1676
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?n } . FILTER ( ?q >= 1676 ) }
piano violin organ drum kit
4
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1676
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?q ) WHERE { ?k property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?n } . FILTER ( ?q >= 1676 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can atmost 2760 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2760
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?u <= 2760 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2760
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?u <= 2760 ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2760
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?p } . FILTER ( ?u <= 2760 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2760
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?p } . FILTER ( ?u <= 2760 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1113959 Q568767
P127 P20
Q56061
USER
Which administrative territories are the owners of Bröhan Museum or did József Klobusiczky expire ?
OR((Q568767,P127,c(Q56061)), (Q1113959,P20,c(Q56061)))
action filter_type
action union
action find
entity Q568767
relation P127
action find
entity Q1113959
relation P20
type Q56061
{'OR': [['Q568767', 'P127', {'concept': 'Q56061'}], ['Q1113959', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q568767 property:P127 ?m } UNION { resource:Q1113959 property:P20 ?m } } . ?m rdf:type ontology:Q56061 }
József Klobusiczky Bröhan Museum
action filter_type
action union
action find
entity Bröhan Museum
relation owned by
action find
entity József Klobusiczky
relation place of death
type administrative territorial entity
{'OR': [['Bröhan Museum', 'owned by', {'concept': 'administrative territorial entity'}], ['József Klobusiczky', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Bröhan_Museum property:owned_by ?m } UNION { resource:József_Klobusiczky property:place_of_death ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q1780
SYSTEM
Berlin, Bratislava
Q64 Q1780
OR((Q568767,P127,c(Q56061)), (Q1113959,P20,c(Q56061)))
action filter_type
action union
action find
entity Q568767
relation P127
action find
entity Q1113959
relation P20
type Q56061
[ANSWERS] are the owners of Bröhan Museum or did József Klobusiczky expire
{'OR': [['Q568767', 'P127', {'concept': 'Q56061'}], ['Q1113959', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q568767 property:P127 ?m } UNION { resource:Q1113959 property:P20 ?m } } . ?m rdf:type ontology:Q56061 }
Berlin Bratislava
Berlin and Bratislava are the owners of Bröhan Museum or did József Klobusiczky expire
Berlin Bratislava
action filter_type
action union
action find
entity Bröhan Museum
relation owned by
action find
entity József Klobusiczky
relation place of death
type administrative territorial entity
{'OR': [['Bröhan Museum', 'owned by', {'concept': 'administrative territorial entity'}], ['József Klobusiczky', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Bröhan_Museum property:owned_by ?m } UNION { resource:József_Klobusiczky property:place_of_death ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]