Simple Question (Direct)
Simple Question
Q4093130
P69
Q3914
USER
What is the school where Richard Bondarev was educated ?
(Q4093130,P69,c(Q3914))
action filter_type
action find
entity Q4093130
relation P69
type Q3914
['Q4093130', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?w WHERE { resource:Q4093130 property:P69 ?w . ?w rdf:type ontology:Q3914 }
Richard Bondarev
action filter_type
action find
entity Richard Bondarev
relation educated at
type school
['Richard Bondarev', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?w WHERE { resource:Richard_Bondarev property:educated_at ?w . ?w rdf:type ontology:school }
[]
school
Q1130457
SYSTEM
Gerasimov Institute of Cinematography
Q1130457
(Q4093130,P69,c(Q3914))
action filter_type
action find
entity Q4093130
relation P69
type Q3914
The school Richard Bondarev was educated is [ANSWER]
['Q4093130', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?w WHERE { resource:Q4093130 property:P69 ?w . ?w rdf:type ontology:Q3914 }
Gerasimov Institute of Cinematography
The school Richard Bondarev was educated is Gerasimov Institute of Cinematography
Gerasimov Institute of Cinematography
action filter_type
action find
entity Richard Bondarev
relation educated at
type school
['Richard Bondarev', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?w WHERE { resource:Richard_Bondarev property:educated_at ?w . ?w rdf:type ontology:school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1130457
P17
Q15617994
USER
Which administrative territory does that school belong to ?
(Q1130457,P17,c(Q15617994))
action filter_type
action find
entity Q1130457
relation P17
type Q15617994
['Q1130457', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1130457 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Gerasimov Institute of Cinematography
action filter_type
action find
entity Gerasimov Institute of Cinematography
relation country
type designation for an administrative territorial entity
['Gerasimov Institute of Cinematography', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gerasimov_Institute_of_Cinematography property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q1130457,P17,c(Q15617994))
action filter_type
action find
entity Q1130457
relation P17
type Q15617994
That school belongs to [ANSWER]
['Q1130457', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q1130457 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Russia
That school belongs to Russia
Russia
action filter_type
action find
entity Gerasimov Institute of Cinematography
relation country
type designation for an administrative territorial entity
['Gerasimov Institute of Cinematography', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gerasimov_Institute_of_Cinematography property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q159
P921
Q191067
USER
What are that administrative territory a main subject of ?
(c(Q191067),P921,Q159)
action filter_type
action find_reverse
entity Q159
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q159']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q159 . ?q rdf:type ontology:Q191067 }
Russia
action filter_type
action find_reverse
entity Russia
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Russia']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:Russia . ?q rdf:type ontology:article }
[]
article
Q20655465 Q24256466
SYSTEM
EB-11 / Russia, EB-12 / Russia
Q20655465 Q24256466
(c(Q191067),P921,Q159)
action filter_type
action find_reverse
entity Q159
relation P921
type Q191067
[ANSWERS] that administrative territory a main subject of
[{'concept': 'Q191067'}, 'P921', 'Q159']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q159 . ?q rdf:type ontology:Q191067 }
EB-11 / Russia EB-12 / Russia
EB-11 / Russia and EB-12 / Russia that administrative territory a main subject of
EB-11 / Russia EB-12 / Russia
action filter_type
action find_reverse
entity Russia
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Russia']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:Russia . ?q rdf:type ontology:article }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20655465
P1433
Q571
USER
Which book published EB-11 / Russia ?
(Q20655465,P1433,c(Q571))
action filter_type
action find
entity Q20655465
relation P1433
type Q571
['Q20655465', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?v WHERE { resource:Q20655465 property:P1433 ?v . ?v rdf:type ontology:Q571 }
EB-11 / Russia
action filter_type
action find
entity EB-11 / Russia
relation published in
type book
['EB-11 / Russia', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?v WHERE { resource:EB-11_/_Russia property:published_in ?v . ?v rdf:type ontology:book }
[]
book
Q867541
SYSTEM
1911 Encyclopædia Britannica
Q867541
(Q20655465,P1433,c(Q571))
action filter_type
action find
entity Q20655465
relation P1433
type Q571
[ANSWER]
['Q20655465', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?v WHERE { resource:Q20655465 property:P1433 ?v . ?v rdf:type ontology:Q571 }
1911 Encyclopædia Britannica
1911 Encyclopædia Britannica
action filter_type
action find
entity EB-11 / Russia
relation published in
type book
['EB-11 / Russia', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?v WHERE { resource:EB-11_/_Russia property:published_in ?v . ?v rdf:type ontology:book }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20655465
P361
Q571
USER
What is EB-11 / Russia a component of ?
(Q20655465,P361,c(Q571))
action filter_type
action find
entity Q20655465
relation P361
type Q571
['Q20655465', 'P361', {'concept': 'Q571'}]
SELECT DISTINCT ?a WHERE { resource:Q20655465 property:P361 ?a . ?a rdf:type ontology:Q571 }
EB-11 / Russia
action filter_type
action find
entity EB-11 / Russia
relation part of
type book
['EB-11 / Russia', 'part of', {'concept': 'book'}]
SELECT DISTINCT ?a WHERE { resource:EB-11_/_Russia property:part_of ?a . ?a rdf:type ontology:book }
[]
book
Q867541
SYSTEM
1911 Encyclopædia Britannica
Q867541
(Q20655465,P361,c(Q571))
action filter_type
action find
entity Q20655465
relation P361
type Q571
EB-11 / Russia is a component of the [ANSWER]
['Q20655465', 'P361', {'concept': 'Q571'}]
SELECT DISTINCT ?a WHERE { resource:Q20655465 property:P361 ?a . ?a rdf:type ontology:Q571 }
1911 Encyclopædia Britannica
EB-11 / Russia is a component of the 1911 Encyclopædia Britannica
1911 Encyclopædia Britannica
action filter_type
action find
entity EB-11 / Russia
relation part of
type book
['EB-11 / Russia', 'part of', {'concept': 'book'}]
SELECT DISTINCT ?a WHERE { resource:EB-11_/_Russia property:part_of ?a . ?a rdf:type ontology:book }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P629
Q838948 Q571 Q571
USER
How many books are an edition or translation of lesser number of works of art and books than that book ?
(c(Q571),P629,c(Q838948)|c(Q571))
action count
action less
action union
action find_tuple_counts
relation P629
type Q571
type Q838948
action find_tuple_counts
relation P629
type Q571
type Q571
action count
action filter_multi_types
action find
entity Q867541
relation P629
type Q838948
type Q571
[{'concept': 'Q571'}, 'P629', [{'concept': 'Q838948'}, {'concept': 'Q571'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q571 ) } . ?o rdf:type ?w } GROUP BY ?m } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q571 ) } } . resource:Q867541 property:P629 ?u } } }
action count
action less
action union
action find_tuple_counts
relation edition or translation of
type book
type work of art
action find_tuple_counts
relation edition or translation of
type book
type book
action count
action filter_multi_types
action find
entity 1911 Encyclopædia Britannica
relation edition or translation of
type work of art
type book
[{'concept': 'book'}, 'edition or translation of', [{'concept': 'work of art'}, {'concept': 'book'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:book ) } . ?o rdf:type ?w } GROUP BY ?m } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:book ) } } . resource:1911_Encyclopædia_Britannica property:edition_or_translation_of ?u } } }
[]
work of art book book
SYSTEM
0
(c(Q571),P629,c(Q838948)|c(Q571))
action count
action less
action union
action find_tuple_counts
relation P629
type Q571
type Q838948
action find_tuple_counts
relation P629
type Q571
type Q571
action count
action filter_multi_types
action find
entity Q867541
relation P629
type Q838948
type Q571
[ANSWER]
[{'concept': 'Q571'}, 'P629', [{'concept': 'Q838948'}, {'concept': 'Q571'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:Q838948 ) ( ontology:Q571 ) } . ?o rdf:type ?w } GROUP BY ?m } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q571 ) } } . resource:Q867541 property:P629 ?u } } }
0
action count
action less
action union
action find_tuple_counts
relation edition or translation of
type book
type work of art
action find_tuple_counts
relation edition or translation of
type book
type book
action count
action filter_multi_types
action find
entity 1911 Encyclopædia Britannica
relation edition or translation of
type work of art
type book
[{'concept': 'book'}, 'edition or translation of', [{'concept': 'work of art'}, {'concept': 'book'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?q ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?n ) WHERE { VALUES ( ?w ) { ( ontology:work_of_art ) ( ontology:book ) } . ?o rdf:type ?w } GROUP BY ?m } . FILTER ( ?n < ?z ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { ?u rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:book ) } } . resource:1911_Encyclopædia_Britannica property:edition_or_translation_of ?u } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q867541
P407
Q34770
USER
Which language is 1911 Encyclopædia Britannica in ?
(Q867541,P407,c(Q34770))
action filter_type
action find
entity Q867541
relation P407
type Q34770
['Q867541', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q867541 property:P407 ?k . ?k rdf:type ontology:Q34770 }
1911 Encyclopædia Britannica
action filter_type
action find
entity 1911 Encyclopædia Britannica
relation language of work or name
type language
['1911 Encyclopædia Britannica', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:1911_Encyclopædia_Britannica property:language_of_work_or_name ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q867541,P407,c(Q34770))
action filter_type
action find
entity Q867541
relation P407
type Q34770
Which language is 1911 Encyclopædia Britannica in
['Q867541', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q867541 property:P407 ?k . ?k rdf:type ontology:Q34770 }
English
Which language is 1911 Encyclopædia Britannica in
English
action filter_type
action find
entity 1911 Encyclopædia Britannica
relation language of work or name
type language
['1911 Encyclopædia Britannica', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:1911_Encyclopædia_Britannica property:language_of_work_or_name ?k . ?k rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P264
Q2031291
USER
Which release has that language as its record brand ?
(c(Q2031291),P264,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q1860']
SELECT DISTINCT ?i WHERE { ?i property:P264 resource:Q1860 . ?i rdf:type ontology:Q2031291 }
English
action filter_type
action find_reverse
entity English
relation record label
type release
[{'concept': 'release'}, 'record label', 'English']
SELECT DISTINCT ?i WHERE { ?i property:record_label resource:English . ?i rdf:type ontology:release }
[]
release
Q7281317
SYSTEM
Radiosurgery
Q7281317
(c(Q2031291),P264,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P264
type Q2031291
[ANSWER] has that language as its record brand
[{'concept': 'Q2031291'}, 'P264', 'Q1860']
SELECT DISTINCT ?i WHERE { ?i property:P264 resource:Q1860 . ?i rdf:type ontology:Q2031291 }
Radiosurgery
Radiosurgery has that language as its record brand
Radiosurgery
action filter_type
action find_reverse
entity English
relation record label
type release
[{'concept': 'release'}, 'record label', 'English']
SELECT DISTINCT ?i WHERE { ?i property:record_label resource:English . ?i rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q15617994 Q15619164 Q15617994
USER
Which administrative territories come from exactly 1 administrative territories and abstract beings ?
(c(Q15617994),P138,c(Q15617994)|c(Q15619164))
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?j ) WHERE { { ?y property:P138 ?t . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } UNION { ?y property:P138 ?t . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15619164 } } GROUP BY ?y } . FILTER ( ?j = 1 ) }
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?j ) WHERE { { ?y property:named_after ?t . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:named_after ?t . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:abstract_being } } GROUP BY ?y } . FILTER ( ?j = 1 ) }
[]
designation for an administrative territorial entity abstract being designation for an administrative territorial entity
Q79 Q217 Q1093
SYSTEM
Egypt, Republic of Moldova, Limburg
Q1093 Q1101 Q217 Q12761 Q79
(c(Q15617994),P138,c(Q15617994)|c(Q15619164))
action equal
action union
action find_tuple_counts
relation P138
type Q15617994
type Q15617994
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
value 1
[ANSWERS] come from exactly 1 administrative territories and abstract beings
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q15617994'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?j ) WHERE { { ?y property:P138 ?t . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } UNION { ?y property:P138 ?t . ?y rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15619164 } } GROUP BY ?y } . FILTER ( ?j = 1 ) }
Limburg North Brabant Republic of Moldova Seine-Saint-Denis Egypt
Egypt, Republic of Moldova and Limburg come from exactly 1 administrative territories and abstract beings
Egypt Republic of Moldova Limburg
action equal
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?j ) WHERE { { ?y property:named_after ?t . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?y property:named_after ?t . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:abstract_being } } GROUP BY ?y } . FILTER ( ?j = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q159
P921
Q11862829 Q15416
USER
How many academic disciplines or television programs have Russia as their principal topic ?
(c(Q11862829),P921,Q159) (c(Q15416),P921,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P921
type Q11862829
action filter_type
action find_reverse
entity Q159
relation P921
type Q15416
[{'concept': 'Q11862829'}, 'P921', 'Q159'] [{'concept': 'Q15416'}, 'P921', 'Q159']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i rdf:type ontology:Q11862829 . ?i property:P921 resource:Q159 } UNION { ?i property:P921 resource:Q159 . ?i rdf:type ontology:Q15416 } }
Russia
action count
action union
action filter_type
action find_reverse
entity Russia
relation main subject
type academic discipline
action filter_type
action find_reverse
entity Russia
relation main subject
type television program
[{'concept': 'academic discipline'}, 'main subject', 'Russia'] [{'concept': 'television program'}, 'main subject', 'Russia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i rdf:type ontology:academic_discipline . ?i property:main_subject resource:Russia } UNION { ?i property:main_subject resource:Russia . ?i rdf:type ontology:television_program } }
[]
academic discipline television program
SYSTEM
3
Q2487216 Q2038630 Q4589758
(c(Q11862829),P921,Q159) (c(Q15416),P921,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P921
type Q11862829
action filter_type
action find_reverse
entity Q159
relation P921
type Q15416
[ANSWER]
[{'concept': 'Q11862829'}, 'P921', 'Q159'] [{'concept': 'Q15416'}, 'P921', 'Q159']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i rdf:type ontology:Q11862829 . ?i property:P921 resource:Q159 } UNION { ?i property:P921 resource:Q159 . ?i rdf:type ontology:Q15416 } }
Van Moskou tot Moermansk Archaeology of Russia Van Moskou tot Magadan
3
action count
action union
action filter_type
action find_reverse
entity Russia
relation main subject
type academic discipline
action filter_type
action find_reverse
entity Russia
relation main subject
type television program
[{'concept': 'academic discipline'}, 'main subject', 'Russia'] [{'concept': 'television program'}, 'main subject', 'Russia']
SELECT DISTINCT ( COUNT ( ?i ) AS ?x ) WHERE { { ?i rdf:type ontology:academic_discipline . ?i property:main_subject resource:Russia } UNION { ?i property:main_subject resource:Russia . ?i rdf:type ontology:television_program } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?y ) WHERE { ?v property:P530 ?j . ?v rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?o ) WHERE { ?c rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 . ?c property:P530 ?e } GROUP BY ?c } . FILTER ( ?o = ?s ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?y ) WHERE { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?o ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?e } GROUP BY ?c } . FILTER ( ?o = ?s ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?y ) WHERE { ?v property:P530 ?j . ?v rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?v } } . { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?o ) WHERE { ?c rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q15617994 . ?c property:P530 ?e } GROUP BY ?c } . FILTER ( ?o = ?s ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?s ) { SELECT DISTINCT ?v ( COUNT ( ?j ) AS ?y ) WHERE { ?v property:diplomatic_relation ?j . ?v rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?c ( COUNT ( ?e ) AS ?o ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?e } GROUP BY ?c } . FILTER ( ?o = ?s ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q691
P1532
Q502895
USER
Whose people are that political territory ?
(c(Q502895),P1532,Q691)
action filter_type
action find_reverse
entity Q691
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q691']
SELECT DISTINCT ?b WHERE { ?b property:P1532 resource:Q691 . ?b rdf:type ontology:Q502895 }
Papua New Guinea
action filter_type
action find_reverse
entity Papua New Guinea
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Papua New Guinea']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport resource:Papua_New_Guinea . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q691
SYSTEM
Did you mean Papua New Guinea ?
Q1000 Q769 Q691
(c(Q502895),P1532,Q1000) (c(Q502895),P1532,Q769) (c(Q502895),P1532,Q691)
[ANSWER]
[{'concept': 'Q502895'}, 'P1532', 'Q1000'] [{'concept': 'Q502895'}, 'P1532', 'Q769'] [{'concept': 'Q502895'}, 'P1532', 'Q691']
SELECT DISTINCT ?b WHERE { ?b property:P1532 resource:Q691 . ?b rdf:type ontology:Q502895 }
Gabon Grenada Papua New Guinea
Did you mean Papua New Guinea ?
Papua New Guinea
[{'concept': 'common name'}, 'country for sport', 'Gabon'] [{'concept': 'common name'}, 'country for sport', 'Grenada'] [{'concept': 'common name'}, 'country for sport', 'Papua New Guinea']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport resource:Papua_New_Guinea . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P1532,Q691)
[{'concept': 'Q502895'}, 'P1532', 'Q691']
[{'concept': 'common name'}, 'country for sport', 'Papua New Guinea']
[]
Q20902043 Q21858388
SYSTEM
Donna Koniel, Peter Pulu
Q20902043 Q21858388
(c(Q502895),P1532,Q691)
action filter_type
action find_reverse
entity Q691
relation P1532
type Q502895
[ANSWERS] are that political territory
[{'concept': 'Q502895'}, 'P1532', 'Q691']
SELECT DISTINCT ?b WHERE { ?b property:P1532 resource:Q691 . ?b rdf:type ontology:Q502895 }
Donna Koniel Peter Pulu
Donna Koniel and Peter Pulu are that political territory
Donna Koniel Peter Pulu
action filter_type
action find_reverse
entity Papua New Guinea
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Papua New Guinea']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport resource:Papua_New_Guinea . ?b rdf:type ontology:common_name }
[]