Simple Question (Direct)
Simple Question
Q822751
P641
Q349
USER
Which sport was Marvin Bakalorz a part of ?
(Q822751,P641,c(Q349))
action filter_type
action find
entity Q822751
relation P641
type Q349
['Q822751', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q822751 property:P641 ?q . ?q rdf:type ontology:Q349 }
Marvin Bakalorz
action filter_type
action find
entity Marvin Bakalorz
relation sport
type sport
['Marvin Bakalorz', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Marvin_Bakalorz property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q822751,P641,c(Q349))
action filter_type
action find
entity Q822751
relation P641
type Q349
The [ANSWER] was Marvin Bakalorz a part of
['Q822751', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q822751 property:P641 ?q . ?q rdf:type ontology:Q349 }
association football
The association football was Marvin Bakalorz a part of
association football
action filter_type
action find
entity Marvin Bakalorz
relation sport
type sport
['Marvin Bakalorz', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Marvin_Bakalorz property:sport ?q . ?q rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q822751
P19
Q515
USER
Which city is the birthplace of that person ?
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q822751
relation P19
type Q515
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q515 . resource:Q822751 property:P19 ?r }
Marvin Bakalorz
action filter_type
action find
entity Marvin Bakalorz
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:city . resource:Marvin_Bakalorz property:place_of_birth ?r }
[]
city
Q3042
SYSTEM
Offenbach am Main
Q3042
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q822751
relation P19
type Q515
[ANSWER] is the birthplace of that person
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q515 . resource:Q822751 property:P19 ?r }
Offenbach am Main
Offenbach am Main is the birthplace of that person
Offenbach am Main
action filter_type
action find
entity Marvin Bakalorz
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:city . resource:Marvin_Bakalorz property:place_of_birth ?r }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3042 Q476829 Q66314
P190
Q13220204
USER
Is Offenbach am Main twin town of Tha Khantho and Schupfart ?
(Q3042,P190,Q476829) (Q3042,P190,Q66314)
action is_in
entity Q3042
action intersection
action find_reverse
entity Q476829
relation P190
action find_reverse
entity Q66314
relation P190
['Q3042', 'P190', 'Q476829'] ['Q3042', 'P190', 'Q66314']
ASK WHERE { resource:Q3042 property:P190 resource:Q476829 . resource:Q3042 property:P190 resource:Q66314 }
Offenbach am Main Tha Khantho Schupfart
action is_in
entity Offenbach am Main
action intersection
action find_reverse
entity Tha Khantho
relation sister city
action find_reverse
entity Schupfart
relation sister city
['Offenbach am Main', 'sister city', 'Tha Khantho'] ['Offenbach am Main', 'sister city', 'Schupfart']
ASK WHERE { resource:Offenbach_am_Main property:sister_city resource:Tha_Khantho . resource:Offenbach_am_Main property:sister_city resource:Schupfart }
[]
second-level administrative country subdivision
SYSTEM
NO
(Q3042,P190,Q476829) (Q3042,P190,Q66314)
action is_in
entity Q3042
action intersection
action find_reverse
entity Q476829
relation P190
action find_reverse
entity Q66314
relation P190
[ANSWER]
['Q3042', 'P190', 'Q476829'] ['Q3042', 'P190', 'Q66314']
ASK WHERE { resource:Q3042 property:P190 resource:Q476829 . resource:Q3042 property:P190 resource:Q66314 }
No
action is_in
entity Offenbach am Main
action intersection
action find_reverse
entity Tha Khantho
relation sister city
action find_reverse
entity Schupfart
relation sister city
['Offenbach am Main', 'sister city', 'Tha Khantho'] ['Offenbach am Main', 'sister city', 'Schupfart']
ASK WHERE { resource:Offenbach_am_Main property:sister_city resource:Tha_Khantho . resource:Offenbach_am_Main property:sister_city resource:Schupfart }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3042
P937
Q502895
USER
Who have Offenbach am Main as their work location ?
(c(Q502895),P937,Q3042)
action filter_type
action find_reverse
entity Q3042
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q3042']
SELECT DISTINCT ?p WHERE { ?p property:P937 resource:Q3042 . ?p rdf:type ontology:Q502895 }
Offenbach am Main
action filter_type
action find_reverse
entity Offenbach am Main
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Offenbach am Main']
SELECT DISTINCT ?p WHERE { ?p property:work_location resource:Offenbach_am_Main . ?p rdf:type ontology:common_name }
[]
common name
Q161048 Q1874828 Q1475774
SYSTEM
Alois Senefelder, Ludwig Neundörfer, Wilhelm Heraeus
Q13424257 Q1503525 Q1929678 Q1372464 Q18684237 Q108979 Q19287717 Q1580774 Q1912591 Q1459628 Q2034663 Q214837 Q1874828 Q1475774 Q1897379 Q1761263 Q161048 Q78266 Q1352855
(c(Q502895),P937,Q3042)
action filter_type
action find_reverse
entity Q3042
relation P937
type Q502895
[ANSWERS] have Offenbach am Main as their work location
[{'concept': 'Q502895'}, 'P937', 'Q3042']
SELECT DISTINCT ?p WHERE { ?p property:P937 resource:Q3042 . ?p rdf:type ontology:Q502895 }
Lucie Jacobi Georg A. Mathey Michael Wagener Eugen Eckert Anke Kuhl Siegfried Guggenheim Karl Wilhelm Becker Hans Klüber Max Granzin Friedrich Heinrichsen Ossi Urchs Friedrich Albrecht Carl Gren Ludwig Neundörfer Wilhelm Heraeus Marie Hübner Sandra Mann Alois Senefelder Burghart Schmidt Erich Meyer
Alois Senefelder, Ludwig Neundörfer and Wilhelm Heraeus have Offenbach am Main as their work location
Alois Senefelder Ludwig Neundörfer Wilhelm Heraeus
action filter_type
action find_reverse
entity Offenbach am Main
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Offenbach am Main']
SELECT DISTINCT ?p WHERE { ?p property:work_location resource:Offenbach_am_Main . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3042
P47
Q515
USER
Which city is bordered by Offenbach am Main ?
(c(Q515),P47,Q3042)
action filter_type
action find
entity Q3042
relation P47
type Q515
[{'concept': 'Q515'}, 'P47', 'Q3042']
SELECT DISTINCT ?p WHERE { resource:Q3042 property:P47 ?p . ?p rdf:type ontology:Q515 }
Offenbach am Main
action filter_type
action find
entity Offenbach am Main
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Offenbach am Main']
SELECT DISTINCT ?p WHERE { resource:Offenbach_am_Main property:shares_border_with ?p . ?p rdf:type ontology:city }
[]
city
Q1794
SYSTEM
Frankfurt
Q1794
(c(Q515),P47,Q3042)
action filter_type
action find
entity Q3042
relation P47
type Q515
[ANSWER] is bordered by Offenbach am Main
[{'concept': 'Q515'}, 'P47', 'Q3042']
SELECT DISTINCT ?p WHERE { resource:Q3042 property:P47 ?p . ?p rdf:type ontology:Q515 }
Frankfurt
Frankfurt is bordered by Offenbach am Main
Frankfurt
action filter_type
action find
entity Offenbach am Main
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Offenbach am Main']
SELECT DISTINCT ?p WHERE { resource:Offenbach_am_Main property:shares_border_with ?p . ?p rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3042
P36
Q1048835
USER
Which political territory consists of Offenbach am Main as its capital ?
(c(Q1048835),P36,Q3042)
action filter_type
action find_reverse
entity Q3042
relation P36
type Q1048835
[{'concept': 'Q1048835'}, 'P36', 'Q3042']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q3042 . ?k rdf:type ontology:Q1048835 }
Offenbach am Main
action filter_type
action find_reverse
entity Offenbach am Main
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Offenbach am Main']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Offenbach_am_Main . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q7912
SYSTEM
Offenbach
Q7912
(c(Q1048835),P36,Q3042)
action filter_type
action find_reverse
entity Q3042
relation P36
type Q1048835
Of [ANSWER] consists of [ANSWER] am Main as its capital
[{'concept': 'Q1048835'}, 'P36', 'Q3042']
SELECT DISTINCT ?k WHERE { ?k property:P36 resource:Q3042 . ?k rdf:type ontology:Q1048835 }
Offenbach
Of Offenbach consists of Offenbach am Main as its capital
Offenbach
action filter_type
action find_reverse
entity Offenbach am Main
relation capital
type political territorial entity
[{'concept': 'political territorial entity'}, 'capital', 'Offenbach am Main']
SELECT DISTINCT ?k WHERE { ?k property:capital resource:Offenbach_am_Main . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7912
P17
Q1048835
USER
Which political territory is that one present in ?
(Q7912,P17,c(Q1048835))
action filter_type
action find
entity Q7912
relation P17
type Q1048835
['Q7912', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q7912 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Offenbach
action filter_type
action find
entity Offenbach
relation country
type political territorial entity
['Offenbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Offenbach property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q7912,P17,c(Q1048835))
action filter_type
action find
entity Q7912
relation P17
type Q1048835
Which political territory is that one present in
['Q7912', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q7912 property:P17 ?l . ?l rdf:type ontology:Q1048835 }
Germany
Which political territory is that one present in
Germany
action filter_type
action find
entity Offenbach
relation country
type political territorial entity
['Offenbach', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Offenbach property:country ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q7912
P47
Q515 Q1048835
USER
How many cities and political territories have an adjacent border with Offenbach ?
(c(Q515),P47,Q7912) (c(Q1048835),P47,Q7912)
action count
action union
action filter_type
action find_reverse
entity Q7912
relation P47
type Q515
action filter_type
action find_reverse
entity Q7912
relation P47
type Q1048835
[{'concept': 'Q515'}, 'P47', 'Q7912'] [{'concept': 'Q1048835'}, 'P47', 'Q7912']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:P47 resource:Q7912 . ?b rdf:type ontology:Q515 } UNION { ?b property:P47 resource:Q7912 . ?b rdf:type ontology:Q1048835 } }
Offenbach
action count
action union
action filter_type
action find_reverse
entity Offenbach
relation shares border with
type city
action filter_type
action find_reverse
entity Offenbach
relation shares border with
type political territorial entity
[{'concept': 'city'}, 'shares border with', 'Offenbach'] [{'concept': 'political territorial entity'}, 'shares border with', 'Offenbach']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:shares_border_with resource:Offenbach . ?b rdf:type ontology:city } UNION { ?b property:shares_border_with resource:Offenbach . ?b rdf:type ontology:political_territorial_entity } }
[]
city political territorial entity
SYSTEM
3 cities and 4 political territories
Q7914 Q10471 Q1794 Q7916 Q3042 Q2973 Q7911
(c(Q515),P47,Q7912) (c(Q1048835),P47,Q7912)
action count
action union
action filter_type
action find_reverse
entity Q7912
relation P47
type Q515
action filter_type
action find_reverse
entity Q7912
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P47', 'Q7912'] [{'concept': 'Q1048835'}, 'P47', 'Q7912']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:P47 resource:Q7912 . ?b rdf:type ontology:Q515 } UNION { ?b property:P47 resource:Q7912 . ?b rdf:type ontology:Q1048835 } }
Groß-Gerau Aschaffenburg Frankfurt Darmstadt-Dieburg Offenbach am Main Darmstadt Main-Kinzig-Kreis
3 cities and 4 political territories
action count
action union
action filter_type
action find_reverse
entity Offenbach
relation shares border with
type city
action filter_type
action find_reverse
entity Offenbach
relation shares border with
type political territorial entity
[{'concept': 'city'}, 'shares border with', 'Offenbach'] [{'concept': 'political territorial entity'}, 'shares border with', 'Offenbach']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { { ?b property:shares_border_with resource:Offenbach . ?b rdf:type ontology:city } UNION { ?b property:shares_border_with resource:Offenbach . ?b rdf:type ontology:political_territorial_entity } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2736 Q188669
P180
Q3305213
USER
How many paintings demonstrate association football or fireplace ?
(c(Q3305213),P180,Q2736) (c(Q3305213),P180,Q188669)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q188669
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q2736'] [{'concept': 'Q3305213'}, 'P180', 'Q188669']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?t ) { ( resource:Q188669 ) ( resource:Q2736 ) } . ?y property:P180 ?t }
association football fireplace
action count
action union
action filter_type
action find_reverse
entity association football
relation depicts
type painting
action filter_type
action find_reverse
entity fireplace
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'association football'] [{'concept': 'painting'}, 'depicts', 'fireplace']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?t ) { ( resource:fireplace ) ( resource:association_football ) } . ?y property:depicts ?t }
[]
painting
SYSTEM
2
Q5856992 Q16941150
(c(Q3305213),P180,Q2736) (c(Q3305213),P180,Q188669)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P180
type Q3305213
action filter_type
action find_reverse
entity Q188669
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q2736'] [{'concept': 'Q3305213'}, 'P180', 'Q188669']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?t ) { ( resource:Q188669 ) ( resource:Q2736 ) } . ?y property:P180 ?t }
February January
2
action count
action union
action filter_type
action find_reverse
entity association football
relation depicts
type painting
action filter_type
action find_reverse
entity fireplace
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'association football'] [{'concept': 'painting'}, 'depicts', 'fireplace']
SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { VALUES ( ?t ) { ( resource:fireplace ) ( resource:association_football ) } . ?y property:depicts ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2736
P466
Q811979 Q483110
USER
How many architectural structures and stadia are occupied by association football ?
(c(Q811979),P466,Q2736) (c(Q483110),P466,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P466
type Q811979
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
[{'concept': 'Q811979'}, 'P466', 'Q2736'] [{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:P466 resource:Q2736 . ?r rdf:type ontology:Q811979 } UNION { ?r property:P466 resource:Q2736 . ?r rdf:type ontology:Q483110 } }
association football
action count
action union
action filter_type
action find_reverse
entity association football
relation occupant
type architectural structure
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'architectural structure'}, 'occupant', 'association football'] [{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:occupant resource:association_football . ?r rdf:type ontology:architectural_structure } UNION { ?r property:occupant resource:association_football . ?r rdf:type ontology:stadium } }
[]
architectural structure stadium
SYSTEM
1 architectural structures and 1 stadia
Q7971000 Q5402116
(c(Q811979),P466,Q2736) (c(Q483110),P466,Q2736)
action count
action union
action filter_type
action find_reverse
entity Q2736
relation P466
type Q811979
action filter_type
action find_reverse
entity Q2736
relation P466
type Q483110
[ANSWER]
[{'concept': 'Q811979'}, 'P466', 'Q2736'] [{'concept': 'Q483110'}, 'P466', 'Q2736']
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:P466 resource:Q2736 . ?r rdf:type ontology:Q811979 } UNION { ?r property:P466 resource:Q2736 . ?r rdf:type ontology:Q483110 } }
Warta Stadion Estádio Municipal Radialista Mário Helênio
1 architectural structures and 1 stadia
action count
action union
action filter_type
action find_reverse
entity association football
relation occupant
type architectural structure
action filter_type
action find_reverse
entity association football
relation occupant
type stadium
[{'concept': 'architectural structure'}, 'occupant', 'association football'] [{'concept': 'stadium'}, 'occupant', 'association football']
SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:occupant resource:association_football . ?r rdf:type ontology:architectural_structure } UNION { ?r property:occupant resource:association_football . ?r rdf:type ontology:stadium } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P35
Q502895 Q35798 Q7275
USER
Which people are the heads of state of max number of executive branches and states ?
(c(Q35798)|c(Q7275),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:P35 ?z . ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } UNION { ?u property:P35 ?z . ?u rdf:type ontology:Q7275 . ?z rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } GROUP BY ?n } } }
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:head_of_state ?z . ?z rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } UNION { ?u property:head_of_state ?z . ?u rdf:type ontology:state . ?z rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:state ) ( ontology:executive_branch ) } } GROUP BY ?n } } }
[]
common name executive branch state
Q150642
SYSTEM
Vittorio Emanuele III
Q150642
(c(Q35798)|c(Q7275),P35,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
[ANSWER] is the heads of state of max number of executive branches and states
[[{'concept': 'Q35798'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:P35 ?z . ?z rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } UNION { ?u property:P35 ?z . ?u rdf:type ontology:Q7275 . ?z rdf:type ontology:Q502895 } } GROUP BY ?z } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } GROUP BY ?n } } }
Vittorio Emanuele III
Vittorio Emanuele III is the heads of state of max number of executive branches and states
Vittorio Emanuele III
action argmax
action union
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
action find_reverse_tuple_counts
relation head of state
type common name
type state
[[{'concept': 'executive branch'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:head_of_state ?z . ?z rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } UNION { ?u property:head_of_state ?z . ?u rdf:type ontology:state . ?z rdf:type ontology:common_name } } GROUP BY ?z } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( MAX ( ?p ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?x ) AS ?p ) WHERE { ?x rdf:type ?a . VALUES ( ?a ) { ( ontology:state ) ( ontology:executive_branch ) } } GROUP BY ?n } } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q150642 Q81682 Q561291
P27
Q15617994
USER
Is Vittorio Emanuele III a native of Loßburg and Rodder ?
(Q150642,P27,Q81682) (Q150642,P27,Q561291)
action is_in
entity Q150642
action intersection
action find_reverse
entity Q81682
relation P27
action find_reverse
entity Q561291
relation P27
['Q150642', 'P27', 'Q81682'] ['Q150642', 'P27', 'Q561291']
ASK WHERE { resource:Q150642 property:P27 resource:Q81682 . resource:Q150642 property:P27 resource:Q561291 }
Vittorio Emanuele III Loßburg Rodder
action is_in
entity Vittorio Emanuele III
action intersection
action find_reverse
entity Loßburg
relation country of citizenship
action find_reverse
entity Rodder
relation country of citizenship
['Vittorio Emanuele III', 'country of citizenship', 'Loßburg'] ['Vittorio Emanuele III', 'country of citizenship', 'Rodder']
ASK WHERE { resource:Vittorio_Emanuele_III property:country_of_citizenship resource:Loßburg . resource:Vittorio_Emanuele_III property:country_of_citizenship resource:Rodder }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q150642,P27,Q81682) (Q150642,P27,Q561291)
action is_in
entity Q150642
action intersection
action find_reverse
entity Q81682
relation P27
action find_reverse
entity Q561291
relation P27
[ANSWER]
['Q150642', 'P27', 'Q81682'] ['Q150642', 'P27', 'Q561291']
ASK WHERE { resource:Q150642 property:P27 resource:Q81682 . resource:Q150642 property:P27 resource:Q561291 }
No
action is_in
entity Vittorio Emanuele III
action intersection
action find_reverse
entity Loßburg
relation country of citizenship
action find_reverse
entity Rodder
relation country of citizenship
['Vittorio Emanuele III', 'country of citizenship', 'Loßburg'] ['Vittorio Emanuele III', 'country of citizenship', 'Rodder']
ASK WHERE { resource:Vittorio_Emanuele_III property:country_of_citizenship resource:Loßburg . resource:Vittorio_Emanuele_III property:country_of_citizenship resource:Rodder }
[]
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 approximately 2746 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2746
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 2746 ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:P1303 ?d . ?p rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34379 } GROUP BY ?d } }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2746
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 2746 ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:instrument ?d . ?p rdf:type ontology:common_name . ?d rdf:type ontology:musical_instrument } GROUP BY ?d } }
[]
musical instrument common name
SYSTEM
4
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2746
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 2746 ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:P1303 ?d . ?p rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34379 } GROUP BY ?d } }
bass guitar trumpet organ drum kit
4
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2746
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { FILTER ( ?j = 2746 ) . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:instrument ?d . ?p rdf:type ontology:common_name . ?d rdf:type ontology:musical_instrument } GROUP BY ?d } }
[]