Simple Question (Direct)
Simple Question
Q21467465
P166
Q193622
USER
Which order was José Santos Peralba awarded with ?
(Q21467465,P166,c(Q193622))
action filter_type
action find
entity Q21467465
relation P166
type Q193622
['Q21467465', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?d WHERE { resource:Q21467465 property:P166 ?d . ?d rdf:type ontology:Q193622 }
José Santos Peralba
action filter_type
action find
entity José Santos Peralba
relation award received
type order
['José Santos Peralba', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?d WHERE { resource:José_Santos_Peralba property:award_received ?d . ?d rdf:type ontology:order }
[]
order
Q931502
SYSTEM
Order of Isabella the Catholic‎
Q931502
(Q21467465,P166,c(Q193622))
action filter_type
action find
entity Q21467465
relation P166
type Q193622
José Santos Peralba was awarded the [ANSWER]
['Q21467465', 'P166', {'concept': 'Q193622'}]
SELECT DISTINCT ?d WHERE { resource:Q21467465 property:P166 ?d . ?d rdf:type ontology:Q193622 }
Order of Isabella the Catholic‎
José Santos Peralba was awarded the Order of Isabella the Catholic‎
Order of Isabella the Catholic‎
action filter_type
action find
entity José Santos Peralba
relation award received
type order
['José Santos Peralba', 'award received', {'concept': 'order'}]
SELECT DISTINCT ?d WHERE { resource:José_Santos_Peralba property:award_received ?d . ?d rdf:type ontology:order }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21467465
P410
Q4189293
USER
Which is the title held by José Santos Peralba ?
(Q21467465,P410,c(Q4189293))
action filter_type
action find
entity Q21467465
relation P410
type Q4189293
['Q21467465', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q21467465 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
José Santos Peralba
action filter_type
action find
entity José Santos Peralba
relation military rank
type title
['José Santos Peralba', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:José_Santos_Peralba property:military_rank ?g . ?g rdf:type ontology:title }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q21467465,P410,c(Q4189293))
action filter_type
action find
entity Q21467465
relation P410
type Q4189293
[ANSWER] is the title held by José Santos Peralba
['Q21467465', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?g WHERE { resource:Q21467465 property:P410 ?g . ?g rdf:type ontology:Q4189293 }
general officer
General officer is the title held by José Santos Peralba
general officer
action filter_type
action find
entity José Santos Peralba
relation military rank
type title
['José Santos Peralba', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?g WHERE { resource:José_Santos_Peralba property:military_rank ?g . ?g rdf:type ontology:title }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21467465
P1412
Q34770
USER
Which language is spoken by José Santos Peralba ?
(Q21467465,P1412,c(Q34770))
action filter_type
action find
entity Q21467465
relation P1412
type Q34770
['Q21467465', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q21467465 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
José Santos Peralba
action filter_type
action find
entity José Santos Peralba
relation languages spoken, written or signed
type language
['José Santos Peralba', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:José_Santos_Peralba property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q21467465,P1412,c(Q34770))
action filter_type
action find
entity Q21467465
relation P1412
type Q34770
[ANSWER] is spoken by José Santos Peralba
['Q21467465', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q21467465 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Spanish
Spanish is spoken by José Santos Peralba
Spanish
action filter_type
action find
entity José Santos Peralba
relation languages spoken, written or signed
type language
['José Santos Peralba', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:José_Santos_Peralba property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21467465
P20
Q56061
USER
Where did the demise of José Santos Peralba occur ?
(Q21467465,P20,c(Q56061))
action filter_type
action find
entity Q21467465
relation P20
type Q56061
['Q21467465', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q21467465 property:P20 ?q . ?q rdf:type ontology:Q56061 }
José Santos Peralba
action filter_type
action find
entity José Santos Peralba
relation place of death
type administrative territorial entity
['José Santos Peralba', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:José_Santos_Peralba property:place_of_death ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(Q21467465,P20,c(Q56061))
action filter_type
action find
entity Q21467465
relation P20
type Q56061
The demise of José Santos Peralba occurred in [ANSWER]
['Q21467465', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q21467465 property:P20 ?q . ?q rdf:type ontology:Q56061 }
Madrid
The demise of José Santos Peralba occurred in Madrid
Madrid
action filter_type
action find
entity José Santos Peralba
relation place of death
type administrative territorial entity
['José Santos Peralba', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:José_Santos_Peralba property:place_of_death ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21467465
P19
Q1048835
USER
Which political territory was José Santos Peralba born in ?
(Q21467465,P19,c(Q1048835))
action filter_type
action find
entity Q21467465
relation P19
type Q1048835
['Q21467465', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q21467465 property:P19 ?a . ?a rdf:type ontology:Q1048835 }
José Santos Peralba
action filter_type
action find
entity José Santos Peralba
relation place of birth
type political territorial entity
['José Santos Peralba', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:José_Santos_Peralba property:place_of_birth ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q748867
SYSTEM
Baiona
Q748867
(Q21467465,P19,c(Q1048835))
action filter_type
action find
entity Q21467465
relation P19
type Q1048835
José Santos Peralba was born in [ANSWER]
['Q21467465', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q21467465 property:P19 ?a . ?a rdf:type ontology:Q1048835 }
Baiona
José Santos Peralba was born in Baiona
Baiona
action filter_type
action find
entity José Santos Peralba
relation place of birth
type political territorial entity
['José Santos Peralba', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:José_Santos_Peralba property:place_of_birth ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17417 Q21467465
P47 P27
Q15617994
USER
Which administrative territories are the countries of citizenship of José Santos Peralba or are bordered by Odalengo Grande ?
OR((Q21467465,P27,c(Q15617994)), (Q17417,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q21467465
relation P27
action find
entity Q17417
relation P47
type Q15617994
{'OR': [['Q21467465', 'P27', {'concept': 'Q15617994'}], ['Q17417', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q21467465 property:P27 ?g } UNION { resource:Q17417 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Odalengo Grande José Santos Peralba
action filter_type
action union
action find
entity José Santos Peralba
relation country of citizenship
action find
entity Odalengo Grande
relation shares border with
type designation for an administrative territorial entity
{'OR': [['José Santos Peralba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Odalengo Grande', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:José_Santos_Peralba property:country_of_citizenship ?g } UNION { resource:Odalengo_Grande property:shares_border_with ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q10344 Q17852 Q17346 Q17695 Q17418 Q17697 Q17412 Q29
SYSTEM
Verrua Savoia, Robella, Cerrina Monferrato, Villadeati, Odalengo Piccolo, Villamiroglio, Murisengo, Spain
Q10344 Q17852 Q17346 Q17695 Q17418 Q17697 Q17412 Q29
OR((Q21467465,P27,c(Q15617994)), (Q17417,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q21467465
relation P27
action find
entity Q17417
relation P47
type Q15617994
[ANSWERS] are the countries of citizenship of José Santos Peralba or are bordered by Odalengo Grande
{'OR': [['Q21467465', 'P27', {'concept': 'Q15617994'}], ['Q17417', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q21467465 property:P27 ?g } UNION { resource:Q17417 property:P47 ?g } } . ?g rdf:type ontology:Q15617994 }
Verrua Savoia Robella Cerrina Monferrato Villadeati Odalengo Piccolo Villamiroglio Murisengo Spain
Verrua Savoia, Robella, Cerrina Monferrato, Villadeati, Odalengo Piccolo, Villamiroglio, Murisengo and Spain are the countries of citizenship of José Santos Peralba or are bordered by Odalengo Grande
Verrua Savoia Robella Cerrina Monferrato Villadeati Odalengo Piccolo Villamiroglio Murisengo Spain
action filter_type
action union
action find
entity José Santos Peralba
relation country of citizenship
action find
entity Odalengo Grande
relation shares border with
type designation for an administrative territorial entity
{'OR': [['José Santos Peralba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Odalengo Grande', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:José_Santos_Peralba property:country_of_citizenship ?g } UNION { resource:Odalengo_Grande property:shares_border_with ?g } } . ?g 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 Q2235308 Q838948
USER
How many administrative territories are exactly 3 ship types and works of art a part of ?
(c(Q2235308)|c(Q838948),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
value 3
[[{'concept': 'Q2235308'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?d WHERE { { ?d rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2235308 . ?v property:P17 ?d } UNION { ?v property:P17 ?d . ?d rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 } } GROUP BY ?d } . FILTER ( ?i = 3 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
value 3
[[{'concept': 'ship type'}, {'concept': 'work of art'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?d WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:ship_type . ?v property:country ?d } UNION { ?v property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?d } . FILTER ( ?i = 3 ) }
[]
designation for an administrative territorial entity ship type work of art
SYSTEM
4
Q739 Q232 Q184 Q32
(c(Q2235308)|c(Q838948),P17,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q2235308
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q838948
value 3
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q838948'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?d WHERE { { ?d rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q2235308 . ?v property:P17 ?d } UNION { ?v property:P17 ?d . ?d rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q838948 } } GROUP BY ?d } . FILTER ( ?i = 3 ) }
Colombia Kazakhstan Belarus Luxembourg
4
action count
action equal
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type ship type
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type work of art
value 3
[[{'concept': 'ship type'}, {'concept': 'work of art'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) ?d WHERE { { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:ship_type . ?v property:country ?d } UNION { ?v property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:work_of_art } } GROUP BY ?d } . FILTER ( ?i = 3 ) }
[]