Simple Question (Direct)
Simple Question
Q3123607
P19
Q20667921
USER
Where was Gérald Dahan born ?
(Q3123607,P19,c(Q20667921))
action filter_type
action find
entity Q3123607
relation P19
type Q20667921
['Q3123607', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q3123607 property:P19 ?k . ?k rdf:type ontology:Q20667921 }
Gérald Dahan
action filter_type
action find
entity Gérald Dahan
relation place of birth
type type of french administrative division
['Gérald Dahan', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Gérald_Dahan property:place_of_birth ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q285
SYSTEM
Cognac
Q285
(Q3123607,P19,c(Q20667921))
action filter_type
action find
entity Q3123607
relation P19
type Q20667921
Gérald Dahan was born in [ANSWER]
['Q3123607', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?k WHERE { resource:Q3123607 property:P19 ?k . ?k rdf:type ontology:Q20667921 }
Cognac
Gérald Dahan was born in Cognac
Cognac
action filter_type
action find
entity Gérald Dahan
relation place of birth
type type of french administrative division
['Gérald Dahan', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?k WHERE { resource:Gérald_Dahan property:place_of_birth ?k . ?k rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q285
P17
Q15617994
USER
Which administrative territory is that french administrative division located in ?
(Q285,P17,c(Q15617994))
action filter_type
action find
entity Q285
relation P17
type Q15617994
['Q285', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q285 property:P17 ?q }
Cognac
action filter_type
action find
entity Cognac
relation country
type designation for an administrative territorial entity
['Cognac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cognac property:country ?q }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q285,P17,c(Q15617994))
action filter_type
action find
entity Q285
relation P17
type Q15617994
That french administrative division is located in [ANSWER]
['Q285', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q285 property:P17 ?q }
France
That french administrative division is located in France
France
action filter_type
action find
entity Cognac
relation country
type designation for an administrative territorial entity
['Cognac', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cognac property:country ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q285
P937
Q502895
USER
Who works at that french administrative division ?
(c(Q502895),P937,Q142)
action filter_type
action find_reverse
entity Q285
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q142']
SELECT DISTINCT ?i WHERE { ?i property:P937 resource:Q285 . ?i rdf:type ontology:Q502895 }
Cognac
action filter_type
action find_reverse
entity Cognac
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'France']
SELECT DISTINCT ?i WHERE { ?i property:work_location resource:Cognac . ?i rdf:type ontology:common_name }
[]
common name
Q727191
SYSTEM
Robinet Testard
Q727191
(c(Q502895),P937,Q142)
action filter_type
action find_reverse
entity Q285
relation P937
type Q502895
[ANSWER] works at that french administrative division
[{'concept': 'Q502895'}, 'P937', 'Q142']
SELECT DISTINCT ?i WHERE { ?i property:P937 resource:Q285 . ?i rdf:type ontology:Q502895 }
Robinet Testard
Robinet Testard works at that french administrative division
Robinet Testard
action filter_type
action find_reverse
entity Cognac
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'France']
SELECT DISTINCT ?i WHERE { ?i property:work_location resource:Cognac . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q285
P30
Q2221906
USER
Which geographic location is Cognac located in ?
(Q285,P30,c(Q2221906))
action filter_type
action find
entity Q285
relation P30
type Q2221906
['Q285', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q285 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Cognac
action filter_type
action find
entity Cognac
relation continent
type geographic location
['Cognac', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Cognac property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q285,P30,c(Q2221906))
action filter_type
action find
entity Q285
relation P30
type Q2221906
Cognac is located in [ANSWER]
['Q285', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?w WHERE { resource:Q285 property:P30 ?w . ?w rdf:type ontology:Q2221906 }
Europe
Cognac is located in Europe
Europe
action filter_type
action find
entity Cognac
relation continent
type geographic location
['Cognac', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?w WHERE { resource:Cognac property:continent ?w . ?w rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4707503
Q2221906
USER
And also tell me about Alan Peak?
(Q4707503,P30,c(Q2221906))
action filter_type
action find
entity Q4707503
relation P30
type Q2221906
['Q4707503', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q4707503 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Alan Peak
action filter_type
action find
entity Alan Peak
relation continent
type geographic location
['Alan Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Peak property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q4707503,P30,c(Q2221906))
action filter_type
action find
entity Q4707503
relation P30
type Q2221906
[ANSWER]
['Q4707503', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { resource:Q4707503 property:P30 ?a . ?a rdf:type ontology:Q2221906 }
Antarctica
Antarctica
action filter_type
action find
entity Alan Peak
relation continent
type geographic location
['Alan Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { resource:Alan_Peak property:continent ?a . ?a rdf:type ontology:geographic_location }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1524629
P706
Q2221906 Q486972
USER
How many human settlements are located in greater number of geographic locations than Himberg ?
(c(Q486972),P706,c(Q2221906))
action count
action greater
action find_tuple_counts
relation P706
type Q486972
type Q2221906
action count
action filter_type
action find
entity Q1524629
relation P706
type Q486972
[{'concept': 'Q486972'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?i ) WHERE { ?p property:P706 ?q . ?p rdf:type ontology:Q486972 . ?q rdf:type ontology:Q2221906 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q1524629 property:P706 ?h . ?h rdf:type ontology:Q486972 } } . FILTER ( ?i > ?m ) }
Himberg
action count
action greater
action find_tuple_counts
relation located on terrain feature
type human settlement
type geographic location
action count
action filter_type
action find
entity Himberg
relation located on terrain feature
type human settlement
[{'concept': 'human settlement'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?i ) WHERE { ?p property:located_on_terrain_feature ?q . ?p rdf:type ontology:human_settlement . ?q rdf:type ontology:geographic_location } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Himberg property:located_on_terrain_feature ?h . ?h rdf:type ontology:human_settlement } } . FILTER ( ?i > ?m ) }
[]
geographic location human settlement
SYSTEM
3
Q82500 Q14805 Q1014971
(c(Q486972),P706,c(Q2221906))
action count
action greater
action find_tuple_counts
relation P706
type Q486972
type Q2221906
action count
action filter_type
action find
entity Q1524629
relation P706
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?i ) WHERE { ?p property:P706 ?q . ?p rdf:type ontology:Q486972 . ?q rdf:type ontology:Q2221906 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q1524629 property:P706 ?h . ?h rdf:type ontology:Q486972 } } . FILTER ( ?i > ?m ) }
St. Pölten Kaufbeuren Burggrub
3
action count
action greater
action find_tuple_counts
relation located on terrain feature
type human settlement
type geographic location
action count
action filter_type
action find
entity Himberg
relation located on terrain feature
type human settlement
[{'concept': 'human settlement'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?q ) AS ?i ) WHERE { ?p property:located_on_terrain_feature ?q . ?p rdf:type ontology:human_settlement . ?q rdf:type ontology:geographic_location } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Himberg property:located_on_terrain_feature ?h . ?h rdf:type ontology:human_settlement } } . FILTER ( ?i > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q4572703
P706
Q2221906 Q486972
USER
And also tell me about Brand?
(c(Q486972),P706,c(Q2221906))
action count
action greater
action find_tuple_counts
relation P706
type Q486972
type Q2221906
action count
action filter_type
action find
entity Q4572703
relation P706
type Q486972
[{'concept': 'Q486972'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?z ) WHERE { ?f property:P706 ?a . ?f rdf:type ontology:Q486972 . ?a rdf:type ontology:Q2221906 } GROUP BY ?f } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q4572703 property:P706 ?r . ?r rdf:type ontology:Q486972 } } }
Brand
action count
action greater
action find_tuple_counts
relation located on terrain feature
type human settlement
type geographic location
action count
action filter_type
action find
entity Brand
relation located on terrain feature
type human settlement
[{'concept': 'human settlement'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?z ) WHERE { ?f property:located_on_terrain_feature ?a . ?f rdf:type ontology:human_settlement . ?a rdf:type ontology:geographic_location } GROUP BY ?f } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Brand property:located_on_terrain_feature ?r . ?r rdf:type ontology:human_settlement } } }
[]
geographic location human settlement
SYSTEM
3
Q82500 Q14805 Q1014971
(c(Q486972),P706,c(Q2221906))
action count
action greater
action find_tuple_counts
relation P706
type Q486972
type Q2221906
action count
action filter_type
action find
entity Q4572703
relation P706
type Q486972
[ANSWER]
[{'concept': 'Q486972'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?z ) WHERE { ?f property:P706 ?a . ?f rdf:type ontology:Q486972 . ?a rdf:type ontology:Q2221906 } GROUP BY ?f } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q4572703 property:P706 ?r . ?r rdf:type ontology:Q486972 } } }
St. Pölten Kaufbeuren Burggrub
3
action count
action greater
action find_tuple_counts
relation located on terrain feature
type human settlement
type geographic location
action count
action filter_type
action find
entity Brand
relation located on terrain feature
type human settlement
[{'concept': 'human settlement'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?z ) WHERE { ?f property:located_on_terrain_feature ?a . ?f rdf:type ontology:human_settlement . ?a rdf:type ontology:geographic_location } GROUP BY ?f } . FILTER ( ?z > ?s ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Brand property:located_on_terrain_feature ?r . ?r rdf:type ontology:human_settlement } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P706
Q14524493 Q82794 Q2221906
USER
Which geographic locations are located in around 1 terrains or geographic regions ?
(c(Q2221906),P706,c(Q14524493)|c(Q82794))
action approx
action union
action find_tuple_counts
relation P706
type Q2221906
type Q14524493
action find_tuple_counts
relation P706
type Q2221906
type Q82794
value 1
[{'concept': 'Q2221906'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?w WHERE { { ?w property:P706 ?z . ?w rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q14524493 } UNION { ?w property:P706 ?z . ?z rdf:type ontology:Q82794 . ?w rdf:type ontology:Q2221906 } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
action approx
action union
action find_tuple_counts
relation located on terrain feature
type geographic location
type terrain
action find_tuple_counts
relation located on terrain feature
type geographic location
type geographic region
value 1
[{'concept': 'geographic location'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?w WHERE { { ?w property:located_on_terrain_feature ?z . ?w rdf:type ontology:geographic_location . ?z rdf:type ontology:terrain } UNION { ?w property:located_on_terrain_feature ?z . ?z rdf:type ontology:geographic_region . ?w rdf:type ontology:geographic_location } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
terrain geographic region geographic location
Q46 Q81483 Q495241
SYSTEM
Europe, The Levant, Gyeongju Historic Areas
Q46 Q81483 Q4848366 Q5338781 Q495241
(c(Q2221906),P706,c(Q14524493)|c(Q82794))
action approx
action union
action find_tuple_counts
relation P706
type Q2221906
type Q14524493
action find_tuple_counts
relation P706
type Q2221906
type Q82794
value 1
[ANSWERS] are located in around 1 terrains or geographic regions
[{'concept': 'Q2221906'}, 'P706', [{'concept': 'Q14524493'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?w WHERE { { ?w property:P706 ?z . ?w rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q14524493 } UNION { ?w property:P706 ?z . ?z rdf:type ontology:Q82794 . ?w rdf:type ontology:Q2221906 } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
Europe The Levant Bailey Ice Stream Edlin Névé Gyeongju Historic Areas
Europe, The Levant and Gyeongju Historic Areas are located in around 1 terrains or geographic regions
Europe The Levant Gyeongju Historic Areas
action approx
action union
action find_tuple_counts
relation located on terrain feature
type geographic location
type terrain
action find_tuple_counts
relation located on terrain feature
type geographic location
type geographic region
value 1
[{'concept': 'geographic location'}, 'located on terrain feature', [{'concept': 'terrain'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) ?w WHERE { { ?w property:located_on_terrain_feature ?z . ?w rdf:type ontology:geographic_location . ?z rdf:type ontology:terrain } UNION { ?w property:located_on_terrain_feature ?z . ?z rdf:type ontology:geographic_region . ?w rdf:type ontology:geographic_location } } GROUP BY ?w } . FILTER ( ?b = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that geographic location a part of ?
(Q81483,P17,c(Q15617994))
['Q81483', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81483 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['The Levant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Levant property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q81483
SYSTEM
Did you mean The Levant ?
(Q46,P17,c(Q15617994)) (Q81483,P17,c(Q15617994)) (Q495241,P17,c(Q15617994))
[ANSWER]
['Q46', 'P17', {'concept': 'Q15617994'}] ['Q81483', 'P17', {'concept': 'Q15617994'}] ['Q495241', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81483 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean The Levant ?
The Levant
['Europe', 'country', {'concept': 'designation for an administrative territorial entity'}] ['The Levant', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Gyeongju Historic Areas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Levant property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q81483,P17,c(Q15617994))
['Q81483', 'P17', {'concept': 'Q15617994'}]
['The Levant', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
4
Q858 Q810 Q801 Q822
(Q81483,P17,c(Q15617994))
[ANSWER]
['Q81483', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q81483 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Syria Jordan Israel Lebanon
4
['The Levant', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Levant property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q56061 Q82794 Q2221906
USER
Which geographic locations are a component of around 1 administrative territories or geographic regions ?
(c(Q2221906),P361,c(Q56061)|c(Q82794))
action approx
action union
action find_tuple_counts
relation P361
type Q2221906
type Q56061
action find_tuple_counts
relation P361
type Q2221906
type Q82794
value 1
[{'concept': 'Q2221906'}, 'P361', [{'concept': 'Q56061'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q82794 ) } . ?s rdf:type ?e } GROUP BY ?g } . FILTER ( ?w = 1 ) }
action approx
action union
action find_tuple_counts
relation part of
type geographic location
type administrative territorial entity
action find_tuple_counts
relation part of
type geographic location
type geographic region
value 1
[{'concept': 'geographic location'}, 'part of', [{'concept': 'administrative territorial entity'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:geographic_region ) } . ?s rdf:type ?e } GROUP BY ?g } . FILTER ( ?w = 1 ) }
[]
administrative territorial entity geographic region geographic location
Q121359 Q7580722 Q3271856
SYSTEM
infrastructure, Spring Valley, South Bay
Q7580722 Q121359 Q3333384 Q106259 Q3271856 Q1292279
(c(Q2221906),P361,c(Q56061)|c(Q82794))
action approx
action union
action find_tuple_counts
relation P361
type Q2221906
type Q56061
action find_tuple_counts
relation P361
type Q2221906
type Q82794
value 1
And [ANSWERS] are a component of around 1 administrative territories or geographic regions
[{'concept': 'Q2221906'}, 'P361', [{'concept': 'Q56061'}, {'concept': 'Q82794'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q82794 ) } . ?s rdf:type ?e } GROUP BY ?g } . FILTER ( ?w = 1 ) }
Spring Valley infrastructure Mesogaea polder South Bay political border
And infrastructure, Spring Valley and South Bay are a component of around 1 administrative territories or geographic regions
infrastructure Spring Valley South Bay
action approx
action union
action find_tuple_counts
relation part of
type geographic location
type administrative territorial entity
action find_tuple_counts
relation part of
type geographic location
type geographic region
value 1
[{'concept': 'geographic location'}, 'part of', [{'concept': 'administrative territorial entity'}, {'concept': 'geographic region'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:geographic_region ) } . ?s rdf:type ?e } GROUP BY ?g } . FILTER ( ?w = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q46 Q209905
P937
Q502895
USER
How many people works at Europe or Akhisar ?
(c(Q502895),P937,Q46) (c(Q502895),P937,Q209905)
action count
action union
action filter_type
action find_reverse
entity Q46
relation P937
type Q502895
action filter_type
action find_reverse
entity Q209905
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q46'] [{'concept': 'Q502895'}, 'P937', 'Q209905']
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { ?r rdf:type ontology:Q502895 . ?r property:P937 resource:Q46 } UNION { ?r property:P937 resource:Q209905 . ?r rdf:type ontology:Q502895 } }
Europe Akhisar
action count
action union
action filter_type
action find_reverse
entity Europe
relation work location
type common name
action filter_type
action find_reverse
entity Akhisar
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Europe'] [{'concept': 'common name'}, 'work location', 'Akhisar']
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { ?r rdf:type ontology:common_name . ?r property:work_location resource:Europe } UNION { ?r property:work_location resource:Akhisar . ?r rdf:type ontology:common_name } }
[]
common name
SYSTEM
2
Q11007312 Q1823590
(c(Q502895),P937,Q46) (c(Q502895),P937,Q209905)
action count
action union
action filter_type
action find_reverse
entity Q46
relation P937
type Q502895
action filter_type
action find_reverse
entity Q209905
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q46'] [{'concept': 'Q502895'}, 'P937', 'Q209905']
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { ?r rdf:type ontology:Q502895 . ?r property:P937 resource:Q46 } UNION { ?r property:P937 resource:Q209905 . ?r rdf:type ontology:Q502895 } }
Oliver Frljić Licinius Rufinus
2
action count
action union
action filter_type
action find_reverse
entity Europe
relation work location
type common name
action filter_type
action find_reverse
entity Akhisar
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Europe'] [{'concept': 'common name'}, 'work location', 'Akhisar']
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { ?r rdf:type ontology:common_name . ?r property:work_location resource:Europe } UNION { ?r property:work_location resource:Akhisar . ?r rdf:type ontology:common_name } }
[]