Simple Question (Direct)
Simple Question
Q955967
P39
Q12737077
USER
Which occupation was a position occupied by Gianfranco Gardin ?
(Q955967,P39,c(Q12737077))
action filter_type
action find
entity Q955967
relation P39
type Q12737077
['Q955967', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q955967 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Gianfranco Gardin
action filter_type
action find
entity Gianfranco Gardin
relation position held
type occupation
['Gianfranco Gardin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gianfranco_Gardin property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q49476
SYSTEM
archbishop
Q49476
(Q955967,P39,c(Q12737077))
action filter_type
action find
entity Q955967
relation P39
type Q12737077
General [ANSWER] was a position occupied by Gianfranco Gardin
['Q955967', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q955967 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
archbishop
General archbishop was a position occupied by Gianfranco Gardin
archbishop
action filter_type
action find
entity Gianfranco Gardin
relation position held
type occupation
['Gianfranco Gardin', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gianfranco_Gardin property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q955967
P140
Q879146
USER
Which Christian denomination does Gianfranco Gardin relate to ?
(Q955967,P140,c(Q879146))
action filter_type
action find
entity Q955967
relation P140
type Q879146
['Q955967', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?z WHERE { resource:Q955967 property:P140 ?z . ?z rdf:type ontology:Q879146 }
Gianfranco Gardin
action filter_type
action find
entity Gianfranco Gardin
relation religion
type Christian denomination
['Gianfranco Gardin', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?z WHERE { resource:Gianfranco_Gardin property:religion ?z . ?z rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q955967,P140,c(Q879146))
action filter_type
action find
entity Q955967
relation P140
type Q879146
Gianfranco Gardin relates the [ANSWER]
['Q955967', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?z WHERE { resource:Q955967 property:P140 ?z . ?z rdf:type ontology:Q879146 }
Roman Catholic Church
Gianfranco Gardin relates the Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Gianfranco Gardin
relation religion
type Christian denomination
['Gianfranco Gardin', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?z WHERE { resource:Gianfranco_Gardin property:religion ?z . ?z rdf:type ontology:Christian_denomination }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q955967
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Gianfranco Gardin ?
(Q955967,P27,c(Q15617994))
action filter_type
action find
entity Q955967
relation P27
type Q15617994
['Q955967', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q955967 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Gianfranco Gardin
action filter_type
action find
entity Gianfranco Gardin
relation country of citizenship
type designation for an administrative territorial entity
['Gianfranco Gardin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gianfranco_Gardin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q955967,P27,c(Q15617994))
action filter_type
action find
entity Q955967
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Gianfranco Gardin
['Q955967', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q955967 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Italy
Italy is the country of citizenship of Gianfranco Gardin
Italy
action filter_type
action find
entity Gianfranco Gardin
relation country of citizenship
type designation for an administrative territorial entity
['Gianfranco Gardin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Gianfranco_Gardin property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q955967
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q38,P106,c(Q12737077))
action filter_type
action find
entity Q955967
relation P106
type Q12737077
['Q38', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q955967 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Gianfranco Gardin
action filter_type
action find
entity Gianfranco Gardin
relation occupation
type occupation
['Italy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Gianfranco_Gardin property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1234713 Q250867 Q1622272
SYSTEM
theologian, Catholic priest, university teacher
Q1234713 Q250867 Q1622272
(Q38,P106,c(Q12737077))
action filter_type
action find
entity Q955967
relation P106
type Q12737077
The professions of that person are Catholic [ANSWERS]
['Q38', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q955967 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
theologian Catholic priest university teacher
The professions of that person are Catholic theologian, Catholic priest and university teacher
theologian Catholic priest university teacher
action filter_type
action find
entity Gianfranco Gardin
relation occupation
type occupation
['Italy', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Gianfranco_Gardin property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q838948 Q2342494
USER
Which occupations are depicted in max number of works of art and collectables ?
(c(Q838948)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?r ) WHERE { { ?p property:P180 ?d . ?p rdf:type ontology:Q838948 . ?d rdf:type ontology:Q12737077 } UNION { ?p property:P180 ?d . ?p rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q12737077 } } GROUP BY ?d } . FILTER ( ?r = ?f ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?r ) WHERE { { ?p property:depicts ?d . ?p rdf:type ontology:work_of_art . ?d rdf:type ontology:occupation } UNION { ?p property:depicts ?d . ?p rdf:type ontology:collectable . ?d rdf:type ontology:occupation } } GROUP BY ?d } . FILTER ( ?r = ?f ) }
[]
occupation work of art collectable
Q1250916
SYSTEM
warrior
Q1250916
(c(Q838948)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
[ANSWER] is depicted in max number of works of art and collectables
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?r ) WHERE { { ?p property:P180 ?d . ?p rdf:type ontology:Q838948 . ?d rdf:type ontology:Q12737077 } UNION { ?p property:P180 ?d . ?p rdf:type ontology:Q2342494 . ?d rdf:type ontology:Q12737077 } } GROUP BY ?d } . FILTER ( ?r = ?f ) }
warrior
Warrior is depicted in max number of works of art and collectables
warrior
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?f ) { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?c ) WHERE { ?o rdf:type ?l . VALUES ( ?l ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?p ) AS ?r ) WHERE { { ?p property:depicts ?d . ?p rdf:type ontology:work_of_art . ?d rdf:type ontology:occupation } UNION { ?p property:depicts ?d . ?p rdf:type ontology:collectable . ?d rdf:type ontology:occupation } } GROUP BY ?d } . FILTER ( ?r = ?f ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1622272 Q140686
P39
Q502895
USER
How many people held the position of university teacher and chairperson ?
(c(Q502895),P39,Q1622272) (c(Q502895),P39,Q140686)
action count
action intersection
action filter_type
action find_reverse
entity Q1622272
relation P39
type Q502895
action filter_type
action find_reverse
entity Q140686
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q1622272'] [{'concept': 'Q502895'}, 'P39', 'Q140686']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P39 resource:Q1622272 . ?d property:P39 resource:Q140686 . ?d rdf:type ontology:Q502895 }
university teacher chairperson
action count
action intersection
action filter_type
action find_reverse
entity university teacher
relation position held
type common name
action filter_type
action find_reverse
entity chairperson
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'university teacher'] [{'concept': 'common name'}, 'position held', 'chairperson']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:common_name . ?d property:position_held resource:university_teacher . ?d property:position_held resource:chairperson . ?d rdf:type ontology:common_name }
[]
common name
SYSTEM
3
Q6294 Q164384 Q263725
(c(Q502895),P39,Q1622272) (c(Q502895),P39,Q140686)
action count
action intersection
action filter_type
action find_reverse
entity Q1622272
relation P39
type Q502895
action filter_type
action find_reverse
entity Q140686
relation P39
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P39', 'Q1622272'] [{'concept': 'Q502895'}, 'P39', 'Q140686']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:Q502895 . ?d property:P39 resource:Q1622272 . ?d property:P39 resource:Q140686 . ?d rdf:type ontology:Q502895 }
Hillary Clinton Theodore von Kármán Janet Yellen
3
action count
action intersection
action filter_type
action find_reverse
entity university teacher
relation position held
type common name
action filter_type
action find_reverse
entity chairperson
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'university teacher'] [{'concept': 'common name'}, 'position held', 'chairperson']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d rdf:type ontology:common_name . ?d property:position_held resource:university_teacher . ?d property:position_held resource:chairperson . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1622272
P425
Q2385804
USER
Who has that one as the associated field of occupation ?
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2385804 . resource:Q1622272 property:P425 ?z }
university teacher
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:educational_institution . resource:university_teacher property:field_of_this_occupation ?z }
[]
educational institution
Q3918
SYSTEM
university
Q3918
action filter_type
action find
entity Q1622272
relation P425
type Q2385804
[ANSWER] has that one as the associated field of occupation
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q2385804 . resource:Q1622272 property:P425 ?z }
university
University has that one as the associated field of occupation
university
action filter_type
action find
entity university teacher
relation field of this occupation
type educational institution
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:educational_institution . resource:university_teacher property:field_of_this_occupation ?z }
[]