Simple Question (Direct)
Simple Question
Q1473183
P21
Q290
USER
Which sex does Péter Ürmös possess ?
(Q1473183,P21,c(Q290))
action filter_type
action find
entity Q1473183
relation P21
type Q290
['Q1473183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q1473183 property:P21 ?k }
Péter Ürmös
action filter_type
action find
entity Péter Ürmös
relation gender
type sex
['Péter Ürmös', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Péter_Ürmös property:gender ?k }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1473183,P21,c(Q290))
action filter_type
action find
entity Q1473183
relation P21
type Q290
Péter Ürmös possesses [ANSWER]
['Q1473183', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q1473183 property:P21 ?k }
male
Péter Ürmös possesses male
male
action filter_type
action find
entity Péter Ürmös
relation gender
type sex
['Péter Ürmös', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Péter_Ürmös property:gender ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1473183
P106
Q12737077
USER
Which occupations are the professions of Péter Ürmös ?
(Q1473183,P106,c(Q12737077))
action filter_type
action find
entity Q1473183
relation P106
type Q12737077
['Q1473183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1473183 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Péter Ürmös
action filter_type
action find
entity Péter Ürmös
relation occupation
type occupation
['Péter Ürmös', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Péter_Ürmös property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q1028181 Q37226
SYSTEM
painter, teacher
Q1028181 Q37226
(Q1473183,P106,c(Q12737077))
action filter_type
action find
entity Q1473183
relation P106
type Q12737077
The professions of Péter Ürmös are the [ANSWERS]
['Q1473183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1473183 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
painter teacher
The professions of Péter Ürmös are the painter and teacher
painter teacher
action filter_type
action find
entity Péter Ürmös
relation occupation
type occupation
['Péter Ürmös', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Péter_Ürmös property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6012435
P106
Q502895
USER
Do Frithiof Niordson have the profession of those occupations ?
(Q6012435,P106,Q1028181) (Q6012435,P106,Q37226)
action is_in
entity prev_answer
action find
entity Q6012435
relation P106
['Q6012435', 'P106', 'Q1028181'] ['Q6012435', 'P106', 'Q37226']
ASK WHERE { resource:Q6012435 property:P106 ?u . VALUES ( ?u ) { ( resource:Q1028181 ) ( resource:Q37226 ) } }
Frithiof Niordson
action is_in
entity prev_answer
action find
entity Frithiof Niordson
relation occupation
['Frithiof Niordson', 'occupation', 'painter'] ['Frithiof Niordson', 'occupation', 'teacher']
ASK WHERE { resource:Frithiof_Niordson property:occupation ?u . VALUES ( ?u ) { ( resource:painter ) ( resource:teacher ) } }
[]
common name
SYSTEM
NO
(Q6012435,P106,Q1028181) (Q6012435,P106,Q37226)
action is_in
entity prev_answer
action find
entity Q6012435
relation P106
[ANSWER]
['Q6012435', 'P106', 'Q1028181'] ['Q6012435', 'P106', 'Q37226']
ASK WHERE { resource:Q6012435 property:P106 ?u . VALUES ( ?u ) { ( resource:Q1028181 ) ( resource:Q37226 ) } }
No
action is_in
entity prev_answer
action find
entity Frithiof Niordson
relation occupation
['Frithiof Niordson', 'occupation', 'painter'] ['Frithiof Niordson', 'occupation', 'teacher']
ASK WHERE { resource:Frithiof_Niordson property:occupation ?u . VALUES ( ?u ) { ( resource:painter ) ( resource:teacher ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6012435
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
action filter_type
action find
entity Q6012435
relation P27
type Q15617994
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q6012435 property:P27 ?d }
Frithiof Niordson
action filter_type
action find
entity Frithiof Niordson
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Frithiof_Niordson property:country_of_citizenship ?d }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
action filter_type
action find
entity Q6012435
relation P27
type Q15617994
[ANSWER] is the native country of that person
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . resource:Q6012435 property:P27 ?d }
Sweden
Sweden is the native country of that person
Sweden
action filter_type
action find
entity Frithiof Niordson
relation country of citizenship
type designation for an administrative territorial entity
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Frithiof_Niordson property:country_of_citizenship ?d }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q34 Q2446785 Q1178241
P6
Q502895
USER
Does that administrative territory have Toussaint Franchi and Davon Jefferson as its administrative leader ?
(Q34,P6,Q2446785) (Q34,P6,Q1178241)
action is_in
entity Q34
action intersection
action find_reverse
entity Q2446785
relation P6
action find_reverse
entity Q1178241
relation P6
['Q34', 'P6', 'Q2446785'] ['Q34', 'P6', 'Q1178241']
ASK WHERE { resource:Q34 property:P6 resource:Q2446785 . resource:Q34 property:P6 resource:Q1178241 }
Sweden Toussaint Franchi Davon Jefferson
action is_in
entity Sweden
action intersection
action find_reverse
entity Toussaint Franchi
relation head of government
action find_reverse
entity Davon Jefferson
relation head of government
['Sweden', 'head of government', 'Toussaint Franchi'] ['Sweden', 'head of government', 'Davon Jefferson']
ASK WHERE { resource:Sweden property:head_of_government resource:Toussaint_Franchi . resource:Sweden property:head_of_government resource:Davon_Jefferson }
[]
common name
SYSTEM
NO
(Q34,P6,Q2446785) (Q34,P6,Q1178241)
action is_in
entity Q34
action intersection
action find_reverse
entity Q2446785
relation P6
action find_reverse
entity Q1178241
relation P6
[ANSWER]
['Q34', 'P6', 'Q2446785'] ['Q34', 'P6', 'Q1178241']
ASK WHERE { resource:Q34 property:P6 resource:Q2446785 . resource:Q34 property:P6 resource:Q1178241 }
No
action is_in
entity Sweden
action intersection
action find_reverse
entity Toussaint Franchi
relation head of government
action find_reverse
entity Davon Jefferson
relation head of government
['Sweden', 'head of government', 'Toussaint Franchi'] ['Sweden', 'head of government', 'Davon Jefferson']
ASK WHERE { resource:Sweden property:head_of_government resource:Toussaint_Franchi . resource:Sweden property:head_of_government resource:Davon_Jefferson }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q842606
P180
Q12737077 Q1792379 Q340169
USER
How many occupations are expressed in more number of art genres or medias than Roman emperor ?
(c(Q1792379)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q842606
relation P180
type Q1792379
type Q340169
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?b WHERE { { ?b rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q1792379 . ?m property:P180 ?b } UNION { ?m property:P180 ?b . ?m rdf:type ontology:Q340169 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P180 resource:Q842606 . { { ?i rdf:type ontology:Q1792379 } UNION { ?i rdf:type ontology:Q340169 } } } } . FILTER ( ?l > ?h ) }
Roman emperor
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity Roman emperor
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?b WHERE { { ?b rdf:type ontology:occupation . ?m rdf:type ontology:art_genre . ?m property:depicts ?b } UNION { ?m property:depicts ?b . ?m rdf:type ontology:media . ?b rdf:type ontology:occupation } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:depicts resource:Roman_emperor . { { ?i rdf:type ontology:art_genre } UNION { ?i rdf:type ontology:media } } } } . FILTER ( ?l > ?h ) }
[]
occupation art genre media
SYSTEM
16
Q177220 Q2995983 Q2079936 Q45199 Q186360 Q733786 Q4991371 Q273108 Q589897 Q20489032 Q2730732 Q5716684 Q18575684 Q639669 Q384593 Q1630100
(c(Q1792379)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q842606
relation P180
type Q1792379
type Q340169
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?b WHERE { { ?b rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q1792379 . ?m property:P180 ?b } UNION { ?m property:P180 ?b . ?m rdf:type ontology:Q340169 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:P180 resource:Q842606 . { { ?i rdf:type ontology:Q1792379 } UNION { ?i rdf:type ontology:Q340169 } } } } . FILTER ( ?l > ?h ) }
singer double-bassist king of marksmen sailor nurse monk soldier condottiero mahout salt pan worker equestrian dancer embroiderer musician police officer art model
16
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity Roman emperor
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) ?b WHERE { { ?b rdf:type ontology:occupation . ?m rdf:type ontology:art_genre . ?m property:depicts ?b } UNION { ?m property:depicts ?b . ?m rdf:type ontology:media . ?b rdf:type ontology:occupation } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?h ) WHERE { ?i property:depicts resource:Roman_emperor . { { ?i rdf:type ontology:art_genre } UNION { ?i rdf:type ontology:media } } } } . FILTER ( ?l > ?h ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q45722
P180
Q12737077 Q1792379 Q340169
USER
And how about cardinal?
(c(Q1792379)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q45722
relation P180
type Q1792379
type Q340169
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) ?p WHERE { ?c rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { { ?j rdf:type ontology:Q1792379 } UNION { ?j rdf:type ontology:Q340169 } } . ?j property:P180 resource:Q45722 } } . FILTER ( ?n > ?x ) }
cardinal
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity cardinal
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) ?p WHERE { ?c rdf:type ?z . VALUES ( ?z ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { { ?j rdf:type ontology:art_genre } UNION { ?j rdf:type ontology:media } } . ?j property:depicts resource:cardinal } } . FILTER ( ?n > ?x ) }
[]
occupation art genre media
SYSTEM
16
Q177220 Q2995983 Q2079936 Q45199 Q186360 Q733786 Q4991371 Q273108 Q589897 Q20489032 Q2730732 Q5716684 Q18575684 Q639669 Q384593 Q1630100
(c(Q1792379)|c(Q340169),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q45722
relation P180
type Q1792379
type Q340169
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) ?p WHERE { ?c rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1792379 ) ( ontology:Q340169 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { { ?j rdf:type ontology:Q1792379 } UNION { ?j rdf:type ontology:Q340169 } } . ?j property:P180 resource:Q45722 } } . FILTER ( ?n > ?x ) }
singer double-bassist king of marksmen sailor nurse monk soldier condottiero mahout salt pan worker equestrian dancer embroiderer musician police officer art model
16
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action count
action filter_multi_types
action find_reverse
entity cardinal
relation depicts
type art genre
type media
[[{'concept': 'art genre'}, {'concept': 'media'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) ?p WHERE { ?c rdf:type ?z . VALUES ( ?z ) { ( ontology:art_genre ) ( ontology:media ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { { { ?j rdf:type ontology:art_genre } UNION { ?j rdf:type ontology:media } } . ?j property:depicts resource:cardinal } } . FILTER ( ?n > ?x ) }
[]