Simple Question (Direct)
Simple Question
Q3292725
P26
Q502895
USER
Which person is the spouse of Marie Petiet ?
(Q3292725,P26,c(Q502895))
action filter_type
action find
entity Q3292725
relation P26
type Q502895
['Q3292725', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q3292725 property:P26 ?a }
Marie Petiet
action filter_type
action find
entity Marie Petiet
relation spouse
type common name
['Marie Petiet', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Marie_Petiet property:spouse ?a }
[]
common name
Q289596
SYSTEM
Henri-Charles-Etienne Dujardin-Beaumetz
Q289596
(Q3292725,P26,c(Q502895))
action filter_type
action find
entity Q3292725
relation P26
type Q502895
[ANSWER] is the spouse of Marie Petiet
['Q3292725', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q3292725 property:P26 ?a }
Henri-Charles-Etienne Dujardin-Beaumetz
Henri-Charles-Etienne Dujardin-Beaumetz is the spouse of Marie Petiet
Henri-Charles-Etienne Dujardin-Beaumetz
action filter_type
action find
entity Marie Petiet
relation spouse
type common name
['Marie Petiet', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Marie_Petiet property:spouse ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3292725
P802
Q502895
USER
Which person was a pupil of Marie Petiet ?
(c(Q502895),P802,Q3292725)
action filter_type
action find_reverse
entity Q3292725
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q3292725']
SELECT DISTINCT ?r WHERE { ?r property:P802 resource:Q3292725 . ?r rdf:type ontology:Q502895 }
Marie Petiet
action filter_type
action find_reverse
entity Marie Petiet
relation student
type common name
[{'concept': 'common name'}, 'student', 'Marie Petiet']
SELECT DISTINCT ?r WHERE { ?r property:student resource:Marie_Petiet . ?r rdf:type ontology:common_name }
[]
common name
Q325338
SYSTEM
Louis Héctor Leroux
Q325338
(c(Q502895),P802,Q3292725)
action filter_type
action find_reverse
entity Q3292725
relation P802
type Q502895
[ANSWER] was a pupil of Marie Petiet
[{'concept': 'Q502895'}, 'P802', 'Q3292725']
SELECT DISTINCT ?r WHERE { ?r property:P802 resource:Q3292725 . ?r rdf:type ontology:Q502895 }
Louis Héctor Leroux
Louis Héctor Leroux was a pupil of Marie Petiet
Louis Héctor Leroux
action filter_type
action find_reverse
entity Marie Petiet
relation student
type common name
[{'concept': 'common name'}, 'student', 'Marie Petiet']
SELECT DISTINCT ?r WHERE { ?r property:student resource:Marie_Petiet . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q325338
P20
Q20667921
USER
Where did that person expire ?
(Q325338,P20,c(Q20667921))
action filter_type
action find
entity Q325338
relation P20
type Q20667921
['Q325338', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q325338 property:P20 ?p . ?p rdf:type ontology:Q20667921 }
Louis Héctor Leroux
action filter_type
action find
entity Louis Héctor Leroux
relation place of death
type type of french administrative division
['Louis Héctor Leroux', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Louis_Héctor_Leroux property:place_of_death ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q38380
SYSTEM
Angers
Q38380
(Q325338,P20,c(Q20667921))
action filter_type
action find
entity Q325338
relation P20
type Q20667921
That person expired at [ANSWER]
['Q325338', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?p WHERE { resource:Q325338 property:P20 ?p . ?p rdf:type ontology:Q20667921 }
Angers
That person expired at Angers
Angers
action filter_type
action find
entity Louis Héctor Leroux
relation place of death
type type of french administrative division
['Louis Héctor Leroux', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?p WHERE { resource:Louis_Héctor_Leroux property:place_of_death ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q11204 Q191067 Q502895
USER
How many people have been recognized first in atleast 1 legislatures and articles ?
(c(Q502895),P248,c(Q11204)|c(Q191067))
action count
action atleast
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q191067
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { FILTER ( ?y >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?y ) WHERE { { ?x property:P248 ?a . ?x rdf:type ontology:Q502895 . ?a rdf:type ontology:Q191067 } UNION { ?x property:P248 ?a . ?x rdf:type ontology:Q502895 . ?a rdf:type ontology:Q11204 } } GROUP BY ?x } }
action count
action atleast
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type article
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'article'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { FILTER ( ?y >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?y ) WHERE { { ?x property:stated_in ?a . ?x rdf:type ontology:common_name . ?a rdf:type ontology:article } UNION { ?x property:stated_in ?a . ?x rdf:type ontology:common_name . ?a rdf:type ontology:legislature } } GROUP BY ?x } }
[]
legislature article common name
SYSTEM
14
Q6260667 Q16062974 Q5606263 Q16857953 Q16106932 Q15994621 Q15994622 Q8019900 Q16105467 Q6221424 Q15994581 Q16859187 Q6145005 Q6145001
(c(Q502895),P248,c(Q11204)|c(Q191067))
action count
action atleast
action union
action find_tuple_counts
relation P248
type Q502895
type Q11204
action find_tuple_counts
relation P248
type Q502895
type Q191067
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11204'}, {'concept': 'Q191067'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { FILTER ( ?y >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?y ) WHERE { { ?x property:P248 ?a . ?x rdf:type ontology:Q502895 . ?a rdf:type ontology:Q191067 } UNION { ?x property:P248 ?a . ?x rdf:type ontology:Q502895 . ?a rdf:type ontology:Q11204 } } GROUP BY ?x } }
John Thompson James Walker Greg Smith John Martin David Evans John Martin John Martin William Walker John Rogers John Bell John Lewis James Walker James Walker James Walker
14
action count
action atleast
action union
action find_tuple_counts
relation stated in
type common name
type legislature
action find_tuple_counts
relation stated in
type common name
type article
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'legislature'}, {'concept': 'article'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) WHERE { FILTER ( ?y >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?y ) WHERE { { ?x property:stated_in ?a . ?x rdf:type ontology:common_name . ?a rdf:type ontology:article } UNION { ?x property:stated_in ?a . ?x rdf:type ontology:common_name . ?a rdf:type ontology:legislature } } GROUP BY ?x } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q15617994 Q20667921
USER
How many administrative territories have around 2 french administrative divisions as their capital ?
(c(Q20667921),P1376,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
value 2
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q15617994 . ?r property:P1376 ?p } GROUP BY ?p } . FILTER ( ?i = 2 ) }
action count
action approx
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
value 2
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:capital_of ?p } GROUP BY ?p } . FILTER ( ?i = 2 ) }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
6
Q2998020 Q3259 Q12798 Q12730 Q3278 Q12772
(c(Q20667921),P1376,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q20667921
value 2
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:Q20667921 . ?p rdf:type ontology:Q15617994 . ?r property:P1376 ?p } GROUP BY ?p } . FILTER ( ?i = 2 ) }
Corse Cantal Vendée Haute-Saône Charente-Maritime Tarn
6
action count
action approx
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type type of french administrative division
value 2
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?r ) AS ?i ) WHERE { ?r rdf:type ontology:type_of_french_administrative_division . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:capital_of ?p } GROUP BY ?p } . FILTER ( ?i = 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38380
P17
Q7275
USER
Which state does Angers belong to ?
(Q38380,P17,c(Q7275))
action filter_type
action find
entity Q38380
relation P17
type Q7275
['Q38380', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q38380 property:P17 ?x . ?x rdf:type ontology:Q7275 }
Angers
action filter_type
action find
entity Angers
relation country
type state
['Angers', 'country', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Angers property:country ?x . ?x rdf:type ontology:state }
[]
state
Q70972
SYSTEM
Kingdom of France
Q70972
(Q38380,P17,c(Q7275))
action filter_type
action find
entity Q38380
relation P17
type Q7275
Angers belongs to [ANSWER]
['Q38380', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?x WHERE { resource:Q38380 property:P17 ?x . ?x rdf:type ontology:Q7275 }
Kingdom of France
Angers belongs to Kingdom of France
Kingdom of France
action filter_type
action find
entity Angers
relation country
type state
['Angers', 'country', {'concept': 'state'}]
SELECT DISTINCT ?x WHERE { resource:Angers property:country ?x . ?x rdf:type ontology:state }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q38380
Q15617994
USER
And which administrative territory?
(Q38380,P17,c(Q15617994))
action filter_type
action find
entity Q38380
relation P17
type Q15617994
['Q38380', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q38380 property:P17 ?w }
Angers
action filter_type
action find
entity Angers
relation country
type designation for an administrative territorial entity
['Angers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Angers property:country ?w }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q38380,P17,c(Q15617994))
action filter_type
action find
entity Q38380
relation P17
type Q15617994
[ANSWER]
['Q38380', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . resource:Q38380 property:P17 ?w }
France
France
action filter_type
action find
entity Angers
relation country
type designation for an administrative territorial entity
['Angers', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Angers property:country ?w }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q185582 Q38380
P190
Q486972
USER
Which human settlements are twin towns of Angers or Knoxville ?
OR((Q38380,P190,c(Q486972)), (Q185582,P190,c(Q486972)))
action filter_type
action union
action find
entity Q38380
relation P190
action find
entity Q185582
relation P190
type Q486972
{'OR': [['Q38380', 'P190', {'concept': 'Q486972'}], ['Q185582', 'P190', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q38380 property:P190 ?k } UNION { resource:Q185582 property:P190 ?k } } . ?k rdf:type ontology:Q486972 }
Knoxville Angers
action filter_type
action union
action find
entity Angers
relation sister city
action find
entity Knoxville
relation sister city
type human settlement
{'OR': [['Angers', 'sister city', {'concept': 'human settlement'}], ['Knoxville', 'sister city', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Angers property:sister_city ?k } UNION { resource:Knoxville property:sister_city ?k } } . ?k rdf:type ontology:human_settlement }
[]
human settlement
Q2916 Q234184
SYSTEM
Osnabrück, Chełm
Q2916 Q234184
OR((Q38380,P190,c(Q486972)), (Q185582,P190,c(Q486972)))
action filter_type
action union
action find
entity Q38380
relation P190
action find
entity Q185582
relation P190
type Q486972
[ANSWERS] are twin towns of Angers or Knoxville
{'OR': [['Q38380', 'P190', {'concept': 'Q486972'}], ['Q185582', 'P190', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q38380 property:P190 ?k } UNION { resource:Q185582 property:P190 ?k } } . ?k rdf:type ontology:Q486972 }
Osnabrück Chełm
Osnabrück and Chełm are twin towns of Angers or Knoxville
Osnabrück Chełm
action filter_type
action union
action find
entity Angers
relation sister city
action find
entity Knoxville
relation sister city
type human settlement
{'OR': [['Angers', 'sister city', {'concept': 'human settlement'}], ['Knoxville', 'sister city', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Angers property:sister_city ?k } UNION { resource:Knoxville property:sister_city ?k } } . ?k rdf:type ontology:human_settlement }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7960741 Q3292725
P27
Q15617994
USER
Which administrative territories are the native countriesof Marie Petiet or Waka Yamada ?
OR((Q3292725,P27,c(Q15617994)), (Q7960741,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3292725
relation P27
action find
entity Q7960741
relation P27
type Q15617994
{'OR': [['Q3292725', 'P27', {'concept': 'Q15617994'}], ['Q7960741', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3292725 property:P27 ?t } UNION { resource:Q7960741 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
Waka Yamada Marie Petiet
action filter_type
action union
action find
entity Marie Petiet
relation country of citizenship
action find
entity Waka Yamada
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marie Petiet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Waka Yamada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Marie_Petiet property:country_of_citizenship ?t } UNION { resource:Waka_Yamada property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q17
SYSTEM
France, Japan
Q142 Q17
OR((Q3292725,P27,c(Q15617994)), (Q7960741,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3292725
relation P27
action find
entity Q7960741
relation P27
type Q15617994
[ANSWERS] are the native countriesof Marie Petiet or Waka Yamada
{'OR': [['Q3292725', 'P27', {'concept': 'Q15617994'}], ['Q7960741', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q3292725 property:P27 ?t } UNION { resource:Q7960741 property:P27 ?t } } . ?t rdf:type ontology:Q15617994 }
France Japan
France and Japan are the native countriesof Marie Petiet or Waka Yamada
France Japan
action filter_type
action union
action find
entity Marie Petiet
relation country of citizenship
action find
entity Waka Yamada
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Marie Petiet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Waka Yamada', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Marie_Petiet property:country_of_citizenship ?t } UNION { resource:Waka_Yamada property:country_of_citizenship ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q83620 Q2235308
USER
How many administrative territories are atleast 4205 thoroughfares and ship types present in ?
(c(Q83620)|c(Q2235308),P17,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
value 4205
[[{'concept': 'Q83620'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q2235308 ) } . ?t rdf:type ?f } GROUP BY ?g } . FILTER ( ?p >= 4205 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
value 4205
[[{'concept': 'thoroughfare'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:ship_type ) } . ?t rdf:type ?f } GROUP BY ?g } . FILTER ( ?p >= 4205 ) }
[]
designation for an administrative territorial entity thoroughfare ship type
SYSTEM
2
Q30 Q17
(c(Q83620)|c(Q2235308),P17,c(Q15617994))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
value 4205
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q2235308'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q2235308 ) } . ?t rdf:type ?f } GROUP BY ?g } . FILTER ( ?p >= 4205 ) }
United States of America Japan
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
value 4205
[[{'concept': 'thoroughfare'}, {'concept': 'ship type'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:ship_type ) } . ?t rdf:type ?f } GROUP BY ?g } . FILTER ( ?p >= 4205 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { FILTER ( ?g = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?g ) WHERE { ?d property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( MIN ( ?u ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { FILTER ( ?g = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?g ) WHERE { ?d property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( MIN ( ?u ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } }
[]
political territorial entity designation for an administrative territorial entity
Q685 Q691
SYSTEM
Solomon Islands, Papua New Guinea
Q685 Q691
(c(Q15617994),P530,Q766)
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] hold diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q766']
SELECT DISTINCT ?d WHERE { FILTER ( ?g = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?g ) WHERE { ?d property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q1048835 } GROUP BY ?d } . { SELECT DISTINCT ( MIN ( ?u ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:P530 ?m . ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?s } } }
Solomon Islands Papua New Guinea
Solomon Islands and Papua New Guinea hold diplomatic relationship with min number of administrative territories
Solomon Islands Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Jamaica']
SELECT DISTINCT ?d WHERE { FILTER ( ?g = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?z ) AS ?g ) WHERE { ?d property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( MIN ( ?u ) AS ?f ) { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?u ) WHERE { ?s property:diplomatic_relation ?m . ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q199479
P17
Q15324
USER
Are Solomon Sea present in those political territories ?
(Q199479,P17,Q685) (Q199479,P17,Q691)
action is_in
entity prev_answer
action find
entity Q199479
relation P17
['Q199479', 'P17', 'Q685'] ['Q199479', 'P17', 'Q691']
ASK WHERE { resource:Q199479 property:P17 ?s . VALUES ( ?s ) { ( resource:Q685 ) ( resource:Q691 ) } }
Solomon Sea
action is_in
entity prev_answer
action find
entity Solomon Sea
relation country
['Solomon Sea', 'country', 'Solomon Islands'] ['Solomon Sea', 'country', 'Papua New Guinea']
ASK WHERE { resource:Solomon_Sea property:country ?s . VALUES ( ?s ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } }
[]
body of water
SYSTEM
YES
(Q199479,P17,Q685) (Q199479,P17,Q691)
action is_in
entity prev_answer
action find
entity Q199479
relation P17
[ANSWER]
['Q199479', 'P17', 'Q685'] ['Q199479', 'P17', 'Q691']
ASK WHERE { resource:Q199479 property:P17 ?s . VALUES ( ?s ) { ( resource:Q685 ) ( resource:Q691 ) } }
Yes
action is_in
entity prev_answer
action find
entity Solomon Sea
relation country
['Solomon Sea', 'country', 'Solomon Islands'] ['Solomon Sea', 'country', 'Papua New Guinea']
ASK WHERE { resource:Solomon_Sea property:country ?s . VALUES ( ?s ) { ( resource:Solomon_Islands ) ( resource:Papua_New_Guinea ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q289596 Q6992 Q690382
P19
Q56061
USER
Was Henri-Charles-Etienne Dujardin-Beaumetz born at Alsdorf and Little Wigborough ?
(Q289596,P19,Q6992) (Q289596,P19,Q690382)
action is_in
entity Q289596
action intersection
action find_reverse
entity Q6992
relation P19
action find_reverse
entity Q690382
relation P19
['Q289596', 'P19', 'Q6992'] ['Q289596', 'P19', 'Q690382']
ASK WHERE { resource:Q289596 property:P19 resource:Q6992 . resource:Q289596 property:P19 resource:Q690382 }
Henri-Charles-Etienne Dujardin-Beaumetz Alsdorf Little Wigborough
action is_in
entity Henri-Charles-Etienne Dujardin-Beaumetz
action intersection
action find_reverse
entity Alsdorf
relation place of birth
action find_reverse
entity Little Wigborough
relation place of birth
['Henri-Charles-Etienne Dujardin-Beaumetz', 'place of birth', 'Alsdorf'] ['Henri-Charles-Etienne Dujardin-Beaumetz', 'place of birth', 'Little Wigborough']
ASK WHERE { resource:Henri-Charles-Etienne_Dujardin-Beaumetz property:place_of_birth resource:Alsdorf . resource:Henri-Charles-Etienne_Dujardin-Beaumetz property:place_of_birth resource:Little_Wigborough }
[]
administrative territorial entity
SYSTEM
NO
(Q289596,P19,Q6992) (Q289596,P19,Q690382)
action is_in
entity Q289596
action intersection
action find_reverse
entity Q6992
relation P19
action find_reverse
entity Q690382
relation P19
[ANSWER]
['Q289596', 'P19', 'Q6992'] ['Q289596', 'P19', 'Q690382']
ASK WHERE { resource:Q289596 property:P19 resource:Q6992 . resource:Q289596 property:P19 resource:Q690382 }
No
action is_in
entity Henri-Charles-Etienne Dujardin-Beaumetz
action intersection
action find_reverse
entity Alsdorf
relation place of birth
action find_reverse
entity Little Wigborough
relation place of birth
['Henri-Charles-Etienne Dujardin-Beaumetz', 'place of birth', 'Alsdorf'] ['Henri-Charles-Etienne Dujardin-Beaumetz', 'place of birth', 'Little Wigborough']
ASK WHERE { resource:Henri-Charles-Etienne_Dujardin-Beaumetz property:place_of_birth resource:Alsdorf . resource:Henri-Charles-Etienne_Dujardin-Beaumetz property:place_of_birth resource:Little_Wigborough }
[]