Simple Question (Direct)
Simple Question
Q1900728
P1313
Q12737077
USER
Which occupation is fulfilled by Maldà ?
(Q1900728,P1313,c(Q12737077))
action filter_type
action find
entity Q1900728
relation P1313
type Q12737077
['Q1900728', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1900728 property:P1313 ?m . ?m rdf:type ontology:Q12737077 }
Maldà
action filter_type
action find
entity Maldà
relation office held by head of government
type occupation
['Maldà', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Maldà property:office_held_by_head_of_government ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q26696739
SYSTEM
mayor of Maldá
Q26696739
(Q1900728,P1313,c(Q12737077))
action filter_type
action find
entity Q1900728
relation P1313
type Q12737077
Is [ANSWER] is fulfilled by Maldà
['Q1900728', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1900728 property:P1313 ?m . ?m rdf:type ontology:Q12737077 }
mayor of Maldá
Is mayor of Maldá is fulfilled by Maldà
mayor of Maldá
action filter_type
action find
entity Maldà
relation office held by head of government
type occupation
['Maldà', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Maldà property:office_held_by_head_of_government ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1900728
P6
Q502895
USER
Which person is the head of government of that political territory ?
(Q26696739,P6,c(Q502895))
action filter_type
action find
entity Q1900728
relation P6
type Q502895
['Q26696739', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1900728 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Maldà
action filter_type
action find
entity Maldà
relation head of government
type common name
['mayor of Maldá', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Maldà property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q14087808
SYSTEM
Sebastià Mata Molinero
Q14087808
(Q26696739,P6,c(Q502895))
action filter_type
action find
entity Q1900728
relation P6
type Q502895
[ANSWER] is the head of government of that political territory
['Q26696739', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1900728 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Sebastià Mata Molinero
Sebastià Mata Molinero is the head of government of that political territory
Sebastià Mata Molinero
action filter_type
action find
entity Maldà
relation head of government
type common name
['mayor of Maldá', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Maldà property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1900728
P1001
Q12737077
USER
Which occupation has jurisdiction over that political territory ?
(c(Q12737077),P1001,Q14087808)
action filter_type
action find_reverse
entity Q1900728
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q14087808']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q1900728 . ?a rdf:type ontology:Q12737077 }
Maldà
action filter_type
action find_reverse
entity Maldà
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Sebastià Mata Molinero']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Maldà . ?a rdf:type ontology:occupation }
[]
occupation
Q26696739
SYSTEM
mayor of Maldá
Q26696739
(c(Q12737077),P1001,Q14087808)
action filter_type
action find_reverse
entity Q1900728
relation P1001
type Q12737077
The [ANSWER] has jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q14087808']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q1900728 . ?a rdf:type ontology:Q12737077 }
mayor of Maldá
The mayor of Maldá has jurisdiction over that political territory
mayor of Maldá
action filter_type
action find_reverse
entity Maldà
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Sebastià Mata Molinero']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Maldà . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1900728
P20
Q502895
USER
Which person expired at Maldà ?
(c(Q502895),P20,Q1900728)
action filter_type
action find_reverse
entity Q1900728
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q1900728']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q1900728 . ?y rdf:type ontology:Q502895 }
Maldà
action filter_type
action find_reverse
entity Maldà
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Maldà']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Maldà . ?y rdf:type ontology:common_name }
[]
common name
Q2282614
SYSTEM
Ramon Folch I de Cardona
Q2282614
(c(Q502895),P20,Q1900728)
action filter_type
action find_reverse
entity Q1900728
relation P20
type Q502895
[ANSWER] expired at Maldà
[{'concept': 'Q502895'}, 'P20', 'Q1900728']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q1900728 . ?y rdf:type ontology:Q502895 }
Ramon Folch I de Cardona
Ramon Folch I de Cardona expired at Maldà
Ramon Folch I de Cardona
action filter_type
action find_reverse
entity Maldà
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Maldà']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Maldà . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1900728
P17
Q15617994
USER
Which administrative territory is Maldà situated in ?
(Q1900728,P17,c(Q15617994))
action filter_type
action find
entity Q1900728
relation P17
type Q15617994
['Q1900728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1900728 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Maldà
action filter_type
action find
entity Maldà
relation country
type designation for an administrative territorial entity
['Maldà', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Maldà property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1900728,P17,c(Q15617994))
action filter_type
action find
entity Q1900728
relation P17
type Q15617994
Maldà is situated in [ANSWER]
['Q1900728', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q1900728 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Spain
Maldà is situated in Spain
Spain
action filter_type
action find
entity Maldà
relation country
type designation for an administrative territorial entity
['Maldà', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Maldà property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1900728
P47
Q1048835
USER
Which political territories have a shared border with that one ?
(Q29,P47,c(Q1048835))
action filter_type
action find
entity Q1900728
relation P47
type Q1048835
['Q29', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q1900728 property:P47 ?r . ?r rdf:type ontology:Q1048835 }
Maldà
action filter_type
action find
entity Maldà
relation shares border with
type political territorial entity
['Spain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Maldà property:shares_border_with ?r . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1905685 Q372836 Q1905529
SYSTEM
Vallbona de les Monges, Arbeca, Sant Martí de Riucorb
Q1905529 Q1902089 Q1900768 Q988836 Q1905685 Q1900647 Q372836
(Q29,P47,c(Q1048835))
action filter_type
action find
entity Q1900728
relation P47
type Q1048835
[ANSWERS] have a shared border with that one
['Q29', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { resource:Q1900728 property:P47 ?r . ?r rdf:type ontology:Q1048835 }
Sant Martí de Riucorb Belianes Els Omells de na Gaia L'Espluga Calba Vallbona de les Monges Els Omellons Arbeca
Vallbona de les Monges, Arbeca and Sant Martí de Riucorb have a shared border with that one
Vallbona de les Monges Arbeca Sant Martí de Riucorb
action filter_type
action find
entity Maldà
relation shares border with
type political territorial entity
['Spain', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Maldà property:shares_border_with ?r . ?r rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q985600
P47
Q1048835
USER
Do those ones share a border with Vilaplana ?
(Q985600,P47,Q1905685) (Q985600,P47,Q372836) (Q985600,P47,Q1905529)
action is_in
entity prev_answer
action find
entity Q985600
relation P47
['Q985600', 'P47', 'Q1905685'] ['Q985600', 'P47', 'Q372836'] ['Q985600', 'P47', 'Q1905529']
ASK WHERE { resource:Q985600 property:P47 ?t . VALUES ( ?t ) { ( resource:Q1905529 ) ( resource:Q1902089 ) ( resource:Q1900768 ) } }
Vilaplana
action is_in
entity prev_answer
action find
entity Vilaplana
relation shares border with
['Vilaplana', 'shares border with', 'Vallbona de les Monges'] ['Vilaplana', 'shares border with', 'Arbeca'] ['Vilaplana', 'shares border with', 'Sant Martí de Riucorb']
ASK WHERE { resource:Vilaplana property:shares_border_with ?t . VALUES ( ?t ) { ( resource:Sant_Martí_de_Riucorb ) ( resource:Belianes ) ( resource:Els_Omells_de_na_Gaia ) } }
[]
political territorial entity
SYSTEM
NO
(Q985600,P47,Q1905685) (Q985600,P47,Q372836) (Q985600,P47,Q1905529)
action is_in
entity prev_answer
action find
entity Q985600
relation P47
[ANSWER]
['Q985600', 'P47', 'Q1905685'] ['Q985600', 'P47', 'Q372836'] ['Q985600', 'P47', 'Q1905529']
ASK WHERE { resource:Q985600 property:P47 ?t . VALUES ( ?t ) { ( resource:Q1905529 ) ( resource:Q1902089 ) ( resource:Q1900768 ) } }
No
action is_in
entity prev_answer
action find
entity Vilaplana
relation shares border with
['Vilaplana', 'shares border with', 'Vallbona de les Monges'] ['Vilaplana', 'shares border with', 'Arbeca'] ['Vilaplana', 'shares border with', 'Sant Martí de Riucorb']
ASK WHERE { resource:Vilaplana property:shares_border_with ?t . VALUES ( ?t ) { ( resource:Sant_Martí_de_Riucorb ) ( resource:Belianes ) ( resource:Els_Omells_de_na_Gaia ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1905685
P1383
Q486972
USER
Which human settlement belongs to Vallbona de les Monges ?
(Q1905685,P1383,c(Q486972))
action filter_type
action find
entity Q1905685
relation P1383
type Q486972
['Q1905685', 'P1383', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1905685 property:P1383 ?s . ?s rdf:type ontology:Q486972 }
Vallbona de les Monges
action filter_type
action find
entity Vallbona de les Monges
relation contains settlement
type human settlement
['Vallbona de les Monges', 'contains settlement', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Vallbona_de_les_Monges property:contains_settlement ?s . ?s rdf:type ontology:human_settlement }
[]
human settlement
Q11937411
SYSTEM
Montblanquet
Q11937411
(Q1905685,P1383,c(Q486972))
action filter_type
action find
entity Q1905685
relation P1383
type Q486972
[ANSWER] belongs to Vallbona de les Monges
['Q1905685', 'P1383', {'concept': 'Q486972'}]
SELECT DISTINCT ?s WHERE { resource:Q1905685 property:P1383 ?s . ?s rdf:type ontology:Q486972 }
Montblanquet
Montblanquet belongs to Vallbona de les Monges
Montblanquet
action filter_type
action find
entity Vallbona de les Monges
relation contains settlement
type human settlement
['Vallbona de les Monges', 'contains settlement', {'concept': 'human settlement'}]
SELECT DISTINCT ?s WHERE { resource:Vallbona_de_les_Monges property:contains_settlement ?s . ?s rdf:type ontology:human_settlement }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q372836
P19
Q502895
USER
Which people have place of birth as Arbeca ?
(c(Q502895),P19,Q372836)
action filter_type
action find_reverse
entity Q372836
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q372836']
SELECT DISTINCT ?o WHERE { ?o property:P19 resource:Q372836 . ?o rdf:type ontology:Q502895 }
Arbeca
action filter_type
action find_reverse
entity Arbeca
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Arbeca']
SELECT DISTINCT ?o WHERE { ?o property:place_of_birth resource:Arbeca . ?o rdf:type ontology:common_name }
[]
common name
Q11928823 Q11928846 Q3840281
SYSTEM
Josep Mullerat i Soldevila, Josep Pau i Pernau, Luigi de Cardona i Enríquez
Q16943226 Q1690763 Q11928846 Q3767999 Q20876838 Q11928823 Q3840281
(c(Q502895),P19,Q372836)
action filter_type
action find_reverse
entity Q372836
relation P19
type Q502895
[ANSWERS] have place of birth as Arbeca
[{'concept': 'Q502895'}, 'P19', 'Q372836']
SELECT DISTINCT ?o WHERE { ?o property:P19 resource:Q372836 . ?o rdf:type ontology:Q502895 }
Maria Rius Joan March Josep Pau i Pernau Giovanni Raimondo Folch II de Cardona Vidal Vidal i Culleré Josep Mullerat i Soldevila Luigi de Cardona i Enríquez
Josep Mullerat i Soldevila, Josep Pau i Pernau and Luigi de Cardona i Enríquez have place of birth as Arbeca
Josep Mullerat i Soldevila Josep Pau i Pernau Luigi de Cardona i Enríquez
action filter_type
action find_reverse
entity Arbeca
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Arbeca']
SELECT DISTINCT ?o WHERE { ?o property:place_of_birth resource:Arbeca . ?o rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3840281
P39
Q12737077
USER
Which occupation was a position held by that person ?
(Q3840281,P39,c(Q12737077))
action filter_type
action find
entity Q3840281
relation P39
type Q12737077
['Q3840281', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3840281 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Luigi de Cardona i Enríquez
action filter_type
action find
entity Luigi de Cardona i Enríquez
relation position held
type occupation
['Luigi de Cardona i Enríquez', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Luigi_de_Cardona_i_Enríquez property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q11928846
SYSTEM
Did you mean Josep Pau i Pernau ?
Q11928823 Q11928846 Q3840281
(Q11928823,P39,c(Q12737077)) (Q11928846,P39,c(Q12737077)) (Q3840281,P39,c(Q12737077))
[ANSWER]
['Q11928823', 'P39', {'concept': 'Q12737077'}] ['Q11928846', 'P39', {'concept': 'Q12737077'}] ['Q3840281', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3840281 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Josep Mullerat i Soldevila Josep Pau i Pernau Luigi de Cardona i Enríquez
Did you mean Josep Pau i Pernau ?
Josep Pau i Pernau
['Josep Mullerat i Soldevila', 'position held', {'concept': 'occupation'}] ['Josep Pau i Pernau', 'position held', {'concept': 'occupation'}] ['Luigi de Cardona i Enríquez', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Luigi_de_Cardona_i_Enríquez property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Luigi de Cardona i Enríquez. Could you tell me the answer for that?
(Q3840281,P39,c(Q12737077))
Q3840281
['Q3840281', 'P39', {'concept': 'Q12737077'}]
['Luigi de Cardona i Enríquez', 'position held', {'concept': 'occupation'}]
[]
Q16933549
SYSTEM
President of the Generalitat of Catalonia
Q16933549
(Q3840281,P39,c(Q12737077))
action filter_type
action find
entity Q3840281
relation P39
type Q12737077
[ANSWER] was a position held by that person
['Q3840281', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q3840281 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
President of the Generalitat of Catalonia
President of the Generalitat of Catalonia was a position held by that person
President of the Generalitat of Catalonia
action filter_type
action find
entity Luigi de Cardona i Enríquez
relation position held
type occupation
['Luigi de Cardona i Enríquez', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Luigi_de_Cardona_i_Enríquez property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P127
Q1048835 Q811430 Q2235308
USER
Which political territories owned around 1 constructions or ship types ?
(c(Q811430)|c(Q2235308),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
value 1
[[{'concept': 'Q811430'}, {'concept': 'Q2235308'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q811430 ) ( ontology:Q2235308 ) } . ?q rdf:type ?e } GROUP BY ?m } . FILTER ( ?p = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
value 1
[[{'concept': 'construction'}, {'concept': 'ship type'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?m WHERE { VALUES ( ?e ) { ( ontology:construction ) ( ontology:ship_type ) } . ?q rdf:type ?e } GROUP BY ?m } . FILTER ( ?p = 1 ) }
[]
political territorial entity construction ship type
Q20937 Q133083 Q202174
SYSTEM
Gyeonggi Province, Gauteng, Argyll and Bute
Q20937 Q133083 Q202174
(c(Q811430)|c(Q2235308),P127,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q2235308
value 1
[ANSWERS] owned around 1 constructions or ship types
[[{'concept': 'Q811430'}, {'concept': 'Q2235308'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q811430 ) ( ontology:Q2235308 ) } . ?q rdf:type ?e } GROUP BY ?m } . FILTER ( ?p = 1 ) }
Gyeonggi Province Gauteng Argyll and Bute
Gyeonggi Province, Gauteng and Argyll and Bute owned around 1 constructions or ship types
Gyeonggi Province Gauteng Argyll and Bute
action approx
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type ship type
value 1
[[{'concept': 'construction'}, {'concept': 'ship type'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) ?m WHERE { VALUES ( ?e ) { ( ontology:construction ) ( ontology:ship_type ) } . ?q rdf:type ?e } GROUP BY ?m } . FILTER ( ?p = 1 ) }
[]