Simple Question (Direct)
Simple Question
Q1242927
P172
Q2472587
USER
Which people does Paulos Lampros have as ethnic origin ?
(Q1242927,P172,c(Q2472587))
action filter_type
action find
entity Q1242927
relation P172
type Q2472587
['Q1242927', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?n WHERE { resource:Q1242927 property:P172 ?n . ?n rdf:type ontology:Q2472587 }
Paulos Lampros
action filter_type
action find
entity Paulos Lampros
relation ethnic group
type people
['Paulos Lampros', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?n WHERE { resource:Paulos_Lampros property:ethnic_group ?n . ?n rdf:type ontology:people }
[]
people
Q539051
SYSTEM
Greeks
Q539051
(Q1242927,P172,c(Q2472587))
action filter_type
action find
entity Q1242927
relation P172
type Q2472587
Paulos Lampros has a [ANSWER] as ethnic origin
['Q1242927', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?n WHERE { resource:Q1242927 property:P172 ?n . ?n rdf:type ontology:Q2472587 }
Greeks
Paulos Lampros has a Greeks as ethnic origin
Greeks
action filter_type
action find
entity Paulos Lampros
relation ethnic group
type people
['Paulos Lampros', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?n WHERE { resource:Paulos_Lampros property:ethnic_group ?n . ?n rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1242927
P106
Q12737077
USER
Which occupations have Paulos Lampros as his/her 's career ?
(Q1242927,P106,c(Q12737077))
action filter_type
action find
entity Q1242927
relation P106
type Q12737077
['Q1242927', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1242927 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Paulos Lampros
action filter_type
action find
entity Paulos Lampros
relation occupation
type occupation
['Paulos Lampros', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Paulos_Lampros property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q201788 Q36180 Q3621491
SYSTEM
historian, writer, archaeologist
Q201788 Q36180 Q3621491
(Q1242927,P106,c(Q12737077))
action filter_type
action find
entity Q1242927
relation P106
type Q12737077
[ANSWERS] have Paulos Lampros as his/her 's career
['Q1242927', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q1242927 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
historian writer archaeologist
Historian, writer and archaeologist have Paulos Lampros as his/her 's career
historian writer archaeologist
action filter_type
action find
entity Paulos Lampros
relation occupation
type occupation
['Paulos Lampros', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Paulos_Lampros property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15008212
Q12737077
USER
And also tell me about Dafydd Bullock?
(Q15008212,P106,c(Q12737077))
action filter_type
action find
entity Q15008212
relation P106
type Q12737077
['Q15008212', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q15008212 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Dafydd Bullock
action filter_type
action find
entity Dafydd Bullock
relation occupation
type occupation
['Dafydd Bullock', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Dafydd_Bullock property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q158852
SYSTEM
conductor
Q158852
(Q15008212,P106,c(Q12737077))
action filter_type
action find
entity Q15008212
relation P106
type Q12737077
[ANSWER]
['Q15008212', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q15008212 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
conductor
conductor
action filter_type
action find
entity Dafydd Bullock
relation occupation
type occupation
['Dafydd Bullock', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Dafydd_Bullock property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3825303 Q1242927
P40
Q502895
USER
Which people are an offsprings of Paulos Lampros or Ponce Giraldo de Cabrera ?
OR((Q1242927,P40,c(Q502895)), (Q3825303,P40,c(Q502895)))
action filter_type
action union
action find
entity Q1242927
relation P40
action find
entity Q3825303
relation P40
type Q502895
{'OR': [['Q1242927', 'P40', {'concept': 'Q502895'}], ['Q3825303', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { ?t property:P40 ?n . VALUES ( ?t ) { ( resource:Q1242927 ) ( resource:Q3825303 ) } } . ?n rdf:type ontology:Q502895 }
Ponce Giraldo de Cabrera Paulos Lampros
action filter_type
action union
action find
entity Paulos Lampros
relation child
action find
entity Ponce Giraldo de Cabrera
relation child
type common name
{'OR': [['Paulos Lampros', 'child', {'concept': 'common name'}], ['Ponce Giraldo de Cabrera', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { ?t property:child ?n . VALUES ( ?t ) { ( resource:Paulos_Lampros ) ( resource:Ponce_Giraldo_de_Cabrera ) } } . ?n rdf:type ontology:common_name }
[]
common name
Q728868 Q15628798 Q5444878 Q5444877 Q1773392
SYSTEM
Spyridon Lambros, Sancha Ponce de Cabrera, Fernando Ponce de Cabrera el Menor, Fernando Ponce de Cabrera el Mayor, Guerau III de Cabrera
Q728868 Q15628798 Q5444878 Q5444877 Q1773392
OR((Q1242927,P40,c(Q502895)), (Q3825303,P40,c(Q502895)))
action filter_type
action union
action find
entity Q1242927
relation P40
action find
entity Q3825303
relation P40
type Q502895
[ANSWERS] are an offsprings of Paulos Lampros or Ponce Giraldo de Cabrera
{'OR': [['Q1242927', 'P40', {'concept': 'Q502895'}], ['Q3825303', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?n WHERE { { ?t property:P40 ?n . VALUES ( ?t ) { ( resource:Q1242927 ) ( resource:Q3825303 ) } } . ?n rdf:type ontology:Q502895 }
Spyridon Lambros Sancha Ponce de Cabrera Fernando Ponce de Cabrera el Menor Fernando Ponce de Cabrera el Mayor Guerau III de Cabrera
Spyridon Lambros, Sancha Ponce de Cabrera, Fernando Ponce de Cabrera el Menor, Fernando Ponce de Cabrera el Mayor and Guerau III de Cabrera are an offsprings of Paulos Lampros or Ponce Giraldo de Cabrera
Spyridon Lambros Sancha Ponce de Cabrera Fernando Ponce de Cabrera el Menor Fernando Ponce de Cabrera el Mayor Guerau III de Cabrera
action filter_type
action union
action find
entity Paulos Lampros
relation child
action find
entity Ponce Giraldo de Cabrera
relation child
type common name
{'OR': [['Paulos Lampros', 'child', {'concept': 'common name'}], ['Ponce Giraldo de Cabrera', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?n WHERE { { ?t property:child ?n . VALUES ( ?t ) { ( resource:Paulos_Lampros ) ( resource:Ponce_Giraldo_de_Cabrera ) } } . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3825303
P21 P22
Q502895
USER
Which people are the offspring of Ponce Giraldo de Cabrera and are a male ?
AND((c(Q502895),P22,Q3825303), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3825303
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3825303'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P21 resource:Q6581097 . ?u property:P22 resource:Q3825303 . ?u rdf:type ontology:Q502895 }
male Ponce Giraldo de Cabrera
action filter_type
action intersection
action find_reverse
entity Ponce Giraldo de Cabrera
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Ponce Giraldo de Cabrera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:gender resource:male . ?u property:father resource:Ponce_Giraldo_de_Cabrera . ?u rdf:type ontology:common_name }
[]
common name
Q5444878 Q5444877 Q1773392
SYSTEM
Fernando Ponce de Cabrera el Menor, Fernando Ponce de Cabrera el Mayor, Guerau III de Cabrera
Q5444878 Q5444877 Q1773392
AND((c(Q502895),P22,Q3825303), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3825303
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are the offspring of Ponce Giraldo de Cabrera and are a male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q3825303'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P21 resource:Q6581097 . ?u property:P22 resource:Q3825303 . ?u rdf:type ontology:Q502895 }
Fernando Ponce de Cabrera el Menor Fernando Ponce de Cabrera el Mayor Guerau III de Cabrera
Fernando Ponce de Cabrera el Menor, Fernando Ponce de Cabrera el Mayor and Guerau III de Cabrera are the offspring of Ponce Giraldo de Cabrera and are a male
Fernando Ponce de Cabrera el Menor Fernando Ponce de Cabrera el Mayor Guerau III de Cabrera
action filter_type
action intersection
action find_reverse
entity Ponce Giraldo de Cabrera
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Ponce Giraldo de Cabrera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:gender resource:male . ?u property:father resource:Ponce_Giraldo_de_Cabrera . ?u rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q3825303
P21 P40
Q502895
USER
Which people have Ponce Giraldo de Cabrera as a child and have the gender as male ?
AND((c(Q502895),P40,Q3825303), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3825303
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q3825303'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q3825303 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
male Ponce Giraldo de Cabrera
action filter_type
action intersection
action find_reverse
entity Ponce Giraldo de Cabrera
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Ponce Giraldo de Cabrera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:child resource:Ponce_Giraldo_de_Cabrera . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
common name
Q11924822
SYSTEM
Guerau II de Cabrera
Q11924822
AND((c(Q502895),P40,Q3825303), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q3825303
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Ponce Giraldo de Cabrera as a child and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q3825303'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?y WHERE { ?y property:P40 resource:Q3825303 . ?y property:P21 resource:Q6581097 . ?y rdf:type ontology:Q502895 }
Guerau II de Cabrera
Guerau II de Cabrera have Ponce Giraldo de Cabrera as a child and have the gender as male
Guerau II de Cabrera
action filter_type
action intersection
action find_reverse
entity Ponce Giraldo de Cabrera
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Ponce Giraldo de Cabrera'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?y WHERE { ?y property:child resource:Ponce_Giraldo_de_Cabrera . ?y property:gender resource:male . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1773392
P27
Q15617994
USER
How many administrative territories are Guerau III de Cabrera an inhabitant of ?
(Q1773392,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1773392
relation P27
type Q15617994
['Q1773392', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q1773392 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Guerau III de Cabrera
action count
action filter_type
action find
entity Guerau III de Cabrera
relation country of citizenship
type designation for an administrative territorial entity
['Guerau III de Cabrera', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Guerau_III_de_Cabrera property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q1773392,P27,c(Q15617994))
action count
action filter_type
action find
entity Q1773392
relation P27
type Q15617994
[ANSWER]
['Q1773392', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Q1773392 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Guerau III de Cabrera
relation country of citizenship
type designation for an administrative territorial entity
['Guerau III de Cabrera', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?j ) WHERE { resource:Guerau_III_de_Cabrera property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1773392
P136
Q1792379
USER
What can be considered as category for that person ?
action filter_type
action find
entity Q1773392
relation P136
type Q1792379
SELECT DISTINCT ?d WHERE { resource:Q1773392 property:P136 ?d . ?d rdf:type ontology:Q1792379 }
Guerau III de Cabrera
action filter_type
action find
entity Guerau III de Cabrera
relation genre
type art genre
SELECT DISTINCT ?d WHERE { resource:Guerau_III_de_Cabrera property:genre ?d . ?d rdf:type ontology:art_genre }
[]
art genre
Q482
SYSTEM
poetry
Q482
action filter_type
action find
entity Q1773392
relation P136
type Q1792379
The [ANSWER] can be considered as category for that person
SELECT DISTINCT ?d WHERE { resource:Q1773392 property:P136 ?d . ?d rdf:type ontology:Q1792379 }
poetry
The poetry can be considered as category for that person
poetry
action filter_type
action find
entity Guerau III de Cabrera
relation genre
type art genre
SELECT DISTINCT ?d WHERE { resource:Guerau_III_de_Cabrera property:genre ?d . ?d rdf:type ontology:art_genre }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q21996304 Q1773392
P136
Q1792379
USER
And also Samlede Digte
AND((Q1773392,P136,c(Q1792379)), (Q21996304,P136,c(Q1792379)))
action filter_type
action intersection
action find
entity Q1773392
relation P136
action find
entity Q21996304
relation P136
type Q1792379
{'AND': [['Q1773392', 'P136', {'concept': 'Q1792379'}], ['Q21996304', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1773392 property:P136 ?m . resource:Q21996304 property:P136 ?m . ?m rdf:type ontology:Q1792379 }
Samlede Digte Guerau III de Cabrera
action filter_type
action intersection
action find
entity Guerau III de Cabrera
relation genre
action find
entity Samlede Digte
relation genre
type art genre
{'AND': [['Guerau III de Cabrera', 'genre', {'concept': 'art genre'}], ['Samlede Digte', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?m WHERE { resource:Guerau_III_de_Cabrera property:genre ?m . resource:Samlede_Digte property:genre ?m . ?m rdf:type ontology:art_genre }
[]
art genre
Q482
SYSTEM
poetry
Q482
AND((Q1773392,P136,c(Q1792379)), (Q21996304,P136,c(Q1792379)))
action filter_type
action intersection
action find
entity Q1773392
relation P136
action find
entity Q21996304
relation P136
type Q1792379
[ANSWER]
{'AND': [['Q1773392', 'P136', {'concept': 'Q1792379'}], ['Q21996304', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?m WHERE { resource:Q1773392 property:P136 ?m . resource:Q21996304 property:P136 ?m . ?m rdf:type ontology:Q1792379 }
poetry
poetry
action filter_type
action intersection
action find
entity Guerau III de Cabrera
relation genre
action find
entity Samlede Digte
relation genre
type art genre
{'AND': [['Guerau III de Cabrera', 'genre', {'concept': 'art genre'}], ['Samlede Digte', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?m WHERE { resource:Guerau_III_de_Cabrera property:genre ?m . resource:Samlede_Digte property:genre ?m . ?m rdf:type ontology:art_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q838948 Q21114848
USER
How many works of art and magazine genres as that art genre as their class ?
(c(Q838948),P136,Q482) (c(Q21114848),P136,Q482) (c(Q838948),P136,Q482) (c(Q21114848),P136,Q482)
action count
action union
action filter_type
action find_reverse
entity Q482
relation P136
type Q838948
action filter_type
action find_reverse
entity Q482
relation P136
type Q21114848
[{'concept': 'Q838948'}, 'P136', 'Q482'] [{'concept': 'Q21114848'}, 'P136', 'Q482'] [{'concept': 'Q838948'}, 'P136', 'Q482'] [{'concept': 'Q21114848'}, 'P136', 'Q482']
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q21114848 ) } }
action count
action union
action filter_type
action find_reverse
entity poetry
relation genre
type work of art
action filter_type
action find_reverse
entity poetry
relation genre
type magazine genre
[{'concept': 'work of art'}, 'genre', 'poetry'] [{'concept': 'magazine genre'}, 'genre', 'poetry'] [{'concept': 'work of art'}, 'genre', 'poetry'] [{'concept': 'magazine genre'}, 'genre', 'poetry']
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:magazine_genre ) } }
[]
work of art magazine genre
SYSTEM
4 works of art and 2 magazine genres
Q3005454 Q5492839 Q17086080 Q290051 Q9097947 Q7566980
(c(Q838948),P136,Q482) (c(Q21114848),P136,Q482) (c(Q838948),P136,Q482) (c(Q21114848),P136,Q482)
action count
action union
action filter_type
action find_reverse
entity Q482
relation P136
type Q838948
action filter_type
action find_reverse
entity Q482
relation P136
type Q21114848
[ANSWER]
[{'concept': 'Q838948'}, 'P136', 'Q482'] [{'concept': 'Q21114848'}, 'P136', 'Q482'] [{'concept': 'Q838948'}, 'P136', 'Q482'] [{'concept': 'Q21114848'}, 'P136', 'Q482']
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:Q838948 ) ( ontology:Q21114848 ) } }
Winter Days The Road to Mecca Global Poetry The Siege of Numantia Zurgai South Dakota Review
4 works of art and 2 magazine genres
action count
action union
action filter_type
action find_reverse
entity poetry
relation genre
type work of art
action filter_type
action find_reverse
entity poetry
relation genre
type magazine genre
[{'concept': 'work of art'}, 'genre', 'poetry'] [{'concept': 'magazine genre'}, 'genre', 'poetry'] [{'concept': 'work of art'}, 'genre', 'poetry'] [{'concept': 'magazine genre'}, 'genre', 'poetry']
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { ?n rdf:type ?a . VALUES ( ?a ) { ( ontology:work_of_art ) ( ontology:magazine_genre ) } }
[]