Simple Question (Direct)
Simple Question
Q875540
P39
Q12737077
USER
What was the position for which Henry Fayat was appointed ?
(Q875540,P39,c(Q12737077))
action filter_type
action find
entity Q875540
relation P39
type Q12737077
['Q875540', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q875540 property:P39 ?v }
Henry Fayat
action filter_type
action find
entity Henry Fayat
relation position held
type occupation
['Henry Fayat', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Henry_Fayat property:position_held ?v }
[]
occupation
Q15705021
SYSTEM
member of the Chamber of Representatives of Belgium
Q15705021
(Q875540,P39,c(Q12737077))
action filter_type
action find
entity Q875540
relation P39
type Q12737077
The [ANSWER]
['Q875540', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q875540 property:P39 ?v }
member of the Chamber of Representatives of Belgium
The member of the Chamber of Representatives of Belgium
member of the Chamber of Representatives of Belgium
action filter_type
action find
entity Henry Fayat
relation position held
type occupation
['Henry Fayat', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Henry_Fayat property:position_held ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15705021
P361
Q2145277
USER
Which House of Representatives is that occupation a component of ?
(Q15705021,P361,c(Q2145277))
action filter_type
action find
entity Q15705021
relation P361
type Q2145277
['Q15705021', 'P361', {'concept': 'Q2145277'}]
SELECT DISTINCT ?a WHERE { resource:Q15705021 property:P361 ?a . ?a rdf:type ontology:Q2145277 }
member of the Chamber of Representatives of Belgium
action filter_type
action find
entity member of the Chamber of Representatives of Belgium
relation part of
type House of Representatives
['member of the Chamber of Representatives of Belgium', 'part of', {'concept': 'House of Representatives'}]
SELECT DISTINCT ?a WHERE { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:part_of ?a . ?a rdf:type ontology:House_of_Representatives }
[]
House of Representatives
Q1347545
SYSTEM
Chamber of Representatives
Q1347545
(Q15705021,P361,c(Q2145277))
action filter_type
action find
entity Q15705021
relation P361
type Q2145277
[ANSWER] is that occupation a component of
['Q15705021', 'P361', {'concept': 'Q2145277'}]
SELECT DISTINCT ?a WHERE { resource:Q15705021 property:P361 ?a . ?a rdf:type ontology:Q2145277 }
Chamber of Representatives
Chamber of Representatives is that occupation a component of
Chamber of Representatives
action filter_type
action find
entity member of the Chamber of Representatives of Belgium
relation part of
type House of Representatives
['member of the Chamber of Representatives of Belgium', 'part of', {'concept': 'House of Representatives'}]
SELECT DISTINCT ?a WHERE { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:part_of ?a . ?a rdf:type ontology:House_of_Representatives }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15705021
P1001
Q15617994
USER
Which administrative territory belongs to jurisdiction of that occupation ?
(Q1347545,P1001,c(Q15617994))
action filter_type
action find
entity Q15705021
relation P1001
type Q15617994
['Q1347545', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q15705021 property:P1001 ?e . ?e rdf:type ontology:Q15617994 }
member of the Chamber of Representatives of Belgium
action filter_type
action find
entity member of the Chamber of Representatives of Belgium
relation applies to jurisdiction
type designation for an administrative territorial entity
['Chamber of Representatives', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:applies_to_jurisdiction ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q1347545,P1001,c(Q15617994))
action filter_type
action find
entity Q15705021
relation P1001
type Q15617994
Are [ANSWER] belongs to jurisdiction of that occupation
['Q1347545', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q15705021 property:P1001 ?e . ?e rdf:type ontology:Q15617994 }
Belgium
Are Belgium belongs to jurisdiction of that occupation
Belgium
action filter_type
action find
entity member of the Chamber of Representatives of Belgium
relation applies to jurisdiction
type designation for an administrative territorial entity
['Chamber of Representatives', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:applies_to_jurisdiction ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q408
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic relations with around the same number of administrative territories as Australia ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q408 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?l ) WHERE { ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?r property:P530 ?y } GROUP BY ?r } }
Australia
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Australia property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?l ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?y } GROUP BY ?r } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Q408 property:P530 ?u . ?u rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?l ) WHERE { ?r rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 . ?r property:P530 ?y } GROUP BY ?r } }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { resource:Australia property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?s ) . { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?l ) WHERE { ?r rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?y } GROUP BY ?r } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q781
P530
Q15617994 Q1048835
USER
And what about Antigua and Barbuda?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?v ) WHERE { ?h rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?h property:P530 ?k } GROUP BY ?h } . FILTER ( ?v = ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?c } } }
Antigua and Barbuda
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?v ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?k } GROUP BY ?h } . FILTER ( ?v = ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?c } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?v ) WHERE { ?h rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 . ?h property:P530 ?k } GROUP BY ?h } . FILTER ( ?v = ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?c } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?v ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:diplomatic_relation ?k } GROUP BY ?h } . FILTER ( ?v = ?u ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { ?c rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?c } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5286592 Q15705021
P17
Q15617994
USER
Which administrative territories are member of the Chamber of Representatives of Belgium or Dobiecin, Gmina Mogielnica a part of ?
OR((Q15705021,P17,c(Q15617994)), (Q5286592,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15705021
relation P17
action find
entity Q5286592
relation P17
type Q15617994
{'OR': [['Q15705021', 'P17', {'concept': 'Q15617994'}], ['Q5286592', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q15705021 property:P17 ?y } UNION { resource:Q5286592 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Dobiecin, Gmina Mogielnica member of the Chamber of Representatives of Belgium
action filter_type
action union
action find
entity member of the Chamber of Representatives of Belgium
relation country
action find
entity Dobiecin, Gmina Mogielnica
relation country
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Representatives of Belgium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dobiecin, Gmina Mogielnica', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:country ?y } UNION { resource:Dobiecin,_Gmina_Mogielnica property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31 Q36
SYSTEM
Belgium, Poland
Q31 Q36
OR((Q15705021,P17,c(Q15617994)), (Q5286592,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15705021
relation P17
action find
entity Q5286592
relation P17
type Q15617994
[ANSWERS] are member of the Chamber of Representatives of Belgium or Dobiecin, Gmina Mogielnica a part of
{'OR': [['Q15705021', 'P17', {'concept': 'Q15617994'}], ['Q5286592', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q15705021 property:P17 ?y } UNION { resource:Q5286592 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Belgium Poland
Belgium and Poland are member of the Chamber of Representatives of Belgium or Dobiecin, Gmina Mogielnica a part of
Belgium Poland
action filter_type
action union
action find
entity member of the Chamber of Representatives of Belgium
relation country
action find
entity Dobiecin, Gmina Mogielnica
relation country
type designation for an administrative territorial entity
{'OR': [['member of the Chamber of Representatives of Belgium', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Dobiecin, Gmina Mogielnica', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:member_of_the_Chamber_of_Representatives_of_Belgium property:country ?y } UNION { resource:Dobiecin,_Gmina_Mogielnica property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1790785
P47
Q1048835
USER
Are Jaguaraçu bordered by those administrative territories ?
(Q1790785,P47,Q31) (Q1790785,P47,Q36)
action is_in
entity prev_answer
action find
entity Q1790785
relation P47
['Q1790785', 'P47', 'Q31'] ['Q1790785', 'P47', 'Q36']
ASK WHERE { VALUES ( ?w ) { ( resource:Q31 ) ( resource:Q36 ) } . resource:Q1790785 property:P47 ?w }
Jaguaraçu
action is_in
entity prev_answer
action find
entity Jaguaraçu
relation shares border with
['Jaguaraçu', 'shares border with', 'Belgium'] ['Jaguaraçu', 'shares border with', 'Poland']
ASK WHERE { VALUES ( ?w ) { ( resource:Belgium ) ( resource:Poland ) } . resource:Jaguaraçu property:shares_border_with ?w }
[]
political territorial entity
SYSTEM
NO
(Q1790785,P47,Q31) (Q1790785,P47,Q36)
action is_in
entity prev_answer
action find
entity Q1790785
relation P47
[ANSWER]
['Q1790785', 'P47', 'Q31'] ['Q1790785', 'P47', 'Q36']
ASK WHERE { VALUES ( ?w ) { ( resource:Q31 ) ( resource:Q36 ) } . resource:Q1790785 property:P47 ?w }
No
action is_in
entity prev_answer
action find
entity Jaguaraçu
relation shares border with
['Jaguaraçu', 'shares border with', 'Belgium'] ['Jaguaraçu', 'shares border with', 'Poland']
ASK WHERE { VALUES ( ?w ) { ( resource:Belgium ) ( resource:Poland ) } . resource:Jaguaraçu property:shares_border_with ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P1313
Q12737077
USER
Which occupation is fulfilled by Poland ?
(Q36,P1313,c(Q12737077))
action filter_type
action find
entity Q36
relation P1313
type Q12737077
['Q36', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q36 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
Poland
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Poland property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q1054799
SYSTEM
President of Poland
Q1054799
(Q36,P1313,c(Q12737077))
action filter_type
action find
entity Q36
relation P1313
type Q12737077
Is [ANSWER] is fulfilled by Poland
['Q36', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q36 property:P1313 ?y . ?y rdf:type ontology:Q12737077 }
President of Poland
Is President of Poland is fulfilled by Poland
President of Poland
action filter_type
action find
entity Poland
relation office held by head of government
type occupation
['Poland', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Poland property:office_held_by_head_of_government ?y . ?y rdf:type ontology:occupation }
[]