Simple Question (Direct)
Simple Question
Q126309
P20
Q13220204
USER
Where did Friedrich Tölke die ?
(Q126309,P20,c(Q13220204))
action filter_type
action find
entity Q126309
relation P20
type Q13220204
['Q126309', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13220204 . resource:Q126309 property:P20 ?t }
Friedrich Tölke
action filter_type
action find
entity Friedrich Tölke
relation place of death
type second-level administrative country subdivision
['Friedrich Tölke', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:second-level_administrative_country_subdivision . resource:Friedrich_Tölke property:place_of_death ?t }
[]
second-level administrative country subdivision
Q189161
SYSTEM
Trogir
Q189161
(Q126309,P20,c(Q13220204))
action filter_type
action find
entity Q126309
relation P20
type Q13220204
Friedrich Tölke died in [ANSWER]
['Q126309', 'P20', {'concept': 'Q13220204'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q13220204 . resource:Q126309 property:P20 ?t }
Trogir
Friedrich Tölke died in Trogir
Trogir
action filter_type
action find
entity Friedrich Tölke
relation place of death
type second-level administrative country subdivision
['Friedrich Tölke', 'place of death', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:second-level_administrative_country_subdivision . resource:Friedrich_Tölke property:place_of_death ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q126309
P106
Q12737077
USER
What are the professions of Friedrich Tölke ?
(Q126309,P106,c(Q12737077))
action filter_type
action find
entity Q126309
relation P106
type Q12737077
['Q126309', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q126309 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Friedrich Tölke
action filter_type
action find
entity Friedrich Tölke
relation occupation
type occupation
['Friedrich Tölke', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Friedrich_Tölke property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q1622272 Q170790
SYSTEM
university teacher, mathematician
Q1622272 Q170790
(Q126309,P106,c(Q12737077))
action filter_type
action find
entity Q126309
relation P106
type Q12737077
The professions of Friedrich Tölke are a [ANSWERS]
['Q126309', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q126309 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
university teacher mathematician
The professions of Friedrich Tölke are a university teacher and mathematician
university teacher mathematician
action filter_type
action find
entity Friedrich Tölke
relation occupation
type occupation
['Friedrich Tölke', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Friedrich_Tölke property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7369701
Q12737077
USER
And what about Ross Westgate?
(Q7369701,P106,c(Q12737077))
action filter_type
action find
entity Q7369701
relation P106
type Q12737077
['Q7369701', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q7369701 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Ross Westgate
action filter_type
action find
entity Ross Westgate
relation occupation
type occupation
['Ross Westgate', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ross_Westgate property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q4182927
SYSTEM
stockbroker
Q4182927
(Q7369701,P106,c(Q12737077))
action filter_type
action find
entity Q7369701
relation P106
type Q12737077
[ANSWER]
['Q7369701', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q7369701 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
stockbroker
stockbroker
action filter_type
action find
entity Ross Westgate
relation occupation
type occupation
['Ross Westgate', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Ross_Westgate property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7369701
P21
Q290
USER
What is the sex of that person ?
(Q4182927,P21,c(Q290))
action filter_type
action find
entity Q7369701
relation P21
type Q290
['Q4182927', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7369701 property:P21 ?f . ?f rdf:type ontology:Q290 }
Ross Westgate
action filter_type
action find
entity Ross Westgate
relation gender
type sex
['stockbroker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ross_Westgate property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4182927,P21,c(Q290))
action filter_type
action find
entity Q7369701
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q4182927', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7369701 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Ross Westgate
relation gender
type sex
['stockbroker', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ross_Westgate property:gender ?f . ?f rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5420718
P180
Q12737077 Q386724 Q1792379
USER
Which occupations are depicted in more number of works and art genres than exotic dancer ?
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q5420718
relation P180
type Q386724
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?g ) WHERE { VALUES ( ?t ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?a rdf:type ?t } GROUP BY ?c } . FILTER ( ?g > ?w ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P180 resource:Q5420718 . { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } } } }
exotic dancer
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity exotic dancer
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?g ) WHERE { VALUES ( ?t ) { ( ontology:work ) ( ontology:art_genre ) } . ?a rdf:type ?t } GROUP BY ?c } . FILTER ( ?g > ?w ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:depicts resource:exotic_dancer . { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:art_genre ) ( ontology:work ) } } } } }
[]
occupation work art genre
Q4991371 Q54128 Q2730732
SYSTEM
soldier, domestic worker, equestrian
Q2079936 Q4991371 Q54128 Q2730732 Q42603
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q5420718
relation P180
type Q386724
type Q1792379
[ANSWERS] are depicted in more number of works and art genres than exotic dancer
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?g ) WHERE { VALUES ( ?t ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } . ?a rdf:type ?t } GROUP BY ?c } . FILTER ( ?g > ?w ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:P180 resource:Q5420718 . { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } } } } }
king of marksmen soldier domestic worker equestrian priest
Soldier, domestic worker and equestrian are depicted in more number of works and art genres than exotic dancer
soldier domestic worker equestrian
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity exotic dancer
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?a ) AS ?g ) WHERE { VALUES ( ?t ) { ( ontology:work ) ( ontology:art_genre ) } . ?a rdf:type ?t } GROUP BY ?c } . FILTER ( ?g > ?w ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { ?q property:depicts resource:exotic_dancer . { ?q rdf:type ?u . VALUES ( ?u ) { ( ontology:art_genre ) ( ontology:work ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1028181
P180
Q12737077 Q386724 Q1792379
USER
And what about painter?
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q386724
type Q1792379
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P180 resource:Q1028181 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q1792379 } } } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?p WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } GROUP BY ?p } }
painter
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:depicts resource:painter . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:art_genre } } } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?p WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:work ) ( ontology:art_genre ) } } GROUP BY ?p } }
[]
occupation work art genre
Q4991371 Q54128 Q2730732
SYSTEM
soldier, domestic worker, equestrian
Q2079936 Q4991371 Q54128 Q2730732 Q42603
(c(Q386724)|c(Q1792379),P180,c(Q12737077))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q386724
type Q1792379
[ANSWERS]
[[{'concept': 'Q386724'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:P180 resource:Q1028181 . { { ?t rdf:type ontology:Q386724 } UNION { ?t rdf:type ontology:Q1792379 } } } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?p WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } GROUP BY ?p } }
king of marksmen soldier domestic worker equestrian priest
soldier domestic worker equestrian
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type work
type art genre
[[{'concept': 'work'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?w ) WHERE { ?t property:depicts resource:painter . { { ?t rdf:type ontology:work } UNION { ?t rdf:type ontology:art_genre } } } } . FILTER ( ?k > ?w ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) ?p WHERE { ?b rdf:type ?i . VALUES ( ?i ) { ( ontology:work ) ( ontology:art_genre ) } } GROUP BY ?p } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P417
Q502895
USER
How many people are the names of person who are the patron saints of that occupation ?
(Q54128,P417,c(Q502895))
['Q54128', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q54128 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
['domestic worker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:domestic_worker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q2730732
SYSTEM
Did you mean equestrian ?
(Q4991371,P417,c(Q502895)) (Q54128,P417,c(Q502895)) (Q2730732,P417,c(Q502895))
[ANSWER]
['Q4991371', 'P417', {'concept': 'Q502895'}] ['Q54128', 'P417', {'concept': 'Q502895'}] ['Q2730732', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q54128 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Did you mean equestrian ?
equestrian
['soldier', 'patron saint', {'concept': 'common name'}] ['domestic worker', 'patron saint', {'concept': 'common name'}] ['equestrian', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:domestic_worker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant domestic worker. Could you tell me the answer for that?
(Q54128,P417,c(Q502895))
Q54128
['Q54128', 'P417', {'concept': 'Q502895'}]
['domestic worker', 'patron saint', {'concept': 'common name'}]
[]
SYSTEM
1
Q744884
(Q54128,P417,c(Q502895))
[ANSWER]
['Q54128', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q54128 property:Q28914 ?z . ?z rdf:type ontology:Q502895 }
Zita
1
['domestic worker', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:domestic_worker property:patron_saint ?z . ?z rdf:type ontology:common_name }
[]