Simple Question (Direct)
Simple Question
Q7529954
P106
Q12737077
USER
Which occupations have Siran Upendra Deraniyagala as his/her 's career ?
(Q7529954,P106,c(Q12737077))
action filter_type
action find
entity Q7529954
relation P106
type Q12737077
['Q7529954', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q7529954 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Siran Upendra Deraniyagala
action filter_type
action find
entity Siran Upendra Deraniyagala
relation occupation
type occupation
['Siran Upendra Deraniyagala', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Siran_Upendra_Deraniyagala property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q4773904 Q3621491
SYSTEM
anthropologist, archaeologist
Q4773904 Q3621491
(Q7529954,P106,c(Q12737077))
action filter_type
action find
entity Q7529954
relation P106
type Q12737077
As [ANSWERS] have Siran Upendra Deraniyagala as his/her 's career
['Q7529954', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q7529954 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
anthropologist archaeologist
As anthropologist and archaeologist have Siran Upendra Deraniyagala as his/her 's career
anthropologist archaeologist
action filter_type
action find
entity Siran Upendra Deraniyagala
relation occupation
type occupation
['Siran Upendra Deraniyagala', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Siran_Upendra_Deraniyagala property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4773904 Q3621491
P425
Q1047113
USER
Who have anthropologist and archaeologist as the associated fields of occupation ?
(Q4773904,P425,c(Q1047113)) (Q3621491,P425,c(Q1047113))
action union
action filter_type
action find
entity Q4773904
relation P425
type Q1047113
action filter_type
action find
entity Q3621491
relation P425
type Q1047113
['Q4773904', 'P425', {'concept': 'Q1047113'}] ['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?e WHERE { ?b property:P425 ?e . VALUES ( ?b ) { ( resource:Q4773904 ) ( resource:Q3621491 ) } }
anthropologist archaeologist
action union
action filter_type
action find
entity anthropologist
relation field of this occupation
type special field
action filter_type
action find
entity archaeologist
relation field of this occupation
type special field
['anthropologist', 'field of this occupation', {'concept': 'special field'}] ['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?e WHERE { ?b property:field_of_this_occupation ?e . VALUES ( ?b ) { ( resource:anthropologist ) ( resource:archaeologist ) } }
[]
special field
Q23404 Q23498
SYSTEM
anthropology, archaeology
Q23404 Q23498
(Q4773904,P425,c(Q1047113)) (Q3621491,P425,c(Q1047113))
action union
action filter_type
action find
entity Q4773904
relation P425
type Q1047113
action filter_type
action find
entity Q3621491
relation P425
type Q1047113
In [ANSWERS] have anthropologist and archaeologist as the associated fields of occupation
['Q4773904', 'P425', {'concept': 'Q1047113'}] ['Q3621491', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?e WHERE { ?b property:P425 ?e . VALUES ( ?b ) { ( resource:Q4773904 ) ( resource:Q3621491 ) } }
anthropology archaeology
In anthropology and archaeology have anthropologist and archaeologist as the associated fields of occupation
anthropology archaeology
action union
action filter_type
action find
entity anthropologist
relation field of this occupation
type special field
action filter_type
action find
entity archaeologist
relation field of this occupation
type special field
['anthropologist', 'field of this occupation', {'concept': 'special field'}] ['archaeologist', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?e WHERE { ?b property:field_of_this_occupation ?e . VALUES ( ?b ) { ( resource:anthropologist ) ( resource:archaeologist ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3621491
P101
Q502895
USER
Which person works in the domain of archaeologist ?
(c(Q502895),P101,Q3621491)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3621491']
SELECT DISTINCT ?g WHERE { ?g property:P101 resource:Q3621491 . ?g rdf:type ontology:Q502895 }
archaeologist
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist']
SELECT DISTINCT ?g WHERE { ?g property:field_of_work resource:archaeologist . ?g rdf:type ontology:common_name }
[]
common name
Q102139
SYSTEM
Margrethe II of Denmark
Q102139
(c(Q502895),P101,Q3621491)
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
[ANSWER] works in the domain of archaeologist
[{'concept': 'Q502895'}, 'P101', 'Q3621491']
SELECT DISTINCT ?g WHERE { ?g property:P101 resource:Q3621491 . ?g rdf:type ontology:Q502895 }
Margrethe II of Denmark
Margrethe II of Denmark works in the domain of archaeologist
Margrethe II of Denmark
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist']
SELECT DISTINCT ?g WHERE { ?g property:field_of_work resource:archaeologist . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3621491
P417
Q502895
USER
What people are the patron saint of that occupation ?
(Q102139,P417,c(Q502895))
action filter_type
action find
entity Q3621491
relation P417
type Q502895
['Q102139', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q3621491 property:P417 ?d }
archaeologist
action filter_type
action find
entity archaeologist
relation patron saint
type common name
['Margrethe II of Denmark', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:archaeologist property:patron_saint ?d }
[]
common name
Q170164 Q44248 Q130997
SYSTEM
Helena of Constantinople, Jerome, Damasus I
Q170164 Q44248 Q130997
(Q102139,P417,c(Q502895))
action filter_type
action find
entity Q3621491
relation P417
type Q502895
[ANSWERS] are the patron saint of that occupation
['Q102139', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q502895 . resource:Q3621491 property:P417 ?d }
Helena of Constantinople Jerome Damasus I
Helena of Constantinople, Jerome and Damasus I are the patron saint of that occupation
Helena of Constantinople Jerome Damasus I
action filter_type
action find
entity archaeologist
relation patron saint
type common name
['Margrethe II of Denmark', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:common_name . resource:archaeologist property:patron_saint ?d }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 1594 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1594
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?y = 1594 ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?k } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1594
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?y = 1594 ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?k } }
[]
musical instrument common name
Q80284 Q46185 Q80019
SYSTEM
viola, bass guitar, double bass
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1594
[ANSWERS] can around 1594 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?y = 1594 ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?j rdf:type ontology:Q502895 } GROUP BY ?k } }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
Viola, bass guitar and double bass can around 1594 people perform with
viola bass guitar double bass
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1594
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?y = 1594 ) . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?y ) WHERE { ?j property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?j rdf:type ontology:common_name } GROUP BY ?k } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q170164 Q176384
P21
Q290
USER
How many sexes do Helena of Constantinople or Shrek belong to ?
(Q170164,P21,c(Q290)) (Q176384,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q170164
relation P21
type Q290
action filter_type
action find
entity Q176384
relation P21
type Q290
['Q170164', 'P21', {'concept': 'Q290'}] ['Q176384', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?c property:P21 ?l . VALUES ( ?c ) { ( resource:Q170164 ) ( resource:Q176384 ) } }
Helena of Constantinople Shrek
action count
action union
action filter_type
action find
entity Helena of Constantinople
relation gender
type sex
action filter_type
action find
entity Shrek
relation gender
type sex
['Helena of Constantinople', 'gender', {'concept': 'sex'}] ['Shrek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?c property:gender ?l . VALUES ( ?c ) { ( resource:Helena_of_Constantinople ) ( resource:Shrek ) } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q170164,P21,c(Q290)) (Q176384,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q170164
relation P21
type Q290
action filter_type
action find
entity Q176384
relation P21
type Q290
[ANSWER]
['Q170164', 'P21', {'concept': 'Q290'}] ['Q176384', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?c property:P21 ?l . VALUES ( ?c ) { ( resource:Q170164 ) ( resource:Q176384 ) } }
male female
2
action count
action union
action filter_type
action find
entity Helena of Constantinople
relation gender
type sex
action filter_type
action find
entity Shrek
relation gender
type sex
['Helena of Constantinople', 'gender', {'concept': 'sex'}] ['Shrek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?y ) WHERE { ?c property:gender ?l . VALUES ( ?c ) { ( resource:Helena_of_Constantinople ) ( resource:Shrek ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q34379 Q838948 Q1792379
USER
How many musical instruments are expressed in around 1 works of art or art genres ?
(c(Q838948)|c(Q1792379),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?y ) WHERE { { ?k property:P180 ?o . ?o rdf:type ontology:Q34379 . ?k rdf:type ontology:Q838948 } UNION { ?k property:P180 ?o . ?k rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q34379 } } GROUP BY ?o } . FILTER ( ?y = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
value 1
[[{'concept': 'work of art'}, {'concept': 'art genre'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?y ) WHERE { { ?k property:depicts ?o . ?o rdf:type ontology:musical_instrument . ?k rdf:type ontology:work_of_art } UNION { ?k property:depicts ?o . ?k rdf:type ontology:art_genre . ?o rdf:type ontology:musical_instrument } } GROUP BY ?o } . FILTER ( ?y = 1 ) }
[]
musical instrument work of art art genre
SYSTEM
19
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q8355 Q11404 Q1798603
(c(Q838948)|c(Q1792379),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q1792379
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?y ) WHERE { { ?k property:P180 ?o . ?o rdf:type ontology:Q34379 . ?k rdf:type ontology:Q838948 } UNION { ?k property:P180 ?o . ?k rdf:type ontology:Q1792379 . ?o rdf:type ontology:Q34379 } } GROUP BY ?o } . FILTER ( ?y = 1 ) }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano Crotales sistrum Handbell Church bell double bass violin drum string instrument
19
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type art genre
value 1
[[{'concept': 'work of art'}, {'concept': 'art genre'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?y ) WHERE { { ?k property:depicts ?o . ?o rdf:type ontology:musical_instrument . ?k rdf:type ontology:work_of_art } UNION { ?k property:depicts ?o . ?k rdf:type ontology:art_genre . ?o rdf:type ontology:musical_instrument } } GROUP BY ?o } . FILTER ( ?y = 1 ) }
[]