Simple Question (Direct)
Simple Question
Q5698296
P19
Q56061
USER
Which administrative territory is the place of birth of Antonio Fernández Grilo ?
(Q5698296,P19,c(Q56061))
action filter_type
action find
entity Q5698296
relation P19
type Q56061
['Q5698296', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q5698296 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Antonio Fernández Grilo
action filter_type
action find
entity Antonio Fernández Grilo
relation place of birth
type administrative territorial entity
['Antonio Fernández Grilo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Antonio_Fernández_Grilo property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5818
SYSTEM
Córdoba
Q5818
(Q5698296,P19,c(Q56061))
action filter_type
action find
entity Q5698296
relation P19
type Q56061
[ANSWER] is the place of birth of Antonio Fernández Grilo
['Q5698296', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q5698296 property:P19 ?v . ?v rdf:type ontology:Q56061 }
Córdoba
Córdoba is the place of birth of Antonio Fernández Grilo
Córdoba
action filter_type
action find
entity Antonio Fernández Grilo
relation place of birth
type administrative territorial entity
['Antonio Fernández Grilo', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Antonio_Fernández_Grilo property:place_of_birth ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5698296
P767
Q1002697
USER
What did Antonio Fernández Grilo contribute to ?
(c(Q1002697),P767,Q5698296)
action filter_type
action find_reverse
entity Q5698296
relation P767
type Q1002697
[{'concept': 'Q1002697'}, 'P767', 'Q5698296']
SELECT DISTINCT ?g WHERE { ?g property:P767 resource:Q5698296 . ?g rdf:type ontology:Q1002697 }
Antonio Fernández Grilo
action filter_type
action find_reverse
entity Antonio Fernández Grilo
relation contributor
type periodical literature
[{'concept': 'periodical literature'}, 'contributor', 'Antonio Fernández Grilo']
SELECT DISTINCT ?g WHERE { ?g property:contributor resource:Antonio_Fernández_Grilo . ?g rdf:type ontology:periodical_literature }
[]
periodical literature
Q21381623
SYSTEM
Gente Vieja
Q21381623
(c(Q1002697),P767,Q5698296)
action filter_type
action find_reverse
entity Q5698296
relation P767
type Q1002697
Antonio Fernández Grilo contributed to [ANSWER]
[{'concept': 'Q1002697'}, 'P767', 'Q5698296']
SELECT DISTINCT ?g WHERE { ?g property:P767 resource:Q5698296 . ?g rdf:type ontology:Q1002697 }
Gente Vieja
Antonio Fernández Grilo contributed to Gente Vieja
Gente Vieja
action filter_type
action find_reverse
entity Antonio Fernández Grilo
relation contributor
type periodical literature
[{'concept': 'periodical literature'}, 'contributor', 'Antonio Fernández Grilo']
SELECT DISTINCT ?g WHERE { ?g property:contributor resource:Antonio_Fernández_Grilo . ?g rdf:type ontology:periodical_literature }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21381623
P112
Q502895
USER
What is the name of the founder of that periodical literature ?
(Q21381623,P112,c(Q502895))
action filter_type
action find
entity Q21381623
relation P112
type Q502895
['Q21381623', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q21381623 property:P112 ?v }
Gente Vieja
action filter_type
action find
entity Gente Vieja
relation founder
type common name
['Gente Vieja', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Gente_Vieja property:founder ?v }
[]
common name
Q21381628
SYSTEM
Juan Valero de Tornos
Q21381628
(Q21381623,P112,c(Q502895))
action filter_type
action find
entity Q21381623
relation P112
type Q502895
The name of the founder of that periodical literature is San [ANSWER]
['Q21381623', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q502895 . resource:Q21381623 property:P112 ?v }
Juan Valero de Tornos
The name of the founder of that periodical literature is San Juan Valero de Tornos
Juan Valero de Tornos
action filter_type
action find
entity Gente Vieja
relation founder
type common name
['Gente Vieja', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:common_name . resource:Gente_Vieja property:founder ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21381623
P495
Q15617994
USER
What is the origin of Gente Vieja ?
(Q21381623,P495,c(Q15617994))
action filter_type
action find
entity Q21381623
relation P495
type Q15617994
['Q21381623', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q21381623 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Gente Vieja
action filter_type
action find
entity Gente Vieja
relation country of origin
type designation for an administrative territorial entity
['Gente Vieja', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Gente_Vieja property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q21381623,P495,c(Q15617994))
action filter_type
action find
entity Q21381623
relation P495
type Q15617994
The origin of Gente Vieja is in [ANSWER]
['Q21381623', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q21381623 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Spain
The origin of Gente Vieja is in Spain
Spain
action filter_type
action find
entity Gente Vieja
relation country of origin
type designation for an administrative territorial entity
['Gente Vieja', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Gente_Vieja property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21979747
Q15617994
USER
And how about Wednesday 04:45?
(Q21979747,P495,c(Q15617994))
action filter_type
action find
entity Q21979747
relation P495
type Q15617994
['Q21979747', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q21979747 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
Wednesday 04:45
action filter_type
action find
entity Wednesday 04:45
relation country of origin
type designation for an administrative territorial entity
['Wednesday 04:45', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Wednesday_04:45 property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801 Q41
SYSTEM
Israel, Greece
Q801 Q41
(Q21979747,P495,c(Q15617994))
action filter_type
action find
entity Q21979747
relation P495
type Q15617994
[ANSWERS]
['Q21979747', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q21979747 property:P495 ?c . ?c rdf:type ontology:Q15617994 }
Israel Greece
Israel Greece
action filter_type
action find
entity Wednesday 04:45
relation country of origin
type designation for an administrative territorial entity
['Wednesday 04:45', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Wednesday_04:45 property:country_of_origin ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q56061 Q1048835
USER
How many administrative territories or political territories have diplomatic relationships with that administrative territory ?
(Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q41,P530,c(Q56061)) (Q41,P530,c(Q1048835))
['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q41', 'P530', {'concept': 'Q56061'}] ['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q2610369 property:P530 ?z } UNION { resource:Q2610369 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Greece property:diplomatic_relation ?z } UNION { resource:Greece property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q41
SYSTEM
Did you mean Greece ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q2610369 property:P530 ?z } UNION { resource:Q2610369 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
Did you mean Greece ?
Greece
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Greece property:diplomatic_relation ?z } UNION { resource:Greece property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Israel. Could you tell me the answer for that?
(Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q41,P530,c(Q56061)) (Q41,P530,c(Q1048835))
Q801
['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q41', 'P530', {'concept': 'Q56061'}] ['Q41', 'P530', {'concept': 'Q1048835'}]
['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
4
Q16 Q408 Q237 Q183
(Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q801,P530,c(Q56061)) (Q801,P530,c(Q1048835)) (Q41,P530,c(Q56061)) (Q41,P530,c(Q1048835))
[ANSWER]
['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q801', 'P530', {'concept': 'Q56061'}] ['Q801', 'P530', {'concept': 'Q1048835'}] ['Q41', 'P530', {'concept': 'Q56061'}] ['Q41', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q234180 property:P530 ?z } UNION { resource:Q234180 property:P530 ?y } UNION { resource:Q2610369 property:P530 ?z } UNION { resource:Q2610369 property:P530 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 }
Canada Australia Vatican City Germany
4
['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Israel', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Greece', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Israel property:diplomatic_relation ?z } UNION { resource:Israel property:diplomatic_relation ?y } UNION { resource:Greece property:diplomatic_relation ?z } UNION { resource:Greece property:diplomatic_relation ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q801 Q15787
P101
Q43229
USER
How many organizations have field of work as Israel or HIV ?
(c(Q43229),P101,Q801) (c(Q43229),P101,Q15787)
action count
action union
action filter_type
action find_reverse
entity Q801
relation P101
type Q43229
action filter_type
action find_reverse
entity Q15787
relation P101
type Q43229
[{'concept': 'Q43229'}, 'P101', 'Q801'] [{'concept': 'Q43229'}, 'P101', 'Q15787']
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { VALUES ( ?r ) { ( resource:Q801 ) ( resource:Q15787 ) } . ?f property:P101 ?r }
Israel HIV
action count
action union
action filter_type
action find_reverse
entity Israel
relation field of work
type organization
action filter_type
action find_reverse
entity HIV
relation field of work
type organization
[{'concept': 'organization'}, 'field of work', 'Israel'] [{'concept': 'organization'}, 'field of work', 'HIV']
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { VALUES ( ?r ) { ( resource:Israel ) ( resource:HIV ) } . ?f property:field_of_work ?r }
[]
organization
SYSTEM
2
Q17275959 Q17182491
(c(Q43229),P101,Q801) (c(Q43229),P101,Q15787)
action count
action union
action filter_type
action find_reverse
entity Q801
relation P101
type Q43229
action filter_type
action find_reverse
entity Q15787
relation P101
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P101', 'Q801'] [{'concept': 'Q43229'}, 'P101', 'Q15787']
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { VALUES ( ?r ) { ( resource:Q801 ) ( resource:Q15787 ) } . ?f property:P101 ?r }
Cascade AIDS Project AIDS Foundation Houston
2
action count
action union
action filter_type
action find_reverse
entity Israel
relation field of work
type organization
action filter_type
action find_reverse
entity HIV
relation field of work
type organization
[{'concept': 'organization'}, 'field of work', 'Israel'] [{'concept': 'organization'}, 'field of work', 'HIV']
SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { VALUES ( ?r ) { ( resource:Israel ) ( resource:HIV ) } . ?f property:field_of_work ?r }
[]