Simple Question (Direct)
Simple Question
Q1043099
P106
Q12737077
USER
What do Carlos Nejar do for a living ?
(Q1043099,P106,c(Q12737077))
action filter_type
action find
entity Q1043099
relation P106
type Q12737077
['Q1043099', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1043099 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
Carlos Nejar
action filter_type
action find
entity Carlos Nejar
relation occupation
type occupation
['Carlos Nejar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Carlos_Nejar property:occupation ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q49757 Q6625963 Q36180
SYSTEM
poet, novelist, writer
Q49757 Q6625963 Q36180
(Q1043099,P106,c(Q12737077))
action filter_type
action find
entity Q1043099
relation P106
type Q12737077
[ANSWERS] Carlos Nejar do for a living
['Q1043099', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q1043099 property:P106 ?w . ?w rdf:type ontology:Q12737077 }
poet novelist writer
Poet, novelist and writer Carlos Nejar do for a living
poet novelist writer
action filter_type
action find
entity Carlos Nejar
relation occupation
type occupation
['Carlos Nejar', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Carlos_Nejar property:occupation ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1043099
P21
Q290
USER
Which sex does Carlos Nejar have ?
(Q1043099,P21,c(Q290))
action filter_type
action find
entity Q1043099
relation P21
type Q290
['Q1043099', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1043099 property:P21 ?i . ?i rdf:type ontology:Q290 }
Carlos Nejar
action filter_type
action find
entity Carlos Nejar
relation gender
type sex
['Carlos Nejar', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Carlos_Nejar property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1043099,P21,c(Q290))
action filter_type
action find
entity Q1043099
relation P21
type Q290
Carlos Nejar has a [ANSWER]
['Q1043099', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q1043099 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
Carlos Nejar has a male
male
action filter_type
action find
entity Carlos Nejar
relation gender
type sex
['Carlos Nejar', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Carlos_Nejar property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P180
Q3305213
USER
Which painting expressess that sex ?
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P180 resource:Q6581097 . ?s rdf:type ontology:Q3305213 }
male
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?s WHERE { ?s property:depicts resource:male . ?s rdf:type ontology:painting }
[]
painting
Q18713957
SYSTEM
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Q18713957
(c(Q3305213),P180,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P180
type Q3305213
[ANSWER] expressess that sex
[{'concept': 'Q3305213'}, 'P180', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P180 resource:Q6581097 . ?s rdf:type ontology:Q3305213 }
Raja Surendra Vikram Shah at the age of 15 with his prime minister
Raja Surendra Vikram Shah at the age of 15 with his prime minister expressess that sex
Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action find_reverse
entity male
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'male']
SELECT DISTINCT ?s WHERE { ?s property:depicts resource:male . ?s rdf:type ontology:painting }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q49757
P180
Q838948 Q3305213
USER
How many works of art or paintings express poet ?
(c(Q838948),P180,Q49757) (c(Q3305213),P180,Q49757)
action count
action union
action filter_type
action find_reverse
entity Q49757
relation P180
type Q838948
action filter_type
action find_reverse
entity Q49757
relation P180
type Q3305213
[{'concept': 'Q838948'}, 'P180', 'Q49757'] [{'concept': 'Q3305213'}, 'P180', 'Q49757']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } . ?g rdf:type ?x }
poet
action count
action union
action filter_type
action find_reverse
entity poet
relation depicts
type work of art
action filter_type
action find_reverse
entity poet
relation depicts
type painting
[{'concept': 'work of art'}, 'depicts', 'poet'] [{'concept': 'painting'}, 'depicts', 'poet']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:painting ) ( ontology:work_of_art ) } . ?g rdf:type ?x }
[]
work of art painting
SYSTEM
6
Q18822184 Q22034120 Q19257244 Q19345367 Q19061858 Q19204452
(c(Q838948),P180,Q49757) (c(Q3305213),P180,Q49757)
action count
action union
action filter_type
action find_reverse
entity Q49757
relation P180
type Q838948
action filter_type
action find_reverse
entity Q49757
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q838948'}, 'P180', 'Q49757'] [{'concept': 'Q3305213'}, 'P180', 'Q49757']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } . ?g rdf:type ?x }
Arion with His Lyre The Poet Homer Medallion of Philippe Desportes Sapho Sappho
6
action count
action union
action filter_type
action find_reverse
entity poet
relation depicts
type work of art
action filter_type
action find_reverse
entity poet
relation depicts
type painting
[{'concept': 'work of art'}, 'depicts', 'poet'] [{'concept': 'painting'}, 'depicts', 'poet']
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { VALUES ( ?x ) { ( ontology:painting ) ( ontology:work_of_art ) } . ?g rdf:type ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36180
P425
Q1914636
USER
Which activity has writer as thier associated field of occupation ?
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?i WHERE { resource:Q36180 property:P425 ?i . ?i rdf:type ontology:Q1914636 }
writer
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?i WHERE { resource:writer property:field_of_this_occupation ?i . ?i rdf:type ontology:activity }
[]
activity
Q8242
SYSTEM
literature
Q8242
(Q36180,P425,c(Q1914636))
action filter_type
action find
entity Q36180
relation P425
type Q1914636
The [ANSWER] has writer as thier associated field of occupation
['Q36180', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?i WHERE { resource:Q36180 property:P425 ?i . ?i rdf:type ontology:Q1914636 }
literature
The literature has writer as thier associated field of occupation
literature
action filter_type
action find
entity writer
relation field of this occupation
type activity
['writer', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?i WHERE { resource:writer property:field_of_this_occupation ?i . ?i rdf:type ontology:activity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10770615 Q18713957
P17
Q15617994
USER
Which administrative territories do Raja Surendra Vikram Shah at the age of 15 with his prime minister or Hà Toại belong to ?
OR((Q18713957,P17,c(Q15617994)), (Q10770615,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18713957
relation P17
action find
entity Q10770615
relation P17
type Q15617994
{'OR': [['Q18713957', 'P17', {'concept': 'Q15617994'}], ['Q10770615', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Q18713957 ) ( resource:Q10770615 ) } . ?w property:P17 ?s } . ?s rdf:type ontology:Q15617994 }
Hà Toại Raja Surendra Vikram Shah at the age of 15 with his prime minister
action filter_type
action union
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation country
action find
entity Hà Toại
relation country
type designation for an administrative territorial entity
{'OR': [['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hà Toại', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister ) ( resource:Hà_Toại ) } . ?w property:country ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q881
SYSTEM
United States of America, Vietnam
Q30 Q881
OR((Q18713957,P17,c(Q15617994)), (Q10770615,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18713957
relation P17
action find
entity Q10770615
relation P17
type Q15617994
[ANSWERS] Raja Surendra Vikram Shah at the age of 15 with his prime minister or Hà Toại belong to
{'OR': [['Q18713957', 'P17', {'concept': 'Q15617994'}], ['Q10770615', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Q18713957 ) ( resource:Q10770615 ) } . ?w property:P17 ?s } . ?s rdf:type ontology:Q15617994 }
United States of America Vietnam
United States of America and Vietnam Raja Surendra Vikram Shah at the age of 15 with his prime minister or Hà Toại belong to
United States of America Vietnam
action filter_type
action union
action find
entity Raja Surendra Vikram Shah at the age of 15 with his prime minister
relation country
action find
entity Hà Toại
relation country
type designation for an administrative territorial entity
{'OR': [['Raja Surendra Vikram Shah at the age of 15 with his prime minister', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hà Toại', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?w ) { ( resource:Raja_Surendra_Vikram_Shah_at_the_age_of_15_with_his_prime_minister ) ( resource:Hà_Toại ) } . ?w property:country ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q881
P1001
Q1292279
USER
Which political borders preside the jurisdiction over that administrative territory ?
(c(Q1292279),P1001,Q881)
action filter_type
action find_reverse
entity Q881
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q881']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1292279 . ?f property:P1001 resource:Q881 }
Vietnam
action filter_type
action find_reverse
entity Vietnam
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Vietnam']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_border . ?f property:applies_to_jurisdiction resource:Vietnam }
[]
political border
Clarification for simple ques.
Q30
SYSTEM
Did you mean United States of America ?
Q30 Q881
(c(Q1292279),P1001,Q30) (c(Q1292279),P1001,Q881)
[ANSWER]
[{'concept': 'Q1292279'}, 'P1001', 'Q30'] [{'concept': 'Q1292279'}, 'P1001', 'Q881']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1292279 . ?f property:P1001 resource:Q881 }
United States of America Vietnam
Did you mean United States of America ?
United States of America
[{'concept': 'political border'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Vietnam']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_border . ?f property:applies_to_jurisdiction resource:Vietnam }
[]
Simple Question (Coreferenced)
USER
No, I meant Vietnam. Could you tell me the answer for that?
(c(Q1292279),P1001,Q881)
Q881
[{'concept': 'Q1292279'}, 'P1001', 'Q881']
[{'concept': 'political border'}, 'applies to jurisdiction', 'Vietnam']
[]
Q3089036 Q3088988 Q17009319
SYSTEM
Cambodia–Vietnam border, China–Vietnam border, Malaysia–Vietnam border
Q3089036 Q3088988 Q17009319 Q17351836 Q3089114 Q15921319
(c(Q1292279),P1001,Q881)
action filter_type
action find_reverse
entity Q881
relation P1001
type Q1292279
[ANSWERS] preside the jurisdiction over that administrative territory
[{'concept': 'Q1292279'}, 'P1001', 'Q881']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1292279 . ?f property:P1001 resource:Q881 }
Cambodia–Vietnam border China–Vietnam border Malaysia–Vietnam border Thailand–Vietnam border Laos–Vietnam border Indonesia–Vietnam border
Cambodia–Vietnam border, China–Vietnam border and Malaysia–Vietnam border preside the jurisdiction over that administrative territory
Cambodia–Vietnam border China–Vietnam border Malaysia–Vietnam border
action filter_type
action find_reverse
entity Vietnam
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Vietnam']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_border . ?f property:applies_to_jurisdiction resource:Vietnam }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3089036 Q3088988 Q17009319
P1001
Q15617994
USER
Which administrative territories apply to jurisdiction of Cambodia–Vietnam border, China–Vietnam border and Malaysia–Vietnam border ?
(Q3089036,P1001,c(Q15617994)) (Q3088988,P1001,c(Q15617994)) (Q17009319,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q3089036
relation P1001
type Q15617994
action filter_type
action find
entity Q3088988
relation P1001
type Q15617994
action filter_type
action find
entity Q17009319
relation P1001
type Q15617994
['Q3089036', 'P1001', {'concept': 'Q15617994'}] ['Q3088988', 'P1001', {'concept': 'Q15617994'}] ['Q17009319', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { resource:Q3089036 property:P1001 ?z . ?z rdf:type ontology:Q15617994 } UNION { resource:Q3088988 property:P1001 ?z . ?z rdf:type ontology:Q15617994 } }
Cambodia–Vietnam border China–Vietnam border Malaysia–Vietnam border
action union
action filter_type
action find
entity Cambodia–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity China–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity Malaysia–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
['Cambodia–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['China–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Malaysia–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Cambodia–Vietnam_border property:applies_to_jurisdiction ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:China–Vietnam_border property:applies_to_jurisdiction ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q148 Q833 Q881
SYSTEM
People's Republic of China, Malaysia, Vietnam
Q424 Q881 Q148 Q881 Q833 Q881
(Q3089036,P1001,c(Q15617994)) (Q3088988,P1001,c(Q15617994)) (Q17009319,P1001,c(Q15617994))
action union
action filter_type
action find
entity Q3089036
relation P1001
type Q15617994
action filter_type
action find
entity Q3088988
relation P1001
type Q15617994
action filter_type
action find
entity Q17009319
relation P1001
type Q15617994
[ANSWERS] apply to jurisdiction of Cambodia–Vietnam border, China–Vietnam border and Malaysia–Vietnam border
['Q3089036', 'P1001', {'concept': 'Q15617994'}] ['Q3088988', 'P1001', {'concept': 'Q15617994'}] ['Q17009319', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { resource:Q3089036 property:P1001 ?z . ?z rdf:type ontology:Q15617994 } UNION { resource:Q3088988 property:P1001 ?z . ?z rdf:type ontology:Q15617994 } }
Cambodia Vietnam People's Republic of China Vietnam Malaysia Vietnam
People's Republic of China, Malaysia and Vietnam apply to jurisdiction of Cambodia–Vietnam border, China–Vietnam border and Malaysia–Vietnam border
People's Republic of China Malaysia Vietnam
action union
action filter_type
action find
entity Cambodia–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity China–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
action filter_type
action find
entity Malaysia–Vietnam border
relation applies to jurisdiction
type designation for an administrative territorial entity
['Cambodia–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['China–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Malaysia–Vietnam border', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { resource:Cambodia–Vietnam_border property:applies_to_jurisdiction ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:China–Vietnam_border property:applies_to_jurisdiction ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q148 Q833 Q881
P163
Q14660
USER
Which flags are associated with People's Republic of China, Malaysia and Vietnam ?
(Q148,P163,c(Q14660)) (Q833,P163,c(Q14660)) (Q881,P163,c(Q14660))
action union
action filter_type
action find
entity Q148
relation P163
type Q14660
action filter_type
action find
entity Q833
relation P163
type Q14660
action filter_type
action find
entity Q881
relation P163
type Q14660
['Q148', 'P163', {'concept': 'Q14660'}] ['Q833', 'P163', {'concept': 'Q14660'}] ['Q881', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?k WHERE { { resource:Q148 property:P163 ?k . ?k rdf:type ontology:Q14660 } UNION { ?k rdf:type ontology:Q14660 . resource:Q833 property:P163 ?k } }
People's Republic of China Malaysia Vietnam
action union
action filter_type
action find
entity People's Republic of China
relation flag
type flag
action filter_type
action find
entity Malaysia
relation flag
type flag
action filter_type
action find
entity Vietnam
relation flag
type flag
["People's Republic of China", 'flag', {'concept': 'flag'}] ['Malaysia', 'flag', {'concept': 'flag'}] ['Vietnam', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?k WHERE { { resource:People's_Republic_of_China property:flag ?k . ?k rdf:type ontology:flag } UNION { ?k rdf:type ontology:flag . resource:Malaysia property:flag ?k } }
[]
flag
Q131147 Q168935 Q131204
SYSTEM
Flag of the People's Republic of China, Flag of Malaysia, Flag of Vietnam
Q131147 Q168935 Q131204
(Q148,P163,c(Q14660)) (Q833,P163,c(Q14660)) (Q881,P163,c(Q14660))
action union
action filter_type
action find
entity Q148
relation P163
type Q14660
action filter_type
action find
entity Q833
relation P163
type Q14660
action filter_type
action find
entity Q881
relation P163
type Q14660
[ANSWERS] are associated with People's Republic of China, Malaysia and Vietnam
['Q148', 'P163', {'concept': 'Q14660'}] ['Q833', 'P163', {'concept': 'Q14660'}] ['Q881', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?k WHERE { { resource:Q148 property:P163 ?k . ?k rdf:type ontology:Q14660 } UNION { ?k rdf:type ontology:Q14660 . resource:Q833 property:P163 ?k } }
Flag of the People's Republic of China Flag of Malaysia Flag of Vietnam
Flag of the People's Republic of China, Flag of Malaysia and Flag of Vietnam are associated with People's Republic of China, Malaysia and Vietnam
Flag of the People's Republic of China Flag of Malaysia Flag of Vietnam
action union
action filter_type
action find
entity People's Republic of China
relation flag
type flag
action filter_type
action find
entity Malaysia
relation flag
type flag
action filter_type
action find
entity Vietnam
relation flag
type flag
["People's Republic of China", 'flag', {'concept': 'flag'}] ['Malaysia', 'flag', {'concept': 'flag'}] ['Vietnam', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?k WHERE { { resource:People's_Republic_of_China property:flag ?k . ?k rdf:type ontology:flag } UNION { ?k rdf:type ontology:flag . resource:Malaysia property:flag ?k } }
[]