Simple Question (Direct)
Simple Question
Q17285750
P39
Q12737077
USER
What was the position held by Ferruccio Trentini ?
(Q17285750,P39,c(Q12737077))
action filter_type
action find
entity Q17285750
relation P39
type Q12737077
['Q17285750', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q17285750 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
Ferruccio Trentini
action filter_type
action find
entity Ferruccio Trentini
relation position held
type occupation
['Ferruccio Trentini', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Ferruccio_Trentini property:position_held ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q17285750,P39,c(Q12737077))
action filter_type
action find
entity Q17285750
relation P39
type Q12737077
The position held by Ferruccio Trentini was the [ANSWER]
['Q17285750', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q17285750 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
mayor
The position held by Ferruccio Trentini was the mayor
mayor
action filter_type
action find
entity Ferruccio Trentini
relation position held
type occupation
['Ferruccio Trentini', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Ferruccio_Trentini property:position_held ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17285750
P21
Q290
USER
Which sex does that person belong to ?
(Q30185,P21,c(Q290))
action filter_type
action find
entity Q17285750
relation P21
type Q290
['Q30185', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q17285750 property:P21 ?l }
Ferruccio Trentini
action filter_type
action find
entity Ferruccio Trentini
relation gender
type sex
['mayor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Ferruccio_Trentini property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q30185,P21,c(Q290))
action filter_type
action find
entity Q17285750
relation P21
type Q290
That person belongs to [ANSWER]
['Q30185', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q17285750 property:P21 ?l }
male
That person belongs to male
male
action filter_type
action find
entity Ferruccio Trentini
relation gender
type sex
['mayor', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Ferruccio_Trentini property:gender ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17285750
P19
Q15617994
USER
Where was that person born ?
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P19
type Q15617994
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q17285750 property:P19 ?e . ?e rdf:type ontology:Q15617994 }
Ferruccio Trentini
action filter_type
action find
entity Ferruccio Trentini
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ferruccio_Trentini property:place_of_birth ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q291661
SYSTEM
Lasino
Q291661
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P19
type Q15617994
That person was born in [ANSWER]
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q17285750 property:P19 ?e . ?e rdf:type ontology:Q15617994 }
Lasino
That person was born in Lasino
Lasino
action filter_type
action find
entity Ferruccio Trentini
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ferruccio_Trentini property:place_of_birth ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with atleast 43 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 43
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?d ) WHERE { ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?v property:P530 ?s } GROUP BY ?v } . FILTER ( ?d >= 43 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 43
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?d ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?s } GROUP BY ?v } . FILTER ( ?d >= 43 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
3
Q155 Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action count
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 43
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?d ) WHERE { ?v rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 . ?v property:P530 ?s } GROUP BY ?v } . FILTER ( ?d >= 43 ) }
Brazil Italy Georgia
3
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 43
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?s ) AS ?d ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:diplomatic_relation ?s } GROUP BY ?v } . FILTER ( ?d >= 43 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6581097
P21
Q24533670 Q5767753
USER
How many mythical humanoid races or styles are a male ?
(c(Q24533670),P21,Q6581097) (c(Q5767753),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q24533670
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q5767753
[{'concept': 'Q24533670'}, 'P21', 'Q6581097'] [{'concept': 'Q5767753'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:Q24533670 ) ( ontology:Q5767753 ) } }
male
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type mythical humanoid race
action filter_type
action find_reverse
entity male
relation gender
type style
[{'concept': 'mythical humanoid race'}, 'gender', 'male'] [{'concept': 'style'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:mythical_humanoid_race ) ( ontology:style ) } }
[]
mythical humanoid race style
SYSTEM
5
Q193567 Q20162215 Q2291710 Q3553687 Q420269
(c(Q24533670),P21,Q6581097) (c(Q5767753),P21,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q24533670
action filter_type
action find_reverse
entity Q6581097
relation P21
type Q5767753
[ANSWER]
[{'concept': 'Q24533670'}, 'P21', 'Q6581097'] [{'concept': 'Q5767753'}, 'P21', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:Q24533670 ) ( ontology:Q5767753 ) } }
Polyphemos Winand of Rode Brontes Steropes Arges
5
action count
action union
action filter_type
action find_reverse
entity male
relation gender
type mythical humanoid race
action filter_type
action find_reverse
entity male
relation gender
type style
[{'concept': 'mythical humanoid race'}, 'gender', 'male'] [{'concept': 'style'}, 'gender', 'male']
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { ?z rdf:type ?y . VALUES ( ?y ) { ( ontology:mythical_humanoid_race ) ( ontology:style ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17285750
P20
Q15617994
USER
Which administrative territory is the place of death of Ferruccio Trentini ?
(Q17285750,P20,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P20
type Q15617994
['Q17285750', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q17285750 property:P20 ?z }
Ferruccio Trentini
action filter_type
action find
entity Ferruccio Trentini
relation place of death
type designation for an administrative territorial entity
['Ferruccio Trentini', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ferruccio_Trentini property:place_of_death ?z }
[]
designation for an administrative territorial entity
Q279373
SYSTEM
Rovereto
Q279373
(Q17285750,P20,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P20
type Q15617994
[ANSWER] is the place of death of Ferruccio Trentini
['Q17285750', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q15617994 . resource:Q17285750 property:P20 ?z }
Rovereto
Rovereto is the place of death of Ferruccio Trentini
Rovereto
action filter_type
action find
entity Ferruccio Trentini
relation place of death
type designation for an administrative territorial entity
['Ferruccio Trentini', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ferruccio_Trentini property:place_of_death ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17285750
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q279373,P27,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P27
type Q15617994
['Q279373', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q17285750 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Ferruccio Trentini
action filter_type
action find
entity Ferruccio Trentini
relation country of citizenship
type designation for an administrative territorial entity
['Rovereto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ferruccio_Trentini property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q279373,P27,c(Q15617994))
action filter_type
action find
entity Q17285750
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q279373', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q17285750 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of that person
Italy
action filter_type
action find
entity Ferruccio Trentini
relation country of citizenship
type designation for an administrative territorial entity
['Rovereto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ferruccio_Trentini property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3422399 Q17285750
P106
Q12737077
USER
Which occupations are the professions of Ferruccio Trentini or Aina Basso ?
OR((Q17285750,P106,c(Q12737077)), (Q3422399,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q17285750
relation P106
action find
entity Q3422399
relation P106
type Q12737077
{'OR': [['Q17285750', 'P106', {'concept': 'Q12737077'}], ['Q3422399', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . { ?d property:P106 ?k . VALUES ( ?d ) { ( resource:Q3422399 ) ( resource:Q17285750 ) } } }
Aina Basso Ferruccio Trentini
action filter_type
action union
action find
entity Ferruccio Trentini
relation occupation
action find
entity Aina Basso
relation occupation
type occupation
{'OR': [['Ferruccio Trentini', 'occupation', {'concept': 'occupation'}], ['Aina Basso', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . { ?d property:occupation ?k . VALUES ( ?d ) { ( resource:Aina_Basso ) ( resource:Ferruccio_Trentini ) } } }
[]
occupation
Q201788 Q82955 Q37226 Q36180
SYSTEM
historian, politician, teacher, writer
Q201788 Q82955 Q37226 Q36180
OR((Q17285750,P106,c(Q12737077)), (Q3422399,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q17285750
relation P106
action find
entity Q3422399
relation P106
type Q12737077
The [ANSWERS] are the professions of Ferruccio Trentini or Aina Basso
{'OR': [['Q17285750', 'P106', {'concept': 'Q12737077'}], ['Q3422399', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . { ?d property:P106 ?k . VALUES ( ?d ) { ( resource:Q3422399 ) ( resource:Q17285750 ) } } }
historian politician teacher writer
The historian, politician, teacher and writer are the professions of Ferruccio Trentini or Aina Basso
historian politician teacher writer
action filter_type
action union
action find
entity Ferruccio Trentini
relation occupation
action find
entity Aina Basso
relation occupation
type occupation
{'OR': [['Ferruccio Trentini', 'occupation', {'concept': 'occupation'}], ['Aina Basso', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . { ?d property:occupation ?k . VALUES ( ?d ) { ( resource:Aina_Basso ) ( resource:Ferruccio_Trentini ) } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q191067 Q838948
USER
How many occupations were discussed in atleast 36 articles or works of art ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 36
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?y } . FILTER ( ?r >= 36 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 36
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?y } . FILTER ( ?r >= 36 ) }
[]
occupation article work of art
SYSTEM
2
Q33999 Q9402
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 36
[ANSWER]
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?y } . FILTER ( ?r >= 36 ) }
actor ninja
2
action count
action atleast
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 36
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?o . VALUES ( ?o ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?y } . FILTER ( ?r >= 36 ) }
[]