Simple Question (Direct)
Simple Question
Q5700120
P1412
Q34770
USER
Which language is Antonio Zamora capable of writing ?
(Q5700120,P1412,c(Q34770))
action filter_type
action find
entity Q5700120
relation P1412
type Q34770
['Q5700120', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q5700120 property:P1412 ?h }
Antonio Zamora
action filter_type
action find
entity Antonio Zamora
relation languages spoken, written or signed
type language
['Antonio Zamora', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Antonio_Zamora property:languages_spoken,_written_or_signed ?h }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q5700120,P1412,c(Q34770))
action filter_type
action find
entity Q5700120
relation P1412
type Q34770
[ANSWER] is Antonio Zamora capable of writing
['Q5700120', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q34770 . resource:Q5700120 property:P1412 ?h }
Spanish
Spanish is Antonio Zamora capable of writing
Spanish
action filter_type
action find
entity Antonio Zamora
relation languages spoken, written or signed
type language
['Antonio Zamora', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:language . resource:Antonio_Zamora property:languages_spoken,_written_or_signed ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5700120
P106
Q12737077
USER
Which occupations have Antonio Zamora as his/her 's career ?
(Q5700120,P106,c(Q12737077))
action filter_type
action find
entity Q5700120
relation P106
type Q12737077
['Q5700120', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5700120 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Antonio Zamora
action filter_type
action find
entity Antonio Zamora
relation occupation
type occupation
['Antonio Zamora', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Antonio_Zamora property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q1930187 Q82955 Q43845
SYSTEM
journalist, politician, businessperson
Q1930187 Q82955 Q43845
(Q5700120,P106,c(Q12737077))
action filter_type
action find
entity Q5700120
relation P106
type Q12737077
[ANSWERS] have Antonio Zamora as his/her 's career
['Q5700120', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q5700120 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
journalist politician businessperson
Journalist, politician and businessperson have Antonio Zamora as his/her 's career
journalist politician businessperson
action filter_type
action find
entity Antonio Zamora
relation occupation
type occupation
['Antonio Zamora', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Antonio_Zamora property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5700120
P21
Q290
USER
Which sex does Antonio Zamora have ?
(Q5700120,P21,c(Q290))
action filter_type
action find
entity Q5700120
relation P21
type Q290
['Q5700120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q5700120 property:P21 ?d . ?d rdf:type ontology:Q290 }
Antonio Zamora
action filter_type
action find
entity Antonio Zamora
relation gender
type sex
['Antonio Zamora', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Antonio_Zamora property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5700120,P21,c(Q290))
action filter_type
action find
entity Q5700120
relation P21
type Q290
Antonio Zamora has a [ANSWER]
['Q5700120', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q5700120 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Antonio Zamora has a male
male
action filter_type
action find
entity Antonio Zamora
relation gender
type sex
['Antonio Zamora', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Antonio_Zamora property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5700120
P27
Q15617994
USER
Which administrative territories are that person an inhabitant of ?
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5700120
relation P27
type Q15617994
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q5700120 property:P27 ?o }
Antonio Zamora
action filter_type
action find
entity Antonio Zamora
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antonio_Zamora property:country_of_citizenship ?o }
[]
designation for an administrative territorial entity
Q29 Q414
SYSTEM
Spain, Argentina
Q29 Q414
(Q6581097,P27,c(Q15617994))
action filter_type
action find
entity Q5700120
relation P27
type Q15617994
[ANSWERS] are that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q15617994 . resource:Q5700120 property:P27 ?o }
Spain Argentina
Spain and Argentina are that person an inhabitant of
Spain Argentina
action filter_type
action find
entity Antonio Zamora
relation country of citizenship
type designation for an administrative territorial entity
['male', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Antonio_Zamora property:country_of_citizenship ?o }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q29 Q414
P30
Q2221906
USER
Which geographic locations are those administrative territories a part of ?
(Q29,P30,c(Q2221906)) (Q414,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
['Q29', 'P30', {'concept': 'Q2221906'}] ['Q414', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { ?e property:P30 ?v . ?v rdf:type ontology:Q2221906 . VALUES ( ?e ) { ( resource:Q29 ) ( resource:Q414 ) } }
Spain Argentina
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Spain', 'continent', {'concept': 'geographic location'}] ['Argentina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { ?e property:continent ?v . ?v rdf:type ontology:geographic_location . VALUES ( ?e ) { ( resource:Spain ) ( resource:Argentina ) } }
[]
geographic location
Q46 Q15 Q18
SYSTEM
Europe, Africa, South America
Q46 Q15 Q18
(Q29,P30,c(Q2221906)) (Q414,P30,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P30
type Q2221906
The [ANSWERS] are those administrative territories a part of
['Q29', 'P30', {'concept': 'Q2221906'}] ['Q414', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?v WHERE { ?e property:P30 ?v . ?v rdf:type ontology:Q2221906 . VALUES ( ?e ) { ( resource:Q29 ) ( resource:Q414 ) } }
Europe Africa South America
The Europe, Africa and South America are those administrative territories a part of
Europe Africa South America
action filter_type
action find
entity prev_answer
relation continent
type geographic location
['Spain', 'continent', {'concept': 'geographic location'}] ['Argentina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?v WHERE { ?e property:continent ?v . ?v rdf:type ontology:geographic_location . VALUES ( ?e ) { ( resource:Spain ) ( resource:Argentina ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q46 Q15 Q18
P361
Q2221906
USER
Which geographic locations are those ones a part of ?
(Q46,P361,c(Q2221906)) (Q15,P361,c(Q2221906)) (Q18,P361,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P361
type Q2221906
['Q46', 'P361', {'concept': 'Q2221906'}] ['Q15', 'P361', {'concept': 'Q2221906'}] ['Q18', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?f ) { ( resource:Q46 ) ( resource:Q15 ) ( resource:Q18 ) } . ?f property:P361 ?t . ?t rdf:type ontology:Q2221906 }
Europe Africa South America
action filter_type
action find
entity prev_answer
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}] ['Africa', 'part of', {'concept': 'geographic location'}] ['South America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?f ) { ( resource:Europe ) ( resource:Africa ) ( resource:South_America ) } . ?f property:part_of ?t . ?t rdf:type ontology:geographic_location }
[]
geographic location
Q5401 Q2035462 Q828
SYSTEM
Eurasia, Ostfeste, Americas
Q5401 Q2035462 Q828
(Q46,P361,c(Q2221906)) (Q15,P361,c(Q2221906)) (Q18,P361,c(Q2221906))
action filter_type
action find
entity prev_answer
relation P361
type Q2221906
[ANSWERS] are those ones a part of
['Q46', 'P361', {'concept': 'Q2221906'}] ['Q15', 'P361', {'concept': 'Q2221906'}] ['Q18', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?f ) { ( resource:Q46 ) ( resource:Q15 ) ( resource:Q18 ) } . ?f property:P361 ?t . ?t rdf:type ontology:Q2221906 }
Eurasia Ostfeste Americas
Eurasia, Ostfeste and Americas are those ones a part of
Eurasia Ostfeste Americas
action filter_type
action find
entity prev_answer
relation part of
type geographic location
['Europe', 'part of', {'concept': 'geographic location'}] ['Africa', 'part of', {'concept': 'geographic location'}] ['South America', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?f ) { ( resource:Europe ) ( resource:Africa ) ( resource:South_America ) } . ?f property:part_of ?t . ?t rdf:type ontology:geographic_location }
[]
Clarification
Simple Question|Single Entity|Indirect
Q828
P138
Q79529
USER
Which chemical substance has that geographic location as its namesake ?
(c(Q79529),P138,Q828)
action filter_type
action find_reverse
entity Q828
relation P138
type Q79529
[{'concept': 'Q79529'}, 'P138', 'Q828']
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q828 . ?t rdf:type ontology:Q79529 }
Americas
action filter_type
action find_reverse
entity Americas
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'Americas']
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:Americas . ?t rdf:type ontology:chemical_substance }
[]
chemical substance
Clarification for simple ques.
Q5401
SYSTEM
Did you mean Eurasia ?
Q5401 Q2035462 Q828
(c(Q79529),P138,Q5401) (c(Q79529),P138,Q2035462) (c(Q79529),P138,Q828)
[ANSWER]
[{'concept': 'Q79529'}, 'P138', 'Q5401'] [{'concept': 'Q79529'}, 'P138', 'Q2035462'] [{'concept': 'Q79529'}, 'P138', 'Q828']
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q828 . ?t rdf:type ontology:Q79529 }
Eurasia Ostfeste Americas
Did you mean Eurasia ?
Eurasia
[{'concept': 'chemical substance'}, 'named after', 'Eurasia'] [{'concept': 'chemical substance'}, 'named after', 'Ostfeste'] [{'concept': 'chemical substance'}, 'named after', 'Americas']
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:Americas . ?t rdf:type ontology:chemical_substance }
[]
Simple Question (Coreferenced)
USER
No, I meant Americas. Could you tell me the answer for that?
(c(Q79529),P138,Q828)
Q828
[{'concept': 'Q79529'}, 'P138', 'Q828']
[{'concept': 'chemical substance'}, 'named after', 'Americas']
[]
Q1872
SYSTEM
americium
Q1872
(c(Q79529),P138,Q828)
action filter_type
action find_reverse
entity Q828
relation P138
type Q79529
[ANSWER] has that geographic location as its namesake
[{'concept': 'Q79529'}, 'P138', 'Q828']
SELECT DISTINCT ?t WHERE { ?t property:P138 resource:Q828 . ?t rdf:type ontology:Q79529 }
americium
Americium has that geographic location as its namesake
americium
action filter_type
action find_reverse
entity Americas
relation named after
type chemical substance
[{'concept': 'chemical substance'}, 'named after', 'Americas']
SELECT DISTINCT ?t WHERE { ?t property:named_after resource:Americas . ?t rdf:type ontology:chemical_substance }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q16887380 Q107425 Q2221906
USER
Which geographic locations are a component of max number of groups or landscapes ?
(c(Q2221906),P361,c(Q16887380)|c(Q107425))
action argmax
action union
action find_tuple_counts
relation P361
type Q2221906
type Q16887380
action find_tuple_counts
relation P361
type Q2221906
type Q107425
[{'concept': 'Q2221906'}, 'P361', [{'concept': 'Q16887380'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?o WHERE { { ?o property:P361 ?l . ?l rdf:type ontology:Q107425 . ?o rdf:type ontology:Q2221906 } UNION { ?o property:P361 ?l . ?o rdf:type ontology:Q2221906 . ?l rdf:type ontology:Q16887380 } } GROUP BY ?o } } . FILTER ( ?j = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { { ?k property:P361 ?m . ?k rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q107425 } UNION { ?k rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q16887380 . ?k property:P361 ?m } } GROUP BY ?k } }
action argmax
action union
action find_tuple_counts
relation part of
type geographic location
type group
action find_tuple_counts
relation part of
type geographic location
type landscape
[{'concept': 'geographic location'}, 'part of', [{'concept': 'group'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?o WHERE { { ?o property:part_of ?l . ?l rdf:type ontology:landscape . ?o rdf:type ontology:geographic_location } UNION { ?o property:part_of ?l . ?o rdf:type ontology:geographic_location . ?l rdf:type ontology:group } } GROUP BY ?o } } . FILTER ( ?j = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { { ?k property:part_of ?m . ?k rdf:type ontology:geographic_location . ?m rdf:type ontology:landscape } UNION { ?k rdf:type ontology:geographic_location . ?m rdf:type ontology:group . ?k property:part_of ?m } } GROUP BY ?k } }
[]
group landscape geographic location
Q266703 Q5051042 Q4876461
SYSTEM
Salzkammergut, Cat Island, Bear Island
Q5290039 Q2036701 Q3593127 Q266703 Q5051042 Q5313947 Q1130721 Q4868203 Q681861 Q4876461 Q2160991
(c(Q2221906),P361,c(Q16887380)|c(Q107425))
action argmax
action union
action find_tuple_counts
relation P361
type Q2221906
type Q16887380
action find_tuple_counts
relation P361
type Q2221906
type Q107425
[ANSWERS] are a component of max number of groups or landscapes
[{'concept': 'Q2221906'}, 'P361', [{'concept': 'Q16887380'}, {'concept': 'Q107425'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?o WHERE { { ?o property:P361 ?l . ?l rdf:type ontology:Q107425 . ?o rdf:type ontology:Q2221906 } UNION { ?o property:P361 ?l . ?o rdf:type ontology:Q2221906 . ?l rdf:type ontology:Q16887380 } } GROUP BY ?o } } . FILTER ( ?j = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { { ?k property:P361 ?m . ?k rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q107425 } UNION { ?k rdf:type ontology:Q2221906 . ?m rdf:type ontology:Q16887380 . ?k property:P361 ?m } } GROUP BY ?k } }
Domen Butte Santa María la Mayor Madeline Island Salzkammergut Cat Island Dumont Dunes Algodones Dunes Basswood Island Nuestra Señora de Loreto Bear Island Roden Crater
Salzkammergut, Cat Island and Bear Island are a component of max number of groups or landscapes
Salzkammergut Cat Island Bear Island
action argmax
action union
action find_tuple_counts
relation part of
type geographic location
type group
action find_tuple_counts
relation part of
type geographic location
type landscape
[{'concept': 'geographic location'}, 'part of', [{'concept': 'group'}, {'concept': 'landscape'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?t ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) ?o WHERE { { ?o property:part_of ?l . ?l rdf:type ontology:landscape . ?o rdf:type ontology:geographic_location } UNION { ?o property:part_of ?l . ?o rdf:type ontology:geographic_location . ?l rdf:type ontology:group } } GROUP BY ?o } } . FILTER ( ?j = ?t ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?k WHERE { { ?k property:part_of ?m . ?k rdf:type ontology:geographic_location . ?m rdf:type ontology:landscape } UNION { ?k rdf:type ontology:geographic_location . ?m rdf:type ontology:group . ?k property:part_of ?m } } GROUP BY ?k } }
[]