Simple Question (Direct)
Simple Question
Q1578679
P39
Q12737077
USER
Which occupations were a position held by Hans Bertram ?
(Q1578679,P39,c(Q12737077))
action filter_type
action find
entity Q1578679
relation P39
type Q12737077
['Q1578679', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1578679 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Hans Bertram
action filter_type
action find
entity Hans Bertram
relation position held
type occupation
['Hans Bertram', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Bertram property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q30185 Q18557729
SYSTEM
mayor, member of the Volkskammer
Q30185 Q18557729
(Q1578679,P39,c(Q12737077))
action filter_type
action find
entity Q1578679
relation P39
type Q12737077
The [ANSWERS] were a position held by Hans Bertram
['Q1578679', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q1578679 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
mayor member of the Volkskammer
The mayor and member of the Volkskammer were a position held by Hans Bertram
mayor member of the Volkskammer
action filter_type
action find
entity Hans Bertram
relation position held
type occupation
['Hans Bertram', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Hans_Bertram property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30185
P361
Q15617994
USER
What is that occupation a part of ?
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q30185 property:P361 ?v }
mayor
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor property:part_of ?v }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q18557729
SYSTEM
Did you mean member of the Volkskammer ?
Q30185 Q18557729
(Q30185,P361,c(Q15617994)) (Q18557729,P361,c(Q15617994))
[ANSWER]
['Q30185', 'P361', {'concept': 'Q15617994'}] ['Q18557729', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q30185 property:P361 ?v }
mayor member of the Volkskammer
Did you mean member of the Volkskammer ?
member of the Volkskammer
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}] ['member of the Volkskammer', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor property:part_of ?v }
[]
Simple Question (Coreferenced)
USER
No, I meant mayor. Could you tell me the answer for that?
(Q30185,P361,c(Q15617994))
Q30185
['Q30185', 'P361', {'concept': 'Q15617994'}]
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
[]
Q15284
SYSTEM
municipality
Q15284
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
That occupation a part of is a [ANSWER]
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q30185 property:P361 ?v }
municipality
That occupation a part of is a municipality
municipality
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor property:part_of ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q15284 Q1132202
P361
Q14524493
USER
How many terrains are a component of municipality or Drygalski Mountains ?
(c(Q14524493),P361,Q15284) (c(Q14524493),P361,Q1132202)
action count
action union
action filter_type
action find_reverse
entity Q15284
relation P361
type Q14524493
action filter_type
action find_reverse
entity Q1132202
relation P361
type Q14524493
[{'concept': 'Q14524493'}, 'P361', 'Q15284'] [{'concept': 'Q14524493'}, 'P361', 'Q1132202']
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { VALUES ( ?u ) { ( resource:Q15284 ) ( resource:Q1132202 ) } . ?x property:P361 ?u }
municipality Drygalski Mountains
action count
action union
action filter_type
action find_reverse
entity municipality
relation part of
type terrain
action filter_type
action find_reverse
entity Drygalski Mountains
relation part of
type terrain
[{'concept': 'terrain'}, 'part of', 'municipality'] [{'concept': 'terrain'}, 'part of', 'Drygalski Mountains']
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { VALUES ( ?u ) { ( resource:municipality ) ( resource:Drygalski_Mountains ) } . ?x property:part_of ?u }
[]
terrain
SYSTEM
2
Q3376580 Q7567421
(c(Q14524493),P361,Q15284) (c(Q14524493),P361,Q1132202)
action count
action union
action filter_type
action find_reverse
entity Q15284
relation P361
type Q14524493
action filter_type
action find_reverse
entity Q1132202
relation P361
type Q14524493
[ANSWER]
[{'concept': 'Q14524493'}, 'P361', 'Q15284'] [{'concept': 'Q14524493'}, 'P361', 'Q1132202']
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { VALUES ( ?u ) { ( resource:Q15284 ) ( resource:Q1132202 ) } . ?x property:P361 ?u }
Ulvetanna Peak Holtanna Peak
2
action count
action union
action filter_type
action find_reverse
entity municipality
relation part of
type terrain
action filter_type
action find_reverse
entity Drygalski Mountains
relation part of
type terrain
[{'concept': 'terrain'}, 'part of', 'municipality'] [{'concept': 'terrain'}, 'part of', 'Drygalski Mountains']
SELECT DISTINCT ( COUNT ( ?x ) AS ?b ) WHERE { VALUES ( ?u ) { ( resource:municipality ) ( resource:Drygalski_Mountains ) } . ?x property:part_of ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15284
P127
Q483110
USER
Which stadium belongs to that administrative territory ?
action filter_type
action find_reverse
entity Q15284
relation P127
type Q483110
SELECT DISTINCT ?i WHERE { ?i property:P127 resource:Q15284 . ?i rdf:type ontology:Q483110 }
municipality
action filter_type
action find_reverse
entity municipality
relation owned by
type stadium
SELECT DISTINCT ?i WHERE { ?i property:owned_by resource:municipality . ?i rdf:type ontology:stadium }
[]
stadium
Q1086620
SYSTEM
Stadio Nereo Rocco
Q1086620
action filter_type
action find_reverse
entity Q15284
relation P127
type Q483110
[ANSWER] belongs to that administrative territory
SELECT DISTINCT ?i WHERE { ?i property:P127 resource:Q15284 . ?i rdf:type ontology:Q483110 }
Stadio Nereo Rocco
Stadio Nereo Rocco belongs to that administrative territory
Stadio Nereo Rocco
action filter_type
action find_reverse
entity municipality
relation owned by
type stadium
SELECT DISTINCT ?i WHERE { ?i property:owned_by resource:municipality . ?i rdf:type ontology:stadium }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P115
Q483110 Q618123
USER
How many geographical objects have approximately 1 stadium as their ground ?
(c(Q618123),P115,c(Q483110))
action count
action approx
action find_tuple_counts
relation P115
type Q618123
type Q483110
value 1
[{'concept': 'Q618123'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q483110 . ?f rdf:type ontology:Q618123 . ?f property:P115 ?u } GROUP BY ?f } . FILTER ( ?e = 1 ) }
action count
action approx
action find_tuple_counts
relation home venue
type geographical object
type stadium
value 1
[{'concept': 'geographical object'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:stadium . ?f rdf:type ontology:geographical_object . ?f property:home_venue ?u } GROUP BY ?f } . FILTER ( ?e = 1 ) }
[]
stadium geographical object
SYSTEM
19
Q492826 Q26935988 Q15755 Q161034 Q267574 Q844238 Q26936725 Q172567 Q26934244 Q1423118 Q276533 Q692586 Q41420 Q1389863 Q176795 Q7186906 Q105853 Q5014111 Q80899
(c(Q618123),P115,c(Q483110))
action count
action approx
action find_tuple_counts
relation P115
type Q618123
type Q483110
value 1
[ANSWER]
[{'concept': 'Q618123'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:Q483110 . ?f rdf:type ontology:Q618123 . ?f property:P115 ?u } GROUP BY ?f } . FILTER ( ?e = 1 ) }
MKE Ankaragücü Evagoras Gymnastic Club FC Augsburg SV Wacker Burghausen Aalborg Boldspilklub Defensor Sporting Club Praxandros Gymnastic Club Beşiktaş J.K. Zenon Gymnastic Club Göztepe S.K. Racing Club Asociación Civil VfR Aalen Borussia Dortmund FUS de Rabat Karşıyaka S.K. Phoenix Inferno Karlsruher SC CR Vasco da Gama Unión de Santa Fe
19
action count
action approx
action find_tuple_counts
relation home venue
type geographical object
type stadium
value 1
[{'concept': 'geographical object'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?e ) WHERE { ?u rdf:type ontology:stadium . ?f rdf:type ontology:geographical_object . ?f property:home_venue ?u } GROUP BY ?f } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P115
Q483110 Q12973014
USER
Which sports teams have approximately 1 stadium as their ground ?
(c(Q12973014),P115,c(Q483110))
action approx
action find_tuple_counts
relation P115
type Q12973014
type Q483110
value 1
[{'concept': 'Q12973014'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { ?w rdf:type ontology:Q12973014 . ?e rdf:type ontology:Q483110 . ?w property:P115 ?e } GROUP BY ?w } }
action approx
action find_tuple_counts
relation home venue
type sports team
type stadium
value 1
[{'concept': 'sports team'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { ?w rdf:type ontology:sports_team . ?e rdf:type ontology:stadium . ?w property:home_venue ?e } GROUP BY ?w } }
[]
stadium sports team
Q213959 Q16331496 Q461595
SYSTEM
Boston Red Sox, Elpida Astromeriti, Atlanta Braves
Q5763570 Q19870761 Q3151359 Q1251724 Q5416971 Q7016620 Q7009239 Q665920 Q461595 Q387496 Q132880 Q5407207 Q2083283 Q867828 Q324589 Q1518257 Q331650 Q154053 Q15786 Q1568246 Q4791331 Q1319827 Q1194023 Q3960035 Q17236274 Q7826440 Q7845058 Q2075122 Q213959 Q812713 Q7914130 Q7231881 Q180950 Q7578867 Q2740400 Q670376 Q650816 Q5617449 Q7534873 Q23979109 Q2825666 Q15279091 Q1788018 Q16331496 Q169941 Q650829
(c(Q12973014),P115,c(Q483110))
action approx
action find_tuple_counts
relation P115
type Q12973014
type Q483110
value 1
[ANSWERS] have approximately 1 stadium as their ground
[{'concept': 'Q12973014'}, 'P115', {'concept': 'Q483110'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { ?w rdf:type ontology:Q12973014 . ?e rdf:type ontology:Q483110 . ?w property:P115 ?e } GROUP BY ?w } }
Hillsboro Hops Jaguares Inland Empire 66ers of San Bernardino Baltimore Monumentals Everett AquaSox Newark Bears New Jersey Jackals VfB Lübeck Atlanta Braves Tigres de Quintana Roo Toronto Raptors Eugene Emeralds Colorado Springs Sky Sox Rojos del Águila de Veracruz C.A. Lanús Ospreys FBK Kaunas Eintracht Braunschweig 1. FC Nürnberg Altoona Mountain City Arizona League Angels US Dax Yokohama DeNA BayStars York Revolution Ottawa Champions Toronto Maple Leafs Trois-Rivières Aigles Lowell Spinners Boston Red Sox Al-Wehda Club Vancouver Canadians Portland Beavers Oklahoma City Thunder Spokane Indians Tucson Padres Arizona Diamondbacks Baltimore Orioles Gulf Coast League Red Sox Ski IL Atlas Aglandjias Akron RubberDucks El Paso Chihuahuas Derbyshire County Cricket Club Elpida Astromeriti Cardiff Blues Toronto Blue Jays
Boston Red Sox, Elpida Astromeriti and Atlanta Braves have approximately 1 stadium as their ground
Boston Red Sox Elpida Astromeriti Atlanta Braves
action approx
action find_tuple_counts
relation home venue
type sports team
type stadium
value 1
[{'concept': 'sports team'}, 'home venue', {'concept': 'stadium'}]
SELECT DISTINCT ?w WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?w ( COUNT ( ?e ) AS ?b ) WHERE { ?w rdf:type ontology:sports_team . ?e rdf:type ontology:stadium . ?w property:home_venue ?e } GROUP BY ?w } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213959
P17
Q15617994
USER
Which administrative territory does Boston Red Sox belong to ?
(Q213959,P17,c(Q15617994))
action filter_type
action find
entity Q213959
relation P17
type Q15617994
['Q213959', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q213959 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
Boston Red Sox
action filter_type
action find
entity Boston Red Sox
relation country
type designation for an administrative territorial entity
['Boston Red Sox', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Boston_Red_Sox property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q213959,P17,c(Q15617994))
action filter_type
action find
entity Q213959
relation P17
type Q15617994
Boston Red Sox belongs to [ANSWER]
['Q213959', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q213959 property:P17 ?w . ?w rdf:type ontology:Q15617994 }
United States of America
Boston Red Sox belongs to United States of America
United States of America
action filter_type
action find
entity Boston Red Sox
relation country
type designation for an administrative territorial entity
['Boston Red Sox', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Boston_Red_Sox property:country ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213959
P118
Q6631808
USER
Which baseball league does Boston Red Sox play in ?
(Q213959,P118,c(Q6631808))
action filter_type
action find
entity Q213959
relation P118
type Q6631808
['Q213959', 'P118', {'concept': 'Q6631808'}]
SELECT DISTINCT ?t WHERE { resource:Q213959 property:P118 ?t . ?t rdf:type ontology:Q6631808 }
Boston Red Sox
action filter_type
action find
entity Boston Red Sox
relation league
type baseball league
['Boston Red Sox', 'league', {'concept': 'baseball league'}]
SELECT DISTINCT ?t WHERE { resource:Boston_Red_Sox property:league ?t . ?t rdf:type ontology:baseball_league }
[]
baseball league
Q1163715
SYSTEM
Major League Baseball
Q1163715
(Q213959,P118,c(Q6631808))
action filter_type
action find
entity Q213959
relation P118
type Q6631808
Boston Red Sox plays in [ANSWER]
['Q213959', 'P118', {'concept': 'Q6631808'}]
SELECT DISTINCT ?t WHERE { resource:Q213959 property:P118 ?t . ?t rdf:type ontology:Q6631808 }
Major League Baseball
Boston Red Sox plays in Major League Baseball
Major League Baseball
action filter_type
action find
entity Boston Red Sox
relation league
type baseball league
['Boston Red Sox', 'league', {'concept': 'baseball league'}]
SELECT DISTINCT ?t WHERE { resource:Boston_Red_Sox property:league ?t . ?t rdf:type ontology:baseball_league }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q335169
Q6631808
USER
And what about Chicago White Sox?
(Q335169,P118,c(Q6631808))
action filter_type
action find
entity Q335169
relation P118
type Q6631808
['Q335169', 'P118', {'concept': 'Q6631808'}]
SELECT DISTINCT ?f WHERE { resource:Q335169 property:P118 ?f . ?f rdf:type ontology:Q6631808 }
Chicago White Sox
action filter_type
action find
entity Chicago White Sox
relation league
type baseball league
['Chicago White Sox', 'league', {'concept': 'baseball league'}]
SELECT DISTINCT ?f WHERE { resource:Chicago_White_Sox property:league ?f . ?f rdf:type ontology:baseball_league }
[]
baseball league
Q1163715
SYSTEM
Major League Baseball
Q1163715
(Q335169,P118,c(Q6631808))
action filter_type
action find
entity Q335169
relation P118
type Q6631808
[ANSWER]
['Q335169', 'P118', {'concept': 'Q6631808'}]
SELECT DISTINCT ?f WHERE { resource:Q335169 property:P118 ?f . ?f rdf:type ontology:Q6631808 }
Major League Baseball
Major League Baseball
action filter_type
action find
entity Chicago White Sox
relation league
type baseball league
['Chicago White Sox', 'league', {'concept': 'baseball league'}]
SELECT DISTINCT ?f WHERE { resource:Chicago_White_Sox property:league ?f . ?f rdf:type ontology:baseball_league }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P84
Q4830453 Q502895 Q483110
USER
Which stadia were max number of business enterprises or people the designer of ?
(c(Q483110),P84,c(Q4830453)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P84
type Q483110
type Q4830453
action find_tuple_counts
relation P84
type Q483110
type Q502895
[{'concept': 'Q483110'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?u = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?u ) WHERE { { ?t rdf:type ontology:Q483110 . ?f rdf:type ontology:Q4830453 . ?t property:P84 ?f } UNION { ?t property:P84 ?f . ?t rdf:type ontology:Q483110 . ?f rdf:type ontology:Q502895 } } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?g rdf:type ?w } GROUP BY ?q } } }
action argmax
action union
action find_tuple_counts
relation architect
type stadium
type business enterprise
action find_tuple_counts
relation architect
type stadium
type common name
[{'concept': 'stadium'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?u = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?u ) WHERE { { ?t rdf:type ontology:stadium . ?f rdf:type ontology:business_enterprise . ?t property:architect ?f } UNION { ?t property:architect ?f . ?t rdf:type ontology:stadium . ?f rdf:type ontology:common_name } } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?g rdf:type ?w } GROUP BY ?q } } }
[]
business enterprise common name stadium
Q62149
SYSTEM
Juventus Stadium
Q62149
(c(Q483110),P84,c(Q4830453)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P84
type Q483110
type Q4830453
action find_tuple_counts
relation P84
type Q483110
type Q502895
[ANSWER] was max number of business enterprises or people the designer of
[{'concept': 'Q483110'}, 'P84', [{'concept': 'Q4830453'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?u = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?u ) WHERE { { ?t rdf:type ontology:Q483110 . ?f rdf:type ontology:Q4830453 . ?t property:P84 ?f } UNION { ?t property:P84 ?f . ?t rdf:type ontology:Q483110 . ?f rdf:type ontology:Q502895 } } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q4830453 ) ( ontology:Q502895 ) } . ?g rdf:type ?w } GROUP BY ?q } } }
Juventus Stadium
Juventus Stadium was max number of business enterprises or people the designer of
Juventus Stadium
action argmax
action union
action find_tuple_counts
relation architect
type stadium
type business enterprise
action find_tuple_counts
relation architect
type stadium
type common name
[{'concept': 'stadium'}, 'architect', [{'concept': 'business enterprise'}, {'concept': 'common name'}]]
SELECT DISTINCT ?t WHERE { FILTER ( ?u = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?u ) WHERE { { ?t rdf:type ontology:stadium . ?f rdf:type ontology:business_enterprise . ?t property:architect ?f } UNION { ?t property:architect ?f . ?t rdf:type ontology:stadium . ?f rdf:type ontology:common_name } } GROUP BY ?t } . { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?q ( COUNT ( ?g ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:business_enterprise ) ( ontology:common_name ) } . ?g rdf:type ?w } GROUP BY ?q } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P800
Q502895
USER
How many people have that stadium as their notable work ?
(c(Q502895),P800,Q62149)
action count
action filter_type
action find_reverse
entity Q62149
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q62149']
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P800 resource:Q62149 . ?l rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Juventus Stadium
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Juventus Stadium']
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:notable_work resource:Juventus_Stadium . ?l rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q27686975 Q316565
(c(Q502895),P800,Q62149)
action count
action filter_type
action find_reverse
entity Q62149
relation P800
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q62149']
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:P800 resource:Q62149 . ?l rdf:type ontology:Q502895 }
Alberto Rolla Giorgetto Giugiaro
2
action count
action filter_type
action find_reverse
entity Juventus Stadium
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Juventus Stadium']
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { ?l property:notable_work resource:Juventus_Stadium . ?l rdf:type ontology:common_name }
[]