Simple Question (Direct)
Simple Question
Q1495550
P106
Q12737077
USER
Which occupation is the profession of Gaston Bazile ?
(Q1495550,P106,c(Q12737077))
action filter_type
action find
entity Q1495550
relation P106
type Q12737077
['Q1495550', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1495550 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Gaston Bazile
action filter_type
action find
entity Gaston Bazile
relation occupation
type occupation
['Gaston Bazile', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gaston_Bazile property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1495550,P106,c(Q12737077))
action filter_type
action find
entity Q1495550
relation P106
type Q12737077
So [ANSWER] is the profession of Gaston Bazile
['Q1495550', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1495550 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
politician
So politician is the profession of Gaston Bazile
politician
action filter_type
action find
entity Gaston Bazile
relation occupation
type occupation
['Gaston Bazile', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Gaston_Bazile property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1495550
P39
Q12737077
USER
Which occupations were the positions for which Gaston Bazile were appointed ?
(Q1495550,P39,c(Q12737077))
action filter_type
action find
entity Q1495550
relation P39
type Q12737077
['Q1495550', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1495550 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Gaston Bazile
action filter_type
action find
entity Gaston Bazile
relation position held
type occupation
['Gaston Bazile', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Gaston_Bazile property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q21032547 Q3044918
SYSTEM
senator of the French Third Republic, member of the French National Assembly
Q21032547 Q3044918
(Q1495550,P39,c(Q12737077))
action filter_type
action find
entity Q1495550
relation P39
type Q12737077
[ANSWERS]
['Q1495550', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1495550 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
senator of the French Third Republic member of the French National Assembly
Senator of the French Third Republic and member of the French National Assembly were the positions for which Gaston Bazile were appointed
senator of the French Third Republic member of the French National Assembly
action filter_type
action find
entity Gaston Bazile
relation position held
type occupation
['Gaston Bazile', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Gaston_Bazile property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7787922
P39
Q502895
USER
Were Thomas Brodrick appointed for the position of those occupations ?
(Q7787922,P39,Q21032547) (Q7787922,P39,Q3044918)
action is_in
entity prev_answer
action find
entity Q7787922
relation P39
['Q7787922', 'P39', 'Q21032547'] ['Q7787922', 'P39', 'Q3044918']
ASK WHERE { resource:Q7787922 property:P39 ?l . VALUES ( ?l ) { ( resource:Q21032547 ) ( resource:Q3044918 ) } }
Thomas Brodrick
action is_in
entity prev_answer
action find
entity Thomas Brodrick
relation position held
['Thomas Brodrick', 'position held', 'senator of the French Third Republic'] ['Thomas Brodrick', 'position held', 'member of the French\xa0National Assembly']
ASK WHERE { resource:Thomas_Brodrick property:position_held ?l . VALUES ( ?l ) { ( resource:senator_of_the_French_Third_Republic ) ( resource:member_of_the_French National_Assembly ) } }
[]
common name
SYSTEM
NO
(Q7787922,P39,Q21032547) (Q7787922,P39,Q3044918)
action is_in
entity prev_answer
action find
entity Q7787922
relation P39
[ANSWER]
['Q7787922', 'P39', 'Q21032547'] ['Q7787922', 'P39', 'Q3044918']
ASK WHERE { resource:Q7787922 property:P39 ?l . VALUES ( ?l ) { ( resource:Q21032547 ) ( resource:Q3044918 ) } }
No
action is_in
entity prev_answer
action find
entity Thomas Brodrick
relation position held
['Thomas Brodrick', 'position held', 'senator of the French Third Republic'] ['Thomas Brodrick', 'position held', 'member of the French\xa0National Assembly']
ASK WHERE { resource:Thomas_Brodrick property:position_held ?l . VALUES ( ?l ) { ( resource:senator_of_the_French_Third_Republic ) ( resource:member_of_the_French National_Assembly ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q3044918 Q7587300 Q142
P1001
Q15617994
USER
Does member of the French National Assembly have control over the jurisdiction of St. Bernard Parish Public Schools and France ?
(Q3044918,P1001,Q7587300) (Q3044918,P1001,Q142)
action is_in
entity Q3044918
action intersection
action find_reverse
entity Q7587300
relation P1001
action find_reverse
entity Q142
relation P1001
['Q3044918', 'P1001', 'Q7587300'] ['Q3044918', 'P1001', 'Q142']
ASK WHERE { resource:Q3044918 property:P1001 resource:Q7587300 . resource:Q3044918 property:P1001 resource:Q142 }
member of the French National Assembly St. Bernard Parish Public Schools France
action is_in
entity member of the French National Assembly
action intersection
action find_reverse
entity St. Bernard Parish Public Schools
relation applies to jurisdiction
action find_reverse
entity France
relation applies to jurisdiction
['member of the French\xa0National Assembly', 'applies to jurisdiction', 'St. Bernard Parish Public Schools'] ['member of the French\xa0National Assembly', 'applies to jurisdiction', 'France']
ASK WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction resource:St._Bernard_Parish_Public_Schools . resource:member_of_the_French National_Assembly property:applies_to_jurisdiction resource:France }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q3044918,P1001,Q7587300) (Q3044918,P1001,Q142)
action is_in
entity Q3044918
action intersection
action find_reverse
entity Q7587300
relation P1001
action find_reverse
entity Q142
relation P1001
[ANSWER]
['Q3044918', 'P1001', 'Q7587300'] ['Q3044918', 'P1001', 'Q142']
ASK WHERE { resource:Q3044918 property:P1001 resource:Q7587300 . resource:Q3044918 property:P1001 resource:Q142 }
NO and YES respectively
action is_in
entity member of the French National Assembly
action intersection
action find_reverse
entity St. Bernard Parish Public Schools
relation applies to jurisdiction
action find_reverse
entity France
relation applies to jurisdiction
['member of the French\xa0National Assembly', 'applies to jurisdiction', 'St. Bernard Parish Public Schools'] ['member of the French\xa0National Assembly', 'applies to jurisdiction', 'France']
ASK WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction resource:St._Bernard_Parish_Public_Schools . resource:member_of_the_French National_Assembly property:applies_to_jurisdiction resource:France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3044918
P1001
Q15617994
USER
How many administrative territories apply to jurisdiction of member of the French National Assembly ?
(Q3044918,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q3044918
relation P1001
type Q15617994
['Q3044918', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q3044918 property:P1001 ?t . ?t rdf:type ontology:Q15617994 }
member of the French National Assembly
action count
action filter_type
action find
entity member of the French National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q142
(Q3044918,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q3044918
relation P1001
type Q15617994
[ANSWER]
['Q3044918', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:Q3044918 property:P1001 ?t . ?t rdf:type ontology:Q15617994 }
France
1
action count
action filter_type
action find
entity member of the French National Assembly
relation applies to jurisdiction
type designation for an administrative territorial entity
['member of the French\xa0National Assembly', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?i ) WHERE { resource:member_of_the_French National_Assembly property:applies_to_jurisdiction ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q18696637
P1001
Q15617994
USER
And how about Ministry of Agriculture of Spain?
(Q18696637,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q18696637
relation P1001
type Q15617994
['Q18696637', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q18696637 property:P1001 ?x . ?x rdf:type ontology:Q15617994 }
Ministry of Agriculture of Spain
action count
action filter_type
action find
entity Ministry of Agriculture of Spain
relation applies to jurisdiction
type designation for an administrative territorial entity
['Ministry of Agriculture of Spain', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Ministry_of_Agriculture_of_Spain property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q18696637,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q18696637
relation P1001
type Q15617994
[ANSWER]
['Q18696637', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Q18696637 property:P1001 ?x . ?x rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity Ministry of Agriculture of Spain
relation applies to jurisdiction
type designation for an administrative territorial entity
['Ministry of Agriculture of Spain', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { resource:Ministry_of_Agriculture_of_Spain property:applies_to_jurisdiction ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2044663
Q15617994
USER
And what about PSE law?
(Q2044663,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q2044663
relation P1001
type Q15617994
['Q2044663', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q2044663 property:P1001 ?c . ?c rdf:type ontology:Q15617994 }
PSE law
action count
action filter_type
action find
entity PSE law
relation applies to jurisdiction
type designation for an administrative territorial entity
['PSE law', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:PSE_law property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q2044663,P1001,c(Q15617994))
action count
action filter_type
action find
entity Q2044663
relation P1001
type Q15617994
[ANSWER]
['Q2044663', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:Q2044663 property:P1001 ?c . ?c rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity PSE law
relation applies to jurisdiction
type designation for an administrative territorial entity
['PSE law', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { resource:PSE_law property:applies_to_jurisdiction ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1509714
P180
Q12737077 Q340169 Q3305213
USER
How many occupations are demonstrated in greater number of medias and paintings than porter ?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1509714
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:P180 ?f . ?o rdf:type ontology:Q340169 . ?f rdf:type ontology:Q12737077 } UNION { ?o property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q3305213 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:P180 resource:Q1509714 . { { ?b rdf:type ontology:Q340169 } UNION { ?b rdf:type ontology:Q3305213 } } } } . FILTER ( ?t > ?w ) }
porter
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity porter
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:depicts ?f . ?o rdf:type ontology:media . ?f rdf:type ontology:occupation } UNION { ?o property:depicts ?f . ?f rdf:type ontology:occupation . ?o rdf:type ontology:painting } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:depicts resource:porter . { { ?b rdf:type ontology:media } UNION { ?b rdf:type ontology:painting } } } } . FILTER ( ?t > ?w ) }
[]
occupation media painting
SYSTEM
46
Q177220 Q131512 Q1401609 Q1124183 Q2995983 Q81710 Q1259917 Q45199 Q4504549 Q842782 Q486748 Q483501 Q215536 Q186360 Q19723482 Q1139055 Q1028181 Q733786 Q12097 Q12059906 Q14009165 Q10833314 Q1318187 Q4991371 Q250867 Q273108 Q10873124 Q589897 Q20489032 Q2730732 Q103163 Q207651 Q5716684 Q18575684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q384593 Q15296811 Q1281618 Q811122 Q42603 Q1630100
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q1509714
relation P180
type Q340169
type Q3305213
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:P180 ?f . ?o rdf:type ontology:Q340169 . ?f rdf:type ontology:Q12737077 } UNION { ?o property:P180 ?f . ?f rdf:type ontology:Q12737077 . ?o rdf:type ontology:Q3305213 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:P180 resource:Q1509714 . { { ?b rdf:type ontology:Q340169 } UNION { ?b rdf:type ontology:Q3305213 } } } } . FILTER ( ?t > ?w ) }
singer farmer vaquero lumberjack double-bassist shepherd violinist sailor religious servant detective pianist artist merchant nurse mandolinist tax collector painter monk king herder trapper tennis player scrivener soldier Catholic priest condottiero chess player mahout salt pan worker equestrian abbot executioner dancer embroiderer maid picador peasant fisherman musician poet police officer draughtsperson sculptor construction worker priest art model
46
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity porter
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?y ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?t ) WHERE { { ?o property:depicts ?f . ?o rdf:type ontology:media . ?f rdf:type ontology:occupation } UNION { ?o property:depicts ?f . ?f rdf:type ontology:occupation . ?o rdf:type ontology:painting } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { ?b property:depicts resource:porter . { { ?b rdf:type ontology:media } UNION { ?b rdf:type ontology:painting } } } } . FILTER ( ?t > ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q12097
P180
Q12737077 Q340169 Q3305213
USER
And how about king?
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q340169
type Q3305213
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P180 resource:Q12097 . { { ?m rdf:type ontology:Q340169 } UNION { ?m rdf:type ontology:Q3305213 } } } } . FILTER ( ?o > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?o ) WHERE { VALUES ( ?k ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?y rdf:type ?k } GROUP BY ?h } }
king
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:depicts resource:king . { { ?m rdf:type ontology:media } UNION { ?m rdf:type ontology:painting } } } } . FILTER ( ?o > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?o ) WHERE { VALUES ( ?k ) { ( ontology:media ) ( ontology:painting ) } . ?y rdf:type ?k } GROUP BY ?h } }
[]
occupation media painting
SYSTEM
10
Q19723482 Q733786 Q12059906 Q4991371 Q20489032 Q5716684 Q639669 Q15296811 Q42603 Q1630100
(c(Q340169)|c(Q3305213),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q12097
relation P180
type Q340169
type Q3305213
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:P180 resource:Q12097 . { { ?m rdf:type ontology:Q340169 } UNION { ?m rdf:type ontology:Q3305213 } } } } . FILTER ( ?o > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?o ) WHERE { VALUES ( ?k ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } . ?y rdf:type ?k } GROUP BY ?h } }
mandolinist monk herder soldier salt pan worker dancer musician draughtsperson priest art model
10
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
action count
action filter_multi_types
action find_reverse
entity king
relation depicts
type media
type painting
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?w ) WHERE { ?m property:depicts resource:king . { { ?m rdf:type ontology:media } UNION { ?m rdf:type ontology:painting } } } } . FILTER ( ?o > ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?o ) WHERE { VALUES ( ?k ) { ( ontology:media ) ( ontology:painting ) } . ?y rdf:type ?k } GROUP BY ?h } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1495550
P102
Q7210356
USER
Which party is Gaston Bazile affiliated with ?
(Q1495550,P102,c(Q7210356))
action filter_type
action find
entity Q1495550
relation P102
type Q7210356
['Q1495550', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1495550 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Gaston Bazile
action filter_type
action find
entity Gaston Bazile
relation member of political party
type political organization
['Gaston Bazile', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Gaston_Bazile property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q11502881
SYSTEM
Republican, Radical and Radical-Socialist Party
Q11502881
(Q1495550,P102,c(Q7210356))
action filter_type
action find
entity Q1495550
relation P102
type Q7210356
Gaston Bazile is affiliated with [ANSWER]
['Q1495550', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q1495550 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Republican, Radical and Radical-Socialist Party
Gaston Bazile is affiliated with Republican, Radical and Radical-Socialist Party
Republican, Radical and Radical-Socialist Party
action filter_type
action find
entity Gaston Bazile
relation member of political party
type political organization
['Gaston Bazile', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Gaston_Bazile property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q12167580
Q7210356
USER
And how about Vitaliy Khomutynnik?
(Q12167580,P102,c(Q7210356))
action filter_type
action find
entity Q12167580
relation P102
type Q7210356
['Q12167580', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q12167580 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Vitaliy Khomutynnik
action filter_type
action find
entity Vitaliy Khomutynnik
relation member of political party
type political organization
['Vitaliy Khomutynnik', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Vitaliy_Khomutynnik property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q4266
SYSTEM
Party of Regions
Q4266
(Q12167580,P102,c(Q7210356))
action filter_type
action find
entity Q12167580
relation P102
type Q7210356
[ANSWER]
['Q12167580', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q12167580 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Party of Regions
Party of Regions
action filter_type
action find
entity Vitaliy Khomutynnik
relation member of political party
type political organization
['Vitaliy Khomutynnik', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Vitaliy_Khomutynnik property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q4266 Q30675 Q212
P17
Q15617994
USER
Is that political organization present in Minya Governorate and Ukraine ?
(Q4266,P17,Q30675) (Q4266,P17,Q212)
action is_in
entity Q4266
action intersection
action find_reverse
entity Q30675
relation P17
action find_reverse
entity Q212
relation P17
['Q4266', 'P17', 'Q30675'] ['Q4266', 'P17', 'Q212']
ASK WHERE { resource:Q4266 property:P17 resource:Q30675 . resource:Q4266 property:P17 resource:Q212 }
Party of Regions Minya Governorate Ukraine
action is_in
entity Party of Regions
action intersection
action find_reverse
entity Minya Governorate
relation country
action find_reverse
entity Ukraine
relation country
['Party of Regions', 'country', 'Minya Governorate'] ['Party of Regions', 'country', 'Ukraine']
ASK WHERE { resource:Party_of_Regions property:country resource:Minya_Governorate . resource:Party_of_Regions property:country resource:Ukraine }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q4266,P17,Q30675) (Q4266,P17,Q212)
action is_in
entity Q4266
action intersection
action find_reverse
entity Q30675
relation P17
action find_reverse
entity Q212
relation P17
[ANSWER]
['Q4266', 'P17', 'Q30675'] ['Q4266', 'P17', 'Q212']
ASK WHERE { resource:Q4266 property:P17 resource:Q30675 . resource:Q4266 property:P17 resource:Q212 }
NO and YES respectively
action is_in
entity Party of Regions
action intersection
action find_reverse
entity Minya Governorate
relation country
action find_reverse
entity Ukraine
relation country
['Party of Regions', 'country', 'Minya Governorate'] ['Party of Regions', 'country', 'Ukraine']
ASK WHERE { resource:Party_of_Regions property:country resource:Minya_Governorate . resource:Party_of_Regions property:country resource:Ukraine }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11502881 Q500033
P17
Q15617994
USER
Is Republican, Radical and Radical-Socialist Party located in Shah Alam ?
(Q11502881,P17,Q500033)
action is_in
entity Q500033
action find
entity Q11502881
relation P17
['Q11502881', 'P17', 'Q500033']
ASK WHERE { resource:Q11502881 property:P17 resource:Q500033 }
Republican, Radical and Radical-Socialist Party Shah Alam
action is_in
entity Shah Alam
action find
entity Republican, Radical and Radical-Socialist Party
relation country
['Republican, Radical and Radical-Socialist Party', 'country', 'Shah Alam']
ASK WHERE { resource:Republican,_Radical_and_Radical-Socialist_Party property:country resource:Shah_Alam }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q11502881,P17,Q500033)
action is_in
entity Q500033
action find
entity Q11502881
relation P17
[ANSWER]
['Q11502881', 'P17', 'Q500033']
ASK WHERE { resource:Q11502881 property:P17 resource:Q500033 }
No
action is_in
entity Shah Alam
action find
entity Republican, Radical and Radical-Socialist Party
relation country
['Republican, Radical and Radical-Socialist Party', 'country', 'Shah Alam']
ASK WHERE { resource:Republican,_Radical_and_Radical-Socialist_Party property:country resource:Shah_Alam }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q2342494 Q386724
USER
Which occupations were max number of collectables or works mainly about ?
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { { ?j property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q386724 } UNION { ?j property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?l WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } . ?d rdf:type ?u } GROUP BY ?l } . FILTER ( ?x = ?f ) }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { { ?j property:main_subject ?r . ?r rdf:type ontology:occupation . ?j rdf:type ontology:work } UNION { ?j property:main_subject ?r . ?r rdf:type ontology:occupation . ?j rdf:type ontology:collectable } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?l WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:work ) } . ?d rdf:type ?u } GROUP BY ?l } . FILTER ( ?x = ?f ) }
[]
occupation collectable work
Q16746569
SYSTEM
high school student
Q16746569
(c(Q2342494)|c(Q386724),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
Max number of collectables or works mainly were about a [ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { { ?j property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q386724 } UNION { ?j property:P921 ?r . ?r rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q2342494 } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?l WHERE { VALUES ( ?u ) { ( ontology:Q2342494 ) ( ontology:Q386724 ) } . ?d rdf:type ?u } GROUP BY ?l } . FILTER ( ?x = ?f ) }
high school student
Max number of collectables or works mainly were about a high school student
high school student
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type work
[[{'concept': 'collectable'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?f ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) ?r WHERE { { ?j property:main_subject ?r . ?r rdf:type ontology:occupation . ?j rdf:type ontology:work } UNION { ?j property:main_subject ?r . ?r rdf:type ontology:occupation . ?j rdf:type ontology:collectable } } GROUP BY ?r } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?l WHERE { VALUES ( ?u ) { ( ontology:collectable ) ( ontology:work ) } . ?d rdf:type ?u } GROUP BY ?l } . FILTER ( ?x = ?f ) }
[]