Simple Question (Direct)
Simple Question
Q913216
P19
Q15617994
USER
Which administrative territory was Francesco Roberti born at ?
(Q913216,P19,c(Q15617994))
action filter_type
action find
entity Q913216
relation P19
type Q15617994
['Q913216', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q913216 property:P19 ?i . ?i rdf:type ontology:Q15617994 }
Francesco Roberti
action filter_type
action find
entity Francesco Roberti
relation place of birth
type designation for an administrative territorial entity
['Francesco Roberti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Francesco_Roberti property:place_of_birth ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q913216,P19,c(Q15617994))
action filter_type
action find
entity Q913216
relation P19
type Q15617994
Francesco Roberti was born in [ANSWER]
['Q913216', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q913216 property:P19 ?i . ?i rdf:type ontology:Q15617994 }
Italy
Francesco Roberti was born in Italy
Italy
action filter_type
action find
entity Francesco Roberti
relation place of birth
type designation for an administrative territorial entity
['Francesco Roberti', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Francesco_Roberti property:place_of_birth ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q913216
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q38,P106,c(Q12737077))
action filter_type
action find
entity Q913216
relation P106
type Q12737077
['Q38', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q913216 property:P106 ?d }
Francesco Roberti
action filter_type
action find
entity Francesco Roberti
relation occupation
type occupation
['Italy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Francesco_Roberti property:occupation ?d }
[]
occupation
Q1234713 Q250867
SYSTEM
theologian, Catholic priest
Q1234713 Q250867
(Q38,P106,c(Q12737077))
action filter_type
action find
entity Q913216
relation P106
type Q12737077
The professions of that person are Catholic [ANSWERS]
['Q38', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q12737077 . resource:Q913216 property:P106 ?d }
theologian Catholic priest
The professions of that person are Catholic theologian and Catholic priest
theologian Catholic priest
action filter_type
action find
entity Francesco Roberti
relation occupation
type occupation
['Italy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:occupation . resource:Francesco_Roberti property:occupation ?d }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q820037
P180
Q12737077 Q1792379 Q17638008
USER
How many occupations are expressed in greater number of art genres and game equipment than miner ?
(c(Q1792379)|c(Q17638008),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 Q17638008
action count
action filter_multi_types
action find_reverse
entity Q820037
relation P180
type Q1792379
type Q17638008
[[{'concept': 'Q1792379'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q1792379 } UNION { ?h property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q17638008 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P180 resource:Q820037 . { { ?c rdf:type ontology:Q1792379 } UNION { ?c rdf:type ontology:Q17638008 } } } } . FILTER ( ?x > ?s ) }
miner
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 game equipment
action count
action filter_multi_types
action find_reverse
entity miner
relation depicts
type art genre
type game equipment
[[{'concept': 'art genre'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:depicts ?n . ?n rdf:type ontology:occupation . ?h rdf:type ontology:art_genre } UNION { ?h property:depicts ?n . ?n rdf:type ontology:occupation . ?h rdf:type ontology:game_equipment } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:depicts resource:miner . { { ?c rdf:type ontology:art_genre } UNION { ?c rdf:type ontology:game_equipment } } } } . FILTER ( ?x > ?s ) }
[]
occupation art genre game equipment
SYSTEM
4
Q2079936 Q12097 Q4991371 Q2730732
(c(Q1792379)|c(Q17638008),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 Q17638008
action count
action filter_multi_types
action find_reverse
entity Q820037
relation P180
type Q1792379
type Q17638008
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q1792379 } UNION { ?h property:P180 ?n . ?n rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q17638008 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:P180 resource:Q820037 . { { ?c rdf:type ontology:Q1792379 } UNION { ?c rdf:type ontology:Q17638008 } } } } . FILTER ( ?x > ?s ) }
king of marksmen king soldier equestrian
4
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 game equipment
action count
action filter_multi_types
action find_reverse
entity miner
relation depicts
type art genre
type game equipment
[[{'concept': 'art genre'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?x ) WHERE { { ?h property:depicts ?n . ?n rdf:type ontology:occupation . ?h rdf:type ontology:art_genre } UNION { ?h property:depicts ?n . ?n rdf:type ontology:occupation . ?h rdf:type ontology:game_equipment } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c property:depicts resource:miner . { { ?c rdf:type ontology:art_genre } UNION { ?c rdf:type ontology:game_equipment } } } } . FILTER ( ?x > ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1221610
P180
Q12737077 Q1792379 Q17638008
USER
And also tell me about coachman?
(c(Q1792379)|c(Q17638008),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 Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1221610
relation P180
type Q1792379
type Q17638008
[[{'concept': 'Q1792379'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1792379 ) ( ontology:Q17638008 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:P180 resource:Q1221610 . { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1792379 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?k > ?h ) }
coachman
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 game equipment
action count
action filter_multi_types
action find_reverse
entity coachman
relation depicts
type art genre
type game equipment
[[{'concept': 'art genre'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:art_genre ) ( ontology:game_equipment ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:depicts resource:coachman . { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:art_genre ) ( ontology:game_equipment ) } } } } . FILTER ( ?k > ?h ) }
[]
occupation art genre game equipment
SYSTEM
4
Q2079936 Q12097 Q4991371 Q2730732
(c(Q1792379)|c(Q17638008),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 Q17638008
action count
action filter_multi_types
action find_reverse
entity Q1221610
relation P180
type Q1792379
type Q17638008
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:Q1792379 ) ( ontology:Q17638008 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:P180 resource:Q1221610 . { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:Q1792379 ) ( ontology:Q17638008 ) } } } } . FILTER ( ?k > ?h ) }
king of marksmen king soldier equestrian
4
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 game equipment
action count
action filter_multi_types
action find_reverse
entity coachman
relation depicts
type art genre
type game equipment
[[{'concept': 'art genre'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?k ) WHERE { ?w rdf:type ?m . VALUES ( ?m ) { ( ontology:art_genre ) ( ontology:game_equipment ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:depicts resource:coachman . { ?q rdf:type ?l . VALUES ( ?l ) { ( ontology:art_genre ) ( ontology:game_equipment ) } } } } . FILTER ( ?k > ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q913216
P21
Q290
USER
Which sex does Francesco Roberti have ?
(Q913216,P21,c(Q290))
action filter_type
action find
entity Q913216
relation P21
type Q290
['Q913216', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q913216 property:P21 ?z . ?z rdf:type ontology:Q290 }
Francesco Roberti
action filter_type
action find
entity Francesco Roberti
relation gender
type sex
['Francesco Roberti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Francesco_Roberti property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q913216,P21,c(Q290))
action filter_type
action find
entity Q913216
relation P21
type Q290
Francesco Roberti has a [ANSWER]
['Q913216', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q913216 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Francesco Roberti has a male
male
action filter_type
action find
entity Francesco Roberti
relation gender
type sex
['Francesco Roberti', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Francesco_Roberti property:gender ?z . ?z rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q3713734
P21
Q502895
USER
Does Donato Antonio Cafaro have the gender as that sex ?
(Q3713734,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3713734
relation P21
['Q3713734', 'P21', 'Q6581097']
ASK WHERE { resource:Q3713734 property:P21 resource:Q6581097 }
male Donato Antonio Cafaro
action is_in
entity male
action find
entity Donato Antonio Cafaro
relation gender
['Donato Antonio Cafaro', 'gender', 'male']
ASK WHERE { resource:Donato_Antonio_Cafaro property:gender resource:male }
[]
common name
SYSTEM
YES
(Q3713734,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q3713734
relation P21
[ANSWER]
['Q3713734', 'P21', 'Q6581097']
ASK WHERE { resource:Q3713734 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Donato Antonio Cafaro
relation gender
['Donato Antonio Cafaro', 'gender', 'male']
ASK WHERE { resource:Donato_Antonio_Cafaro property:gender resource:male }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1234713
P425
Q1047113
USER
Who has theologian as the associated field of occupation ?
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?n WHERE { resource:Q1234713 property:P425 ?n . ?n rdf:type ontology:Q1047113 }
theologian
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?n WHERE { resource:theologian property:field_of_this_occupation ?n . ?n rdf:type ontology:special_field }
[]
special field
Q34178
SYSTEM
theology
Q34178
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
Of [ANSWER] has theologian as the associated field of occupation
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?n WHERE { resource:Q1234713 property:P425 ?n . ?n rdf:type ontology:Q1047113 }
theology
Of theology has theologian as the associated field of occupation
theology
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?n WHERE { resource:theologian property:field_of_this_occupation ?n . ?n rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P101
Q1047113 Q43229 Q21114848
USER
Which special fields do max number of organizations and magazine genres belong to ?
(c(Q43229)|c(Q21114848),P101,c(Q1047113))
action argmax
action union
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q43229
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q21114848
[[{'concept': 'Q43229'}, {'concept': 'Q21114848'}], 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?l . VALUES ( ?l ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:P101 ?m . ?m rdf:type ontology:Q1047113 . ?y rdf:type ontology:Q21114848 } UNION { ?y property:P101 ?m . ?m rdf:type ontology:Q1047113 . ?y rdf:type ontology:Q43229 } } GROUP BY ?m } . FILTER ( ?a = ?v ) }
action argmax
action union
action find_reverse_tuple_counts
relation field of work
type special field
type organization
action find_reverse_tuple_counts
relation field of work
type special field
type magazine genre
[[{'concept': 'organization'}, {'concept': 'magazine genre'}], 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?l . VALUES ( ?l ) { ( ontology:organization ) ( ontology:magazine_genre ) } } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:field_of_work ?m . ?m rdf:type ontology:special_field . ?y rdf:type ontology:magazine_genre } UNION { ?y property:field_of_work ?m . ?m rdf:type ontology:special_field . ?y rdf:type ontology:organization } } GROUP BY ?m } . FILTER ( ?a = ?v ) }
[]
special field organization magazine genre
Q128406 Q161437
SYSTEM
pharmacology, ophthalmology
Q128406 Q161437
(c(Q43229)|c(Q21114848),P101,c(Q1047113))
action argmax
action union
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q43229
action find_reverse_tuple_counts
relation P101
type Q1047113
type Q21114848
[ANSWERS] max number of organizations and magazine genres belong to
[[{'concept': 'Q43229'}, {'concept': 'Q21114848'}], 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?l . VALUES ( ?l ) { ( ontology:Q43229 ) ( ontology:Q21114848 ) } } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:P101 ?m . ?m rdf:type ontology:Q1047113 . ?y rdf:type ontology:Q21114848 } UNION { ?y property:P101 ?m . ?m rdf:type ontology:Q1047113 . ?y rdf:type ontology:Q43229 } } GROUP BY ?m } . FILTER ( ?a = ?v ) }
pharmacology ophthalmology
Pharmacology and ophthalmology max number of organizations and magazine genres belong to
pharmacology ophthalmology
action argmax
action union
action find_reverse_tuple_counts
relation field of work
type special field
type organization
action find_reverse_tuple_counts
relation field of work
type special field
type magazine genre
[[{'concept': 'organization'}, {'concept': 'magazine genre'}], 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?v ) { SELECT DISTINCT ?b ( COUNT ( ?t ) AS ?k ) WHERE { ?t rdf:type ?l . VALUES ( ?l ) { ( ontology:organization ) ( ontology:magazine_genre ) } } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?a ) WHERE { { ?y property:field_of_work ?m . ?m rdf:type ontology:special_field . ?y rdf:type ontology:magazine_genre } UNION { ?y property:field_of_work ?m . ?m rdf:type ontology:special_field . ?y rdf:type ontology:organization } } GROUP BY ?m } . FILTER ( ?a = ?v ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16245825
P101
Q874405
USER
Does Association for Ocular Pharmacology and Therapeutics work in the domain of those special fields ?
(Q16245825,P101,Q128406) (Q16245825,P101,Q161437)
action is_in
entity prev_answer
action find
entity Q16245825
relation P101
['Q16245825', 'P101', 'Q128406'] ['Q16245825', 'P101', 'Q161437']
ASK WHERE { resource:Q16245825 property:P101 ?j . VALUES ( ?j ) { ( resource:Q128406 ) ( resource:Q161437 ) } }
Association for Ocular Pharmacology and Therapeutics
action is_in
entity prev_answer
action find
entity Association for Ocular Pharmacology and Therapeutics
relation field of work
['Association for Ocular Pharmacology and Therapeutics', 'field of work', 'pharmacology'] ['Association for Ocular Pharmacology and Therapeutics', 'field of work', 'ophthalmology']
ASK WHERE { resource:Association_for_Ocular_Pharmacology_and_Therapeutics property:field_of_work ?j . VALUES ( ?j ) { ( resource:pharmacology ) ( resource:ophthalmology ) } }
[]
social group
SYSTEM
YES
(Q16245825,P101,Q128406) (Q16245825,P101,Q161437)
action is_in
entity prev_answer
action find
entity Q16245825
relation P101
[ANSWER]
['Q16245825', 'P101', 'Q128406'] ['Q16245825', 'P101', 'Q161437']
ASK WHERE { resource:Q16245825 property:P101 ?j . VALUES ( ?j ) { ( resource:Q128406 ) ( resource:Q161437 ) } }
Yes
action is_in
entity prev_answer
action find
entity Association for Ocular Pharmacology and Therapeutics
relation field of work
['Association for Ocular Pharmacology and Therapeutics', 'field of work', 'pharmacology'] ['Association for Ocular Pharmacology and Therapeutics', 'field of work', 'ophthalmology']
ASK WHERE { resource:Association_for_Ocular_Pharmacology_and_Therapeutics property:field_of_work ?j . VALUES ( ?j ) { ( resource:pharmacology ) ( resource:ophthalmology ) } }
[]