Simple Question (Direct)
Simple Question
Q4910062
P54
Q12973014
USER
Which sports teams are Bill McAfee a member of ?
(Q4910062,P54,c(Q12973014))
action filter_type
action find
entity Q4910062
relation P54
type Q12973014
['Q4910062', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q4910062 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
Bill McAfee
action filter_type
action find
entity Bill McAfee
relation member of sports team
type sports team
['Bill McAfee', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Bill_McAfee property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
sports team
Q1966948 Q246782 Q3446304
SYSTEM
Rochester Red Wings, Chicago Cubs, Montreal Royals
Q1966948 Q246782 Q3446304
(Q4910062,P54,c(Q12973014))
action filter_type
action find
entity Q4910062
relation P54
type Q12973014
The [ANSWERS] are Bill McAfee a member of
['Q4910062', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?b WHERE { resource:Q4910062 property:P54 ?b . ?b rdf:type ontology:Q12973014 }
Rochester Red Wings Chicago Cubs Montreal Royals
The Rochester Red Wings, Chicago Cubs and Montreal Royals are Bill McAfee a member of
Rochester Red Wings Chicago Cubs Montreal Royals
action filter_type
action find
entity Bill McAfee
relation member of sports team
type sports team
['Bill McAfee', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?b WHERE { resource:Bill_McAfee property:member_of_sports_team ?b . ?b rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3446304
P466
Q811979
USER
What is occupied by that sports team ?
(c(Q811979),P466,Q3446304)
action filter_type
action find_reverse
entity Q3446304
relation P466
type Q811979
[{'concept': 'Q811979'}, 'P466', 'Q3446304']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q3446304 . ?n rdf:type ontology:Q811979 }
Montreal Royals
action filter_type
action find_reverse
entity Montreal Royals
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'Montreal Royals']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Montreal_Royals . ?n rdf:type ontology:architectural_structure }
[]
architectural structure
Clarification for simple ques.
Q1966948
SYSTEM
Did you mean Rochester Red Wings ?
Q1966948 Q246782 Q3446304
(c(Q811979),P466,Q1966948) (c(Q811979),P466,Q246782) (c(Q811979),P466,Q3446304)
[ANSWER]
[{'concept': 'Q811979'}, 'P466', 'Q1966948'] [{'concept': 'Q811979'}, 'P466', 'Q246782'] [{'concept': 'Q811979'}, 'P466', 'Q3446304']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q3446304 . ?n rdf:type ontology:Q811979 }
Rochester Red Wings Chicago Cubs Montreal Royals
Did you mean Rochester Red Wings ?
Rochester Red Wings
[{'concept': 'architectural structure'}, 'occupant', 'Rochester Red Wings'] [{'concept': 'architectural structure'}, 'occupant', 'Chicago Cubs'] [{'concept': 'architectural structure'}, 'occupant', 'Montreal Royals']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Montreal_Royals . ?n rdf:type ontology:architectural_structure }
[]
Simple Question (Coreferenced)
USER
No, I meant Montreal Royals. Could you tell me the answer for that?
(c(Q811979),P466,Q3446304)
Q3446304
[{'concept': 'Q811979'}, 'P466', 'Q3446304']
[{'concept': 'architectural structure'}, 'occupant', 'Montreal Royals']
[]
Q935412
SYSTEM
Delorimier Stadium
Q935412
(c(Q811979),P466,Q3446304)
action filter_type
action find_reverse
entity Q3446304
relation P466
type Q811979
[ANSWER] is occupied by that sports team
[{'concept': 'Q811979'}, 'P466', 'Q3446304']
SELECT DISTINCT ?n WHERE { ?n property:P466 resource:Q3446304 . ?n rdf:type ontology:Q811979 }
Delorimier Stadium
Delorimier Stadium is occupied by that sports team
Delorimier Stadium
action filter_type
action find_reverse
entity Montreal Royals
relation occupant
type architectural structure
[{'concept': 'architectural structure'}, 'occupant', 'Montreal Royals']
SELECT DISTINCT ?n WHERE { ?n property:occupant resource:Montreal_Royals . ?n rdf:type ontology:architectural_structure }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q935412 Q16
P17
Q1048835
USER
Does that architectural structure belong to Canada ?
(Q935412,P17,Q16)
action is_in
entity Q16
action find
entity Q935412
relation P17
['Q935412', 'P17', 'Q16']
ASK WHERE { resource:Q935412 property:P17 resource:Q16 }
Delorimier Stadium Canada
action is_in
entity Canada
action find
entity Delorimier Stadium
relation country
['Delorimier Stadium', 'country', 'Canada']
ASK WHERE { resource:Delorimier_Stadium property:country resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q935412,P17,Q16)
action is_in
entity Q16
action find
entity Q935412
relation P17
[ANSWER]
['Q935412', 'P17', 'Q16']
ASK WHERE { resource:Q935412 property:P17 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Delorimier Stadium
relation country
['Delorimier Stadium', 'country', 'Canada']
ASK WHERE { resource:Delorimier_Stadium property:country resource:Canada }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q561723 Q935412
P17
Q1048835
USER
Which political territories are Delorimier Stadium or Neuerkirch situated in ?
OR((Q935412,P17,c(Q1048835)), (Q561723,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q935412
relation P17
action find
entity Q561723
relation P17
type Q1048835
{'OR': [['Q935412', 'P17', {'concept': 'Q1048835'}], ['Q561723', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q935412 property:P17 ?g } UNION { resource:Q561723 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Neuerkirch Delorimier Stadium
action filter_type
action union
action find
entity Delorimier Stadium
relation country
action find
entity Neuerkirch
relation country
type political territorial entity
{'OR': [['Delorimier Stadium', 'country', {'concept': 'political territorial entity'}], ['Neuerkirch', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Delorimier_Stadium property:country ?g } UNION { resource:Neuerkirch property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q935412,P17,c(Q1048835)), (Q561723,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q935412
relation P17
action find
entity Q561723
relation P17
type Q1048835
Delorimier Stadium or Neuerkirch are situated in [ANSWERS]
{'OR': [['Q935412', 'P17', {'concept': 'Q1048835'}], ['Q561723', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q935412 property:P17 ?g } UNION { resource:Q561723 property:P17 ?g } } . ?g rdf:type ontology:Q1048835 }
Canada Germany
Delorimier Stadium or Neuerkirch are situated in Canada and Germany
Canada Germany
action filter_type
action union
action find
entity Delorimier Stadium
relation country
action find
entity Neuerkirch
relation country
type political territorial entity
{'OR': [['Delorimier Stadium', 'country', {'concept': 'political territorial entity'}], ['Neuerkirch', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Delorimier_Stadium property:country ?g } UNION { resource:Neuerkirch property:country ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q561723
P47
Q15617994
USER
Which administrative territories are next to the border of that one ?
(c(Q15617994),P47,Q16) (c(Q15617994),P47,Q183)
action filter_type
action find_reverse
entity Q561723
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q16'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P47 resource:Q561723 . ?i rdf:type ontology:Q15617994 }
Neuerkirch
action filter_type
action find_reverse
entity Neuerkirch
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Canada'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:shares_border_with resource:Neuerkirch . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q643389 Q438341
SYSTEM
Külz, Alterkülz
Q643389 Q438341
(c(Q15617994),P47,Q16) (c(Q15617994),P47,Q183)
action filter_type
action find_reverse
entity Q561723
relation P47
type Q15617994
[ANSWERS] are next to the border of that one
[{'concept': 'Q15617994'}, 'P47', 'Q16'] [{'concept': 'Q15617994'}, 'P47', 'Q183']
SELECT DISTINCT ?i WHERE { ?i property:P47 resource:Q561723 . ?i rdf:type ontology:Q15617994 }
Külz Alterkülz
Külz and Alterkülz are next to the border of that one
Külz Alterkülz
action filter_type
action find_reverse
entity Neuerkirch
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Canada'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Germany']
SELECT DISTINCT ?i WHERE { ?i property:shares_border_with resource:Neuerkirch . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q561723
P20
Q502895
USER
Who died in Neuerkirch ?
(c(Q502895),P20,Q561723)
action filter_type
action find_reverse
entity Q561723
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q561723']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P20 resource:Q561723 }
Neuerkirch
action filter_type
action find_reverse
entity Neuerkirch
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Neuerkirch']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:place_of_death resource:Neuerkirch }
[]
common name
Q1694923
SYSTEM
Johann Jakob Röhrig
Q1694923
(c(Q502895),P20,Q561723)
action filter_type
action find_reverse
entity Q561723
relation P20
type Q502895
[ANSWER] died in Neuerkirch
[{'concept': 'Q502895'}, 'P20', 'Q561723']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . ?y property:P20 resource:Q561723 }
Johann Jakob Röhrig
Johann Jakob Röhrig died in Neuerkirch
Johann Jakob Röhrig
action filter_type
action find_reverse
entity Neuerkirch
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Neuerkirch']
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . ?y property:place_of_death resource:Neuerkirch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1694923
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q1694923,P27,c(Q1048835))
action filter_type
action find
entity Q1694923
relation P27
type Q1048835
['Q1694923', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1694923 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Johann Jakob Röhrig
action filter_type
action find
entity Johann Jakob Röhrig
relation country of citizenship
type political territorial entity
['Johann Jakob Röhrig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Johann_Jakob_Röhrig property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1694923,P27,c(Q1048835))
action filter_type
action find
entity Q1694923
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q1694923', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q1694923 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Germany
Germany is that person an inhabitant of
Germany
action filter_type
action find
entity Johann Jakob Röhrig
relation country of citizenship
type political territorial entity
['Johann Jakob Röhrig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Johann_Jakob_Röhrig property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q715764 Q1694923
P19 P17
Q15617994
USER
Which administrative territories were Johann Jakob Röhrig born or are Riwon County located in ?
OR((Q1694923,P19,c(Q15617994)), (Q715764,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1694923
relation P19
action find
entity Q715764
relation P17
type Q15617994
{'OR': [['Q1694923', 'P19', {'concept': 'Q15617994'}], ['Q715764', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1694923 property:P19 ?e } UNION { resource:Q715764 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Riwon County Johann Jakob Röhrig
action filter_type
action union
action find
entity Johann Jakob Röhrig
relation place of birth
action find
entity Riwon County
relation country
type designation for an administrative territorial entity
{'OR': [['Johann Jakob Röhrig', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Riwon County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Johann_Jakob_Röhrig property:place_of_birth ?e } UNION { resource:Riwon_County property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q561723 Q423
SYSTEM
Neuerkirch, North Korea
Q561723 Q423
OR((Q1694923,P19,c(Q15617994)), (Q715764,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1694923
relation P19
action find
entity Q715764
relation P17
type Q15617994
Johann Jakob Röhrig were born located in the [ANSWERS]
{'OR': [['Q1694923', 'P19', {'concept': 'Q15617994'}], ['Q715764', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1694923 property:P19 ?e } UNION { resource:Q715764 property:P17 ?e } } . ?e rdf:type ontology:Q15617994 }
Neuerkirch North Korea
Johann Jakob Röhrig were born located in the Neuerkirch and North Korea
Neuerkirch North Korea
action filter_type
action union
action find
entity Johann Jakob Röhrig
relation place of birth
action find
entity Riwon County
relation country
type designation for an administrative territorial entity
{'OR': [['Johann Jakob Röhrig', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Riwon County', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Johann_Jakob_Röhrig property:place_of_birth ?e } UNION { resource:Riwon_County property:country ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q423
P36
Q56061
USER
Which administrative territory is known as the capital of that administrative territory ?
(Q423,P36,c(Q56061))
action filter_type
action find
entity Q423
relation P36
type Q56061
['Q423', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q423 property:P36 ?g }
North Korea
action filter_type
action find
entity North Korea
relation capital
type administrative territorial entity
['North Korea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:North_Korea property:capital ?g }
[]
administrative territorial entity
Clarification for simple ques.
Q423
SYSTEM
Did you mean North Korea ?
Q561723 Q423
(Q561723,P36,c(Q56061)) (Q423,P36,c(Q56061))
[ANSWER]
['Q561723', 'P36', {'concept': 'Q56061'}] ['Q423', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q423 property:P36 ?g }
Neuerkirch North Korea
Did you mean North Korea ?
North Korea
['Neuerkirch', 'capital', {'concept': 'administrative territorial entity'}] ['North Korea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:North_Korea property:capital ?g }
[]
Simple Question (Coreferenced)
USER
Yes
(Q423,P36,c(Q56061))
['Q423', 'P36', {'concept': 'Q56061'}]
['North Korea', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q18808
SYSTEM
Pyongyang
Q18808
(Q423,P36,c(Q56061))
action filter_type
action find
entity Q423
relation P36
type Q56061
[ANSWER] is known as the capital of that administrative territory
['Q423', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q423 property:P36 ?g }
Pyongyang
Pyongyang is known as the capital of that administrative territory
Pyongyang
action filter_type
action find
entity North Korea
relation capital
type administrative territorial entity
['North Korea', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:North_Korea property:capital ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q3844332
P115
Q1076486 Q811979 Q12973014
USER
Which sports teams have greater number of sports venues and architectural structures as their home venue than Daiei Unions ?
(c(Q12973014),P115,c(Q1076486)|c(Q811979))
action greater
action union
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action count
action filter_multi_types
action find
entity Q3844332
relation P115
type Q1076486
type Q811979
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) ?v WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q3844332 property:P115 ?l . { { ?l rdf:type ontology:Q811979 } UNION { ?l rdf:type ontology:Q1076486 } } } } . FILTER ( ?q > ?k ) }
Daiei Unions
action greater
action union
action find_tuple_counts
relation home venue
type sports team
type sports venue
action find_tuple_counts
relation home venue
type sports team
type architectural structure
action count
action filter_multi_types
action find
entity Daiei Unions
relation home venue
type sports venue
type architectural structure
[{'concept': 'sports team'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) ?v WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Daiei_Unions property:home_venue ?l . { { ?l rdf:type ontology:architectural_structure } UNION { ?l rdf:type ontology:sports_venue } } } } . FILTER ( ?q > ?k ) }
[]
sports venue architectural structure sports team
Q461595 Q650816 Q166105
SYSTEM
Atlanta Braves, Baltimore Orioles, Sacramento Kings
Q166105 Q247577 Q1328038 Q796358 Q193643 Q604879 Q1375077 Q129164 Q461595 Q484151 Q974277 Q1148233 Q325819 Q1194023 Q194116 Q161345 Q3259700 Q1069384 Q653772 Q205973 Q209961 Q650816 Q5461416 Q538747 Q2825666 Q1727656
(c(Q12973014),P115,c(Q1076486)|c(Q811979))
action greater
action union
action find_tuple_counts
relation P115
type Q12973014
type Q1076486
action find_tuple_counts
relation P115
type Q12973014
type Q811979
action count
action filter_multi_types
action find
entity Q3844332
relation P115
type Q1076486
type Q811979
[ANSWERS] have greater number of sports venues and architectural structures as their home venue than Daiei Unions
[{'concept': 'Q12973014'}, 'P115', [{'concept': 'Q1076486'}, {'concept': 'Q811979'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) ?v WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Q3844332 property:P115 ?l . { { ?l rdf:type ontology:Q811979 } UNION { ?l rdf:type ontology:Q1076486 } } } } . FILTER ( ?q > ?k ) }
Sacramento Kings Hiroshima Toyo Carp Orix Buffaloes Chicago Sky Pittsburgh Penguins Minnesota Twins Tohoku Rakuten Golden Eagles Fukuoka SoftBank Hawks Atlanta Braves Chiba Lotte Marines Hokkaido Nippon-Ham Fighters Montreal Expos Saitama Seibu Lions Yokohama DeNA BayStars Detroit Red Wings Houston Rockets Los Angeles Angels Osaka Kintetsu Buffaloes Pittsburgh Pirates Edmonton Oilers Chunichi Dragons Baltimore Orioles Florida Gators track and field Scarlets Akron RubberDucks New York Golden Blades
Atlanta Braves, Baltimore Orioles and Sacramento Kings have greater number of sports venues and architectural structures as their home venue than Daiei Unions
Atlanta Braves Baltimore Orioles Sacramento Kings
action greater
action union
action find_tuple_counts
relation home venue
type sports team
type sports venue
action find_tuple_counts
relation home venue
type sports team
type architectural structure
action count
action filter_multi_types
action find
entity Daiei Unions
relation home venue
type sports venue
type architectural structure
[{'concept': 'sports team'}, 'home venue', [{'concept': 'sports venue'}, {'concept': 'architectural structure'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) ?v WHERE { ?o rdf:type ?m . VALUES ( ?m ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { resource:Daiei_Unions property:home_venue ?l . { { ?l rdf:type ontology:architectural_structure } UNION { ?l rdf:type ontology:sports_venue } } } } . FILTER ( ?q > ?k ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P137
Q811979 Q811430
USER
How many architectural structures and constructions can be described as facility operator of that sports team ?
(c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q650816) (c(Q811430),P137,Q650816) (c(Q811979),P137,Q166105) (c(Q811430),P137,Q166105)
[{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q650816'] [{'concept': 'Q811430'}, 'P137', 'Q650816'] [{'concept': 'Q811979'}, 'P137', 'Q166105'] [{'concept': 'Q811430'}, 'P137', 'Q166105']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q805748 } UNION { ?y property:Q131030 resource:Q805748 } UNION { ?z property:Q131030 resource:Q166105 } UNION { ?y property:Q131030 resource:Q166105 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q385378 }
[{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Baltimore Orioles'] [{'concept': 'construction'}, 'operator', 'Baltimore Orioles'] [{'concept': 'architectural structure'}, 'operator', 'Sacramento Kings'] [{'concept': 'construction'}, 'operator', 'Sacramento Kings']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Baltimore_Orioles } UNION { ?y property:operator resource:Baltimore_Orioles } UNION { ?z property:operator resource:Sacramento_Kings } UNION { ?y property:operator resource:Sacramento_Kings } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:construction }
[]
architectural structure construction
Quantitative|Count|Mult. entity type|Clarification
Q461595
SYSTEM
Did you mean Atlanta Braves ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q805748 } UNION { ?y property:Q131030 resource:Q805748 } UNION { ?z property:Q131030 resource:Q166105 } UNION { ?y property:Q131030 resource:Q166105 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q385378 }
Did you mean Atlanta Braves ?
Atlanta Braves
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Baltimore_Orioles } UNION { ?y property:operator resource:Baltimore_Orioles } UNION { ?z property:operator resource:Sacramento_Kings } UNION { ?y property:operator resource:Sacramento_Kings } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:construction }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q650816) (c(Q811430),P137,Q650816) (c(Q811979),P137,Q166105) (c(Q811430),P137,Q166105)
[{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q650816'] [{'concept': 'Q811430'}, 'P137', 'Q650816'] [{'concept': 'Q811979'}, 'P137', 'Q166105'] [{'concept': 'Q811430'}, 'P137', 'Q166105']
[{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Baltimore Orioles'] [{'concept': 'construction'}, 'operator', 'Baltimore Orioles'] [{'concept': 'architectural structure'}, 'operator', 'Sacramento Kings'] [{'concept': 'construction'}, 'operator', 'Sacramento Kings']
[]
SYSTEM
1 architectural structures and 1 constructions
Q17003430 Q1150936
(c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q461595) (c(Q811430),P137,Q461595) (c(Q811979),P137,Q650816) (c(Q811430),P137,Q650816) (c(Q811979),P137,Q166105) (c(Q811430),P137,Q166105)
[ANSWER]
[{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q461595'] [{'concept': 'Q811430'}, 'P137', 'Q461595'] [{'concept': 'Q811979'}, 'P137', 'Q650816'] [{'concept': 'Q811430'}, 'P137', 'Q650816'] [{'concept': 'Q811979'}, 'P137', 'Q166105'] [{'concept': 'Q811430'}, 'P137', 'Q166105']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q461595 } UNION { ?y property:Q131030 resource:Q461595 } UNION { ?z property:Q131030 resource:Q805748 } UNION { ?y property:Q131030 resource:Q805748 } UNION { ?z property:Q131030 resource:Q166105 } UNION { ?y property:Q131030 resource:Q166105 } } . ?z rdf:type ontology:Q811979 . ?y rdf:type ontology:Q385378 }
SunTrust Park Turner Field
1 architectural structures and 1 constructions
[{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Atlanta Braves'] [{'concept': 'construction'}, 'operator', 'Atlanta Braves'] [{'concept': 'architectural structure'}, 'operator', 'Baltimore Orioles'] [{'concept': 'construction'}, 'operator', 'Baltimore Orioles'] [{'concept': 'architectural structure'}, 'operator', 'Sacramento Kings'] [{'concept': 'construction'}, 'operator', 'Sacramento Kings']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Atlanta_Braves } UNION { ?y property:operator resource:Atlanta_Braves } UNION { ?z property:operator resource:Baltimore_Orioles } UNION { ?y property:operator resource:Baltimore_Orioles } UNION { ?z property:operator resource:Sacramento_Kings } UNION { ?y property:operator resource:Sacramento_Kings } } . ?z rdf:type ontology:architectural_structure . ?y rdf:type ontology:construction }
[]