Simple Question (Direct)
Simple Question
Q8002723
P19
Q56061
USER
Which administrative territory is the birthplace of Will Brownsberger ?
(Q8002723,P19,c(Q56061))
action filter_type
action find
entity Q8002723
relation P19
type Q56061
['Q8002723', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q8002723 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Will Brownsberger
action filter_type
action find
entity Will Brownsberger
relation place of birth
type administrative territorial entity
['Will Brownsberger', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Will_Brownsberger property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q54172
SYSTEM
Watertown
Q54172
(Q8002723,P19,c(Q56061))
action filter_type
action find
entity Q8002723
relation P19
type Q56061
[ANSWER] is the birthplace of Will Brownsberger
['Q8002723', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q8002723 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Watertown
Watertown is the birthplace of Will Brownsberger
Watertown
action filter_type
action find
entity Will Brownsberger
relation place of birth
type administrative territorial entity
['Will Brownsberger', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Will_Brownsberger property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8002723
P69
Q163740
USER
Which nonprofit organization is Will Brownsberger an alumni of ?
(Q8002723,P69,c(Q163740))
action filter_type
action find
entity Q8002723
relation P69
type Q163740
['Q8002723', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q163740 . resource:Q8002723 property:P69 ?c }
Will Brownsberger
action filter_type
action find
entity Will Brownsberger
relation educated at
type nonprofit organization
['Will Brownsberger', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:nonprofit_organization . resource:Will_Brownsberger property:educated_at ?c }
[]
nonprofit organization
Q13371
SYSTEM
Harvard University
Q13371
(Q8002723,P69,c(Q163740))
action filter_type
action find
entity Q8002723
relation P69
type Q163740
The [ANSWER] is Will Brownsberger an alumni of
['Q8002723', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q163740 . resource:Q8002723 property:P69 ?c }
Harvard University
The Harvard University is Will Brownsberger an alumni of
Harvard University
action filter_type
action find
entity Will Brownsberger
relation educated at
type nonprofit organization
['Will Brownsberger', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:nonprofit_organization . resource:Will_Brownsberger property:educated_at ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13371
P159
Q874405
USER
Which social group has HQ at that nonprofit organization ?
(c(Q874405),P159,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P159
type Q874405
[{'concept': 'Q874405'}, 'P159', 'Q13371']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q13371 . ?w rdf:type ontology:Q874405 }
Harvard University
action filter_type
action find_reverse
entity Harvard University
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Harvard University']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:Harvard_University . ?w rdf:type ontology:social_group }
[]
social group
Q2801605
SYSTEM
Berkman Center for Internet & Society
Q2801605
(c(Q874405),P159,Q13371)
action filter_type
action find_reverse
entity Q13371
relation P159
type Q874405
[ANSWER] has HQ at that nonprofit organization
[{'concept': 'Q874405'}, 'P159', 'Q13371']
SELECT DISTINCT ?w WHERE { ?w property:P159 resource:Q13371 . ?w rdf:type ontology:Q874405 }
Berkman Center for Internet & Society
Berkman Center for Internet & Society has HQ at that nonprofit organization
Berkman Center for Internet & Society
action filter_type
action find_reverse
entity Harvard University
relation headquarters location
type social group
[{'concept': 'social group'}, 'headquarters location', 'Harvard University']
SELECT DISTINCT ?w WHERE { ?w property:headquarters_location resource:Harvard_University . ?w rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q54172
P17
Q15617994
USER
Which administrative territory is Watertown a part of ?
(Q54172,P17,c(Q15617994))
action filter_type
action find
entity Q54172
relation P17
type Q15617994
['Q54172', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q54172 property:P17 ?c }
Watertown
action filter_type
action find
entity Watertown
relation country
type designation for an administrative territorial entity
['Watertown', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Watertown property:country ?c }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q54172,P17,c(Q15617994))
action filter_type
action find
entity Q54172
relation P17
type Q15617994
Which administrative territory is Watertown a part of
['Q54172', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q15617994 . resource:Q54172 property:P17 ?c }
United States of America
Which administrative territory is Watertown a part of
United States of America
action filter_type
action find
entity Watertown
relation country
type designation for an administrative territorial entity
['Watertown', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Watertown property:country ?c }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1013401
Q15617994
USER
And also tell me about Obřany Castle?
(Q1013401,P17,c(Q15617994))
action filter_type
action find
entity Q1013401
relation P17
type Q15617994
['Q1013401', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1013401 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Obřany Castle
action filter_type
action find
entity Obřany Castle
relation country
type designation for an administrative territorial entity
['Obřany Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Obřany_Castle property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q1013401,P17,c(Q15617994))
action filter_type
action find
entity Q1013401
relation P17
type Q15617994
[ANSWER]
['Q1013401', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q1013401 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Czech Republic
Czech Republic
action filter_type
action find
entity Obřany Castle
relation country
type designation for an administrative territorial entity
['Obřany Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Obřany_Castle property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q213 Q193675 Q155880
P6
Q502895
USER
Does that administrative territory have its government headed by Jan Fischer and Mirek Topolánek ?
(Q213,P6,Q193675) (Q213,P6,Q155880)
action is_in
entity Q213
action intersection
action find_reverse
entity Q193675
relation P6
action find_reverse
entity Q155880
relation P6
['Q213', 'P6', 'Q193675'] ['Q213', 'P6', 'Q155880']
ASK WHERE { resource:Q213 property:P6 resource:Q193675 . resource:Q213 property:P6 resource:Q155880 }
Czech Republic Jan Fischer Mirek Topolánek
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Jan Fischer
relation head of government
action find_reverse
entity Mirek Topolánek
relation head of government
['Czech Republic', 'head of government', 'Jan Fischer'] ['Czech Republic', 'head of government', 'Mirek Topolánek']
ASK WHERE { resource:Czech_Republic property:head_of_government resource:Jan_Fischer . resource:Czech_Republic property:head_of_government resource:Mirek_Topolánek }
[]
common name
SYSTEM
YES
(Q213,P6,Q193675) (Q213,P6,Q155880)
action is_in
entity Q213
action intersection
action find_reverse
entity Q193675
relation P6
action find_reverse
entity Q155880
relation P6
[ANSWER]
['Q213', 'P6', 'Q193675'] ['Q213', 'P6', 'Q155880']
ASK WHERE { resource:Q213 property:P6 resource:Q193675 . resource:Q213 property:P6 resource:Q155880 }
Yes
action is_in
entity Czech Republic
action intersection
action find_reverse
entity Jan Fischer
relation head of government
action find_reverse
entity Mirek Topolánek
relation head of government
['Czech Republic', 'head of government', 'Jan Fischer'] ['Czech Republic', 'head of government', 'Mirek Topolánek']
ASK WHERE { resource:Czech_Republic property:head_of_government resource:Jan_Fischer . resource:Czech_Republic property:head_of_government resource:Mirek_Topolánek }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with atmost 29 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 29
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?m ) WHERE { ?v property:P530 ?q . ?v rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?m <= 29 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?m ) WHERE { ?v property:diplomatic_relation ?q . ?v rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?m <= 29 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 29
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?m ) WHERE { ?v property:P530 ?q . ?v rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?m <= 29 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?m ) WHERE { ?v property:diplomatic_relation ?q . ?v rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?m <= 29 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q213
P551
Q16521
USER
Which taxon dwells at Czech Republic ?
(c(Q16521),P551,Q213)
action filter_type
action find_reverse
entity Q213
relation P551
type Q16521
[{'concept': 'Q16521'}, 'P551', 'Q213']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q16521 . ?l property:P551 resource:Q213 }
Czech Republic
action filter_type
action find_reverse
entity Czech Republic
relation residence
type taxon
[{'concept': 'taxon'}, 'residence', 'Czech Republic']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:taxon . ?l property:residence resource:Czech_Republic }
[]
taxon
Q20817896
SYSTEM
Nola
Q20817896
(c(Q16521),P551,Q213)
action filter_type
action find_reverse
entity Q213
relation P551
type Q16521
[ANSWER] dwells at Czech Republic
[{'concept': 'Q16521'}, 'P551', 'Q213']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q16521 . ?l property:P551 resource:Q213 }
Nola
Nola dwells at Czech Republic
Nola
action filter_type
action find_reverse
entity Czech Republic
relation residence
type taxon
[{'concept': 'taxon'}, 'residence', 'Czech Republic']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:taxon . ?l property:residence resource:Czech_Republic }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q166142 Q15416
USER
Which administrative territories are the narrative locations of approximately 139 applications or television programs ?
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 139
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?u ) WHERE { { ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 . ?q property:P840 ?d } UNION { ?q property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?d } . FILTER ( ?u = 139 ) }
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 139
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?u ) WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application . ?q property:narrative_location ?d } UNION { ?q property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?d } . FILTER ( ?u = 139 ) }
[]
designation for an administrative territorial entity application television program
Q142 Q38
SYSTEM
France, Italy
Q142 Q38
(c(Q166142)|c(Q15416),P840,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 139
[ANSWERS] are the narrative locations of approximately 139 applications or television programs
[[{'concept': 'Q166142'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?u ) WHERE { { ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q166142 . ?q property:P840 ?d } UNION { ?q property:P840 ?d . ?d rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15416 } } GROUP BY ?d } . FILTER ( ?u = 139 ) }
France Italy
France and Italy are the narrative locations of approximately 139 applications or television programs
France Italy
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 139
[[{'concept': 'application'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?u ) WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:application . ?q property:narrative_location ?d } UNION { ?q property:narrative_location ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:television_program } } GROUP BY ?d } . FILTER ( ?u = 139 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q626792
P138
Q15617994 Q179049 Q12280
USER
How many administrative territories are namesakes of greater number of nature reserves or bridges than Fehrbellin ?
(c(Q179049)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q179049
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q626792
relation P138
type Q179049
type Q12280
[[{'concept': 'Q179049'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?h WHERE { VALUES ( ?a ) { ( ontology:Q179049 ) ( ontology:Q12280 ) } . ?c rdf:type ?a } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P138 resource:Q626792 . { { ?r rdf:type ontology:Q12280 } UNION { ?r rdf:type ontology:Q179049 } } } } . FILTER ( ?q > ?i ) }
Fehrbellin
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type nature reserve
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Fehrbellin
relation named after
type nature reserve
type bridge
[[{'concept': 'nature reserve'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?h WHERE { VALUES ( ?a ) { ( ontology:nature_reserve ) ( ontology:bridge ) } . ?c rdf:type ?a } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:named_after resource:Fehrbellin . { { ?r rdf:type ontology:bridge } UNION { ?r rdf:type ontology:nature_reserve } } } } . FILTER ( ?q > ?i ) }
[]
designation for an administrative territorial entity nature reserve bridge
SYSTEM
23
Q570120 Q549749 Q1427674 Q705 Q632209 Q39 Q1987554 Q555328 Q488513 Q1527970 Q14943702 Q2152015 Q2938 Q493437 Q31872 Q142 Q264620 Q490167 Q2009898 Q759201 Q6998 Q1837 Q554187
(c(Q179049)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q179049
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q626792
relation P138
type Q179049
type Q12280
[ANSWER]
[[{'concept': 'Q179049'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?h WHERE { VALUES ( ?a ) { ( ontology:Q179049 ) ( ontology:Q12280 ) } . ?c rdf:type ?a } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P138 resource:Q626792 . { { ?r rdf:type ontology:Q12280 } UNION { ?r rdf:type ontology:Q179049 } } } } . FILTER ( ?q > ?i ) }
Hollenstedt Heinsen Wernborn Zeeland Basedow Switzerland Nieder-Roden Urmitz Anklam Ober-Roden Sprendlingen Riedelbach Leverkusen Arneburg Moosburg an der Isar France Garching bei München Pielenhofen Oberhöchstadt Auerbach Freising Wohldorf-Ohlstedt Lunden
23
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type nature reserve
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Fehrbellin
relation named after
type nature reserve
type bridge
[[{'concept': 'nature reserve'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?q ) ?h WHERE { VALUES ( ?a ) { ( ontology:nature_reserve ) ( ontology:bridge ) } . ?c rdf:type ?a } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:named_after resource:Fehrbellin . { { ?r rdf:type ontology:bridge } UNION { ?r rdf:type ontology:nature_reserve } } } } . FILTER ( ?q > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q40641
P138
Q15617994 Q179049 Q12280
USER
And how about Macherio?
(c(Q179049)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q179049
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q40641
relation P138
type Q179049
type Q12280
[[{'concept': 'Q179049'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) ?d WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q12280 ) ( ontology:Q179049 ) } } GROUP BY ?d } . FILTER ( ?w > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P138 resource:Q40641 . { { ?r rdf:type ontology:Q179049 } UNION { ?r rdf:type ontology:Q12280 } } } } }
Macherio
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type nature reserve
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Macherio
relation named after
type nature reserve
type bridge
[[{'concept': 'nature reserve'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) ?d WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:bridge ) ( ontology:nature_reserve ) } } GROUP BY ?d } . FILTER ( ?w > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:named_after resource:Macherio . { { ?r rdf:type ontology:nature_reserve } UNION { ?r rdf:type ontology:bridge } } } } }
[]
designation for an administrative territorial entity nature reserve bridge
SYSTEM
23
Q570120 Q549749 Q1427674 Q705 Q632209 Q39 Q1987554 Q555328 Q488513 Q1527970 Q14943702 Q2152015 Q2938 Q493437 Q31872 Q142 Q264620 Q490167 Q2009898 Q759201 Q6998 Q1837 Q554187
(c(Q179049)|c(Q12280),P138,c(Q15617994))
action count
action greater
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q179049
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q12280
action count
action filter_multi_types
action find_reverse
entity Q40641
relation P138
type Q179049
type Q12280
[ANSWER]
[[{'concept': 'Q179049'}, {'concept': 'Q12280'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) ?d WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:Q12280 ) ( ontology:Q179049 ) } } GROUP BY ?d } . FILTER ( ?w > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P138 resource:Q40641 . { { ?r rdf:type ontology:Q179049 } UNION { ?r rdf:type ontology:Q12280 } } } } }
Hollenstedt Heinsen Wernborn Zeeland Basedow Switzerland Nieder-Roden Urmitz Anklam Ober-Roden Sprendlingen Riedelbach Leverkusen Arneburg Moosburg an der Isar France Garching bei München Pielenhofen Oberhöchstadt Auerbach Freising Wohldorf-Ohlstedt Lunden
23
action count
action greater
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type nature reserve
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type bridge
action count
action filter_multi_types
action find_reverse
entity Macherio
relation named after
type nature reserve
type bridge
[[{'concept': 'nature reserve'}, {'concept': 'bridge'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) ?d WHERE { ?a rdf:type ?g . VALUES ( ?g ) { ( ontology:bridge ) ( ontology:nature_reserve ) } } GROUP BY ?d } . FILTER ( ?w > ?c ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:named_after resource:Macherio . { { ?r rdf:type ontology:nature_reserve } UNION { ?r rdf:type ontology:bridge } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5252278 Q2801605
P17
Q15617994
USER
Which administrative territories are Berkman Center for Internet & Society or Dehipagoda situated in ?
OR((Q2801605,P17,c(Q15617994)), (Q5252278,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2801605
relation P17
action find
entity Q5252278
relation P17
type Q15617994
{'OR': [['Q2801605', 'P17', {'concept': 'Q15617994'}], ['Q5252278', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { VALUES ( ?k ) { ( resource:Q2801605 ) ( resource:Q5252278 ) } . ?k property:P17 ?y } }
Dehipagoda Berkman Center for Internet & Society
action filter_type
action union
action find
entity Berkman Center for Internet & Society
relation country
action find
entity Dehipagoda
relation country
type designation for an administrative territorial entity
{'OR': [['Berkman Center for Internet & Society', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dehipagoda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?k ) { ( resource:Berkman_Center_for_Internet_&_Society ) ( resource:Dehipagoda ) } . ?k property:country ?y } }
[]
designation for an administrative territorial entity
Q30 Q854
SYSTEM
United States of America, Sri Lanka
Q30 Q854
OR((Q2801605,P17,c(Q15617994)), (Q5252278,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2801605
relation P17
action find
entity Q5252278
relation P17
type Q15617994
Berkman Center for Internet & Society or Dehipagoda are situated in [ANSWERS]
{'OR': [['Q2801605', 'P17', {'concept': 'Q15617994'}], ['Q5252278', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q15617994 . { VALUES ( ?k ) { ( resource:Q2801605 ) ( resource:Q5252278 ) } . ?k property:P17 ?y } }
United States of America Sri Lanka
Berkman Center for Internet & Society or Dehipagoda are situated in United States of America and Sri Lanka
United States of America Sri Lanka
action filter_type
action union
action find
entity Berkman Center for Internet & Society
relation country
action find
entity Dehipagoda
relation country
type designation for an administrative territorial entity
{'OR': [['Berkman Center for Internet & Society', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dehipagoda', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?k ) { ( resource:Berkman_Center_for_Internet_&_Society ) ( resource:Dehipagoda ) } . ?k property:country ?y } }
[]