Simple Question (Direct)
Simple Question
Q2423372
P39
Q12737077
USER
Which occupations were the positions occupied by Thomas Davenport ?
(Q2423372,P39,c(Q12737077))
action filter_type
action find
entity Q2423372
relation P39
type Q12737077
['Q2423372', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q2423372 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Thomas Davenport
action filter_type
action find
entity Thomas Davenport
relation position held
type occupation
['Thomas Davenport', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Davenport property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q13218630 Q18694588
SYSTEM
United States representative, Member of the United States House of Representatives from Virginia
Q13218630 Q18694588
(Q2423372,P39,c(Q12737077))
action filter_type
action find
entity Q2423372
relation P39
type Q12737077
[ANSWERS]
['Q2423372', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q2423372 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
United States representative Member of the United States House of Representatives from Virginia
United States representative Member of the United States House of Representatives from Virginia
action filter_type
action find
entity Thomas Davenport
relation position held
type occupation
['Thomas Davenport', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_Davenport property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q13218630 Q18694588
P17
Q15617994
USER
Which administrative territories are United States representative and Member of the United States House of Representatives from Virginia a part of ?
(Q13218630,P17,c(Q15617994)) (Q18694588,P17,c(Q15617994))
action union
action filter_type
action find
entity Q13218630
relation P17
type Q15617994
action filter_type
action find
entity Q18694588
relation P17
type Q15617994
['Q13218630', 'P17', {'concept': 'Q15617994'}] ['Q18694588', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q13218630 property:P17 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q18694588 property:P17 ?v . ?v rdf:type ontology:Q15617994 } }
United States representative Member of the United States House of Representatives from Virginia
action union
action filter_type
action find
entity United States representative
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Member of the United States House of Representatives from Virginia
relation country
type designation for an administrative territorial entity
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the United States House of Representatives from Virginia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:United_States_representative property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Member_of_the_United_States_House_of_Representatives_from_Virginia property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q30
SYSTEM
United States of America
Q30 Q30
(Q13218630,P17,c(Q15617994)) (Q18694588,P17,c(Q15617994))
action union
action filter_type
action find
entity Q13218630
relation P17
type Q15617994
action filter_type
action find
entity Q18694588
relation P17
type Q15617994
[ANSWER] and [ANSWER] are United States representative and Member of the United States House of Representatives from Virginia a part of
['Q13218630', 'P17', {'concept': 'Q15617994'}] ['Q18694588', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q13218630 property:P17 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q18694588 property:P17 ?v . ?v rdf:type ontology:Q15617994 } }
United States of America United States of America
United States of America and United States of America are United States representative and Member of the United States House of Representatives from Virginia a part of
United States of America United States of America
action union
action filter_type
action find
entity United States representative
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Member of the United States House of Representatives from Virginia
relation country
type designation for an administrative territorial entity
['United States representative', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Member of the United States House of Representatives from Virginia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:United_States_representative property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Member_of_the_United_States_House_of_Representatives_from_Virginia property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q654437
P180
Q12737077 Q1792379 Q18783400
USER
How many occupations are depicted in greater number of art genres or genres of sculpture than executor ?
(c(Q1792379)|c(Q18783400),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 Q18783400
action count
action filter_multi_types
action find_reverse
entity Q654437
relation P180
type Q1792379
type Q18783400
[[{'concept': 'Q1792379'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q1792379 ) ( ontology:Q18783400 ) } . ?s rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P180 resource:Q654437 . { { ?v rdf:type ontology:Q1792379 } UNION { ?v rdf:type ontology:Q18783400 } } } } . FILTER ( ?f > ?l ) }
executor
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 genre of sculpture
action count
action filter_multi_types
action find_reverse
entity executor
relation depicts
type art genre
type genre of sculpture
[[{'concept': 'art genre'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?r WHERE { VALUES ( ?n ) { ( ontology:art_genre ) ( ontology:genre_of_sculpture ) } . ?s rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:depicts resource:executor . { { ?v rdf:type ontology:art_genre } UNION { ?v rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?f > ?l ) }
[]
occupation art genre genre of sculpture
SYSTEM
4
Q131512 Q2079936 Q4991371 Q2730732
(c(Q1792379)|c(Q18783400),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 Q18783400
action count
action filter_multi_types
action find_reverse
entity Q654437
relation P180
type Q1792379
type Q18783400
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q1792379 ) ( ontology:Q18783400 ) } . ?s rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:P180 resource:Q654437 . { { ?v rdf:type ontology:Q1792379 } UNION { ?v rdf:type ontology:Q18783400 } } } } . FILTER ( ?f > ?l ) }
farmer king of marksmen 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 genre of sculpture
action count
action filter_multi_types
action find_reverse
entity executor
relation depicts
type art genre
type genre of sculpture
[[{'concept': 'art genre'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) ?r WHERE { VALUES ( ?n ) { ( ontology:art_genre ) ( ontology:genre_of_sculpture ) } . ?s rdf:type ?n } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { ?v property:depicts resource:executor . { { ?v rdf:type ontology:art_genre } UNION { ?v rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?f > ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q30185
P180
Q12737077 Q1792379 Q18783400
USER
And how about mayor?
(c(Q1792379)|c(Q18783400),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 Q18783400
action count
action filter_multi_types
action find_reverse
entity Q30185
relation P180
type Q1792379
type Q18783400
[[{'concept': 'Q1792379'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { { ?q property:P180 ?s . ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q1792379 } UNION { ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q18783400 . ?q property:P180 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P180 resource:Q30185 . { ?h rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1792379 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?i > ?b ) }
mayor
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 genre of sculpture
action count
action filter_multi_types
action find_reverse
entity mayor
relation depicts
type art genre
type genre of sculpture
[[{'concept': 'art genre'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { { ?q property:depicts ?s . ?s rdf:type ontology:occupation . ?q rdf:type ontology:art_genre } UNION { ?s rdf:type ontology:occupation . ?q rdf:type ontology:genre_of_sculpture . ?q property:depicts ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:depicts resource:mayor . { ?h rdf:type ?z . VALUES ( ?z ) { ( ontology:art_genre ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?i > ?b ) }
[]
occupation art genre genre of sculpture
SYSTEM
4
Q131512 Q2079936 Q4991371 Q2730732
(c(Q1792379)|c(Q18783400),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 Q18783400
action count
action filter_multi_types
action find_reverse
entity Q30185
relation P180
type Q1792379
type Q18783400
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { { ?q property:P180 ?s . ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q1792379 } UNION { ?s rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q18783400 . ?q property:P180 ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P180 resource:Q30185 . { ?h rdf:type ?z . VALUES ( ?z ) { ( ontology:Q1792379 ) ( ontology:Q18783400 ) } } } } . FILTER ( ?i > ?b ) }
farmer king of marksmen 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 genre of sculpture
action count
action filter_multi_types
action find_reverse
entity mayor
relation depicts
type art genre
type genre of sculpture
[[{'concept': 'art genre'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) ?s WHERE { { ?q property:depicts ?s . ?s rdf:type ontology:occupation . ?q rdf:type ontology:art_genre } UNION { ?s rdf:type ontology:occupation . ?q rdf:type ontology:genre_of_sculpture . ?q property:depicts ?s } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:depicts resource:mayor . { ?h rdf:type ?z . VALUES ( ?z ) { ( ontology:art_genre ) ( ontology:genre_of_sculpture ) } } } } . FILTER ( ?i > ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q838948 Q386724
USER
Which occupations were the main subjects in the work exactly 2 works of art or works ?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 2
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?h WHERE { VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } . ?c rdf:type ?q } GROUP BY ?h } . FILTER ( ?l = 2 ) }
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
value 2
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?h WHERE { VALUES ( ?q ) { ( ontology:work ) ( ontology:work_of_art ) } . ?c rdf:type ?q } GROUP BY ?h } . FILTER ( ?l = 2 ) }
[]
occupation work of art work
Q1930187 Q101539 Q16003605
SYSTEM
journalist, flight attendant, elementary school student
Q1930187 Q101539 Q16003605
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
value 2
[ANSWERS] were the main subjects in the work exactly 2 works of art or works
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?h WHERE { VALUES ( ?q ) { ( ontology:Q386724 ) ( ontology:Q838948 ) } . ?c rdf:type ?q } GROUP BY ?h } . FILTER ( ?l = 2 ) }
journalist flight attendant elementary school student
Journalist, flight attendant and elementary school student were the main subjects in the work exactly 2 works of art or works
journalist flight attendant elementary school student
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
value 2
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?l ) ?h WHERE { VALUES ( ?q ) { ( ontology:work ) ( ontology:work_of_art ) } . ?c rdf:type ?q } GROUP BY ?h } . FILTER ( ?l = 2 ) }
[]