Simple Question (Direct)
Simple Question
Q15998681
P106
Q151885
USER
Which concept is the profession of Ralph Gilman ?
(Q15998681,P106,c(Q151885))
action filter_type
action find
entity Q15998681
relation P106
type Q151885
['Q15998681', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?o WHERE { resource:Q15998681 property:P106 ?o . ?o rdf:type ontology:Q151885 }
Ralph Gilman
action filter_type
action find
entity Ralph Gilman
relation occupation
type concept
['Ralph Gilman', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?o WHERE { resource:Ralph_Gilman property:occupation ?o . ?o rdf:type ontology:concept }
[]
concept
Q10843402
SYSTEM
swimmer
Q10843402
(Q15998681,P106,c(Q151885))
action filter_type
action find
entity Q15998681
relation P106
type Q151885
The [ANSWER] is the profession of Ralph Gilman
['Q15998681', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?o WHERE { resource:Q15998681 property:P106 ?o . ?o rdf:type ontology:Q151885 }
swimmer
The swimmer is the profession of Ralph Gilman
swimmer
action filter_type
action find
entity Ralph Gilman
relation occupation
type concept
['Ralph Gilman', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?o WHERE { resource:Ralph_Gilman property:occupation ?o . ?o rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15998681
P734
Q82799
USER
Which name is associated with that person ?
(Q10843402,P734,c(Q82799))
action filter_type
action find
entity Q15998681
relation P734
type Q82799
['Q10843402', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q15998681 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Ralph Gilman
action filter_type
action find
entity Ralph Gilman
relation family name
type name
['swimmer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Ralph_Gilman property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q16275984
SYSTEM
Gilman
Q16275984
(Q10843402,P734,c(Q82799))
action filter_type
action find
entity Q15998681
relation P734
type Q82799
[ANSWER] is associated with that person
['Q10843402', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q15998681 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Gilman
Gilman is associated with that person
Gilman
action filter_type
action find
entity Ralph Gilman
relation family name
type name
['swimmer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Ralph_Gilman property:family_name ?i . ?i rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q151885 Q3305213 Q2342494
USER
Which concepts are demonstrated in max number of paintings and collectables ?
(c(Q3305213)|c(Q2342494),P180,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) ?k WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } } GROUP BY ?k } . FILTER ( ?c = ?a ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?w WHERE { { ?s property:P180 ?w . ?w rdf:type ontology:Q151885 . ?s rdf:type ontology:Q3305213 } UNION { ?s property:P180 ?w . ?w rdf:type ontology:Q151885 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?w } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) ?k WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:painting ) ( ontology:collectable ) } } GROUP BY ?k } . FILTER ( ?c = ?a ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?w WHERE { { ?s property:depicts ?w . ?w rdf:type ontology:concept . ?s rdf:type ontology:painting } UNION { ?s property:depicts ?w . ?w rdf:type ontology:concept . ?s rdf:type ontology:collectable } } GROUP BY ?w } } }
[]
concept painting collectable
Q467
SYSTEM
woman
Q467
(c(Q3305213)|c(Q2342494),P180,c(Q151885))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q151885
type Q2342494
[ANSWER] is demonstrated in max number of paintings and collectables
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) ?k WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } } GROUP BY ?k } . FILTER ( ?c = ?a ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?w WHERE { { ?s property:P180 ?w . ?w rdf:type ontology:Q151885 . ?s rdf:type ontology:Q3305213 } UNION { ?s property:P180 ?w . ?w rdf:type ontology:Q151885 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?w } } }
woman
Woman is demonstrated in max number of paintings and collectables
woman
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type concept
type painting
action find_reverse_tuple_counts
relation depicts
type concept
type collectable
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?c ) ?k WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:painting ) ( ontology:collectable ) } } GROUP BY ?k } . FILTER ( ?c = ?a ) . { SELECT DISTINCT ( MAX ( ?z ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) ?w WHERE { { ?s property:depicts ?w . ?w rdf:type ontology:concept . ?s rdf:type ontology:painting } UNION { ?s property:depicts ?w . ?w rdf:type ontology:concept . ?s rdf:type ontology:collectable } } GROUP BY ?w } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q18530279
P248
Q1209283 Q43229 Q502895
USER
How many people have been acknowledged in around the same number of electronic medias and organizations as John Clarke ?
(c(Q502895),P248,c(Q1209283)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q18530279
relation P248
type Q1209283
type Q43229
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { { ?q property:P248 ?m . ?q rdf:type ontology:Q502895 . ?m rdf:type ontology:Q1209283 } UNION { ?q property:P248 ?m . ?q rdf:type ontology:Q502895 . ?m rdf:type ontology:Q43229 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q18530279 property:P248 ?i . { { ?i rdf:type ontology:Q1209283 } UNION { ?i rdf:type ontology:Q43229 } } } } . FILTER ( ?v = ?c ) }
John Clarke
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Clarke
relation stated in
type electronic media
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { { ?q property:stated_in ?m . ?q rdf:type ontology:common_name . ?m rdf:type ontology:electronic_media } UNION { ?q property:stated_in ?m . ?q rdf:type ontology:common_name . ?m rdf:type ontology:organization } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:John_Clarke property:stated_in ?i . { { ?i rdf:type ontology:electronic_media } UNION { ?i rdf:type ontology:organization } } } } . FILTER ( ?v = ?c ) }
[]
electronic media organization common name
SYSTEM
342
Q16859599 Q6130307 Q6255166 Q5239877 Q5239876 Q5239879 Q16210814 Q16013737 Q7342716 Q7342713 Q5239896 Q5239895 Q2699786 Q18529684 Q6237327 Q6237320 Q6237321 Q6237323 Q6237329 Q16859511 Q16011002 Q17402519 Q6257923 Q6255435 Q6262994 Q6262996 Q6262991 Q15456236 Q6249889 Q6255181 Q6249883 Q15996304 Q18527481 Q16225368 Q861695 Q6262693 Q16730720 Q6236103 Q6242872 Q6260673 Q6260669 Q6260667 Q6236088 Q16062974 Q18546647 Q6236083 Q6236081 Q6221407 Q9069823 Q7351119 Q6145026 Q5606266 Q5606264 Q5606262 Q5606263 Q18546633 Q18546632 Q5606268 Q16857953 Q16849502 Q16244253 Q22936292 Q16026267 Q18530177 Q10978488 Q18810870 Q16195622 Q6249899 Q1879480 Q661947 Q6246971 Q16859464 Q18810862 Q18810864 Q11035229 Q16023331 Q8019371 Q18530179 Q18527610 Q5241202 Q6260355 Q18534216 Q18534214 Q6130319 Q6130313 Q6260650 Q6255174 Q6260652 Q6260655 Q6249873 Q6255172 Q6249879 Q6221412 Q16060029 Q7351128 Q7351124 Q7351121 Q7351123 Q16908903 Q16863901 Q21511610 Q3528952 Q6237337 Q1776423 Q6255426 Q6228766 Q5232850 Q5232857 Q18546651 Q5232859 Q18529777 Q7795179 Q6257938 Q1916387 Q8018837 Q18527125 Q3116279 Q8018834 Q6145023 Q6145020 Q11979017 Q15999511 Q18530176 Q18530175 Q18530173 Q18385557 Q6249895 Q18530178 Q16848723 Q18810866 Q16015315 Q8004402 Q5537303 Q18530282 Q15990337 Q11154564 Q16886405 Q18530281 Q18530280 Q3703350 Q18338285 Q6242867 Q6242862 Q704916 Q18531059 Q18527375 Q16850547 Q6236099 Q18338267 Q18531060 Q16066831 Q6255420 Q16059754 Q11919459 Q18527305 Q18603564 Q6262713 Q6239287 Q6130325 Q6130320 Q5606271 Q5606273 Q5606272 Q5606274 Q5606277 Q18546628 Q5144956 Q17626521 Q18546621 Q18559712 Q18559713 Q16071955 Q5239912 Q6221426 Q6221428 Q14950004 Q15994621 Q15994622 Q6221434 Q7493391 Q8020388 Q6239263 Q6237345 Q8020387 Q8020385 Q16062311 Q15461577 Q16031816 Q6255407 Q18527054 Q6257940 Q5239881 Q5239884 Q8019900 Q8019902 Q15995818 Q5240337 Q6228730 Q15990069 Q6265189 Q16090838 Q18534834 Q18534833 Q18534831 Q4786783 Q16065305 Q16228915 Q15637844 Q4679001 Q6237308 Q6237302 Q16194812 Q8017685 Q8017687 Q15485947 Q8017683 Q8017682 Q5241199 Q6241395 Q5241193 Q6263006 Q15452052 Q6255417 Q16105132 Q6262977 Q18593210 Q6246952 Q5537315 Q6246950 Q6246958 Q526328 Q5537319 Q18527381 Q18527209 Q16027113 Q16043626 Q18166520 Q18546505 Q18530220 Q18526878 Q5239909 Q18546619 Q18546617 Q16105467 Q6255177 Q5239906 Q6221432 Q6236101 Q5144950 Q5144959 Q6255170 Q3703375 Q5090064 Q1459540 Q16857323 Q7342708 Q5239885 Q5239886 Q5233458 Q15982602 Q5233453 Q5233457 Q8020399 Q6239258 Q8020394 Q8020396 Q8020390 Q6221424 Q21515457 Q17385895 Q16466630 Q16031827 Q6255286 Q5241196 Q6255179 Q6262733 Q6262982 Q6262980 Q6262984 Q18530275 Q18530276 Q18530278 Q18530279 Q15994581 Q6244744 Q6244748 Q6470045 Q2778111 Q18546659 Q18546658 Q16859187 Q18546653 Q18546650 Q18546656 Q18546655 Q5240358 Q26707638 Q5601513 Q16142930 Q6237318 Q17021417 Q6130341 Q5606257 Q4955213 Q5606258 Q16067356 Q15782600 Q18530180 Q18530181 Q16095641 Q6263011 Q10363011 Q6257915 Q6145009 Q6145005 Q6145007 Q6145001 Q5233462 Q5233466 Q5233469 Q333770 Q9311159 Q6242832 Q5537324 Q5537325 Q6246965 Q6246963 Q6246961 Q16066618 Q8020402 Q6262709 Q6262704 Q8019367 Q6262700 Q6242842 Q16225515 Q18527351 Q5241210 Q15990004 Q16065563 Q968659 Q18546195
(c(Q502895),P248,c(Q1209283)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q18530279
relation P248
type Q1209283
type Q43229
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { { ?q property:P248 ?m . ?q rdf:type ontology:Q502895 . ?m rdf:type ontology:Q1209283 } UNION { ?q property:P248 ?m . ?q rdf:type ontology:Q502895 . ?m rdf:type ontology:Q43229 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q18530279 property:P248 ?i . { { ?i rdf:type ontology:Q1209283 } UNION { ?i rdf:type ontology:Q43229 } } } } . FILTER ( ?v = ?c ) }
William Thompson James Brown John Roberts David Smith David Smith David Smith David Evans John Roberts Robert Campbell Robert Campbell David Smith David Smith Colin Campbell David Davies John Hall John Hall John Hall John Hall John Hall John Robinson John Parker Greg Smith John Simpson John Rogers John Ward John Ward John Ward William Williams John Murphy John Roberts John Murphy John Martin Robert Williams John Rogers William Robinson John Walker John Kennedy John Gray John Kennedy John Thompson John Thompson John Thompson John Gray James Walker John Williams John Gray John Gray John Bell Robert Williams Robert Williams James Walker Greg Smith Greg Smith Greg Smith Greg Smith John Smith John Smith Greg Smith John Martin David Wilson John Martin Gilles De Haes John Rogers John Brown John Jackson John Robinson John Kennedy John Murphy Léonard Limousin John Davies John Martin John Parker John Robinson John Robinson John Carter William Walker William Thompson John Brown John Smith David Wilson John Taylor John Ward John Taylor James Brown James Brown John Thompson John Roberts John Thompson John Thompson John Murphy John Roberts John Murphy John Bell David Davies Robert Williams Robert Williams Robert Williams Robert Williams William Walker David Davies Dunja Lango George Brown John Hall Raud the Strong John Rogers John Davies David Davies David Davies John Williams David Davies James Brown Thomas Williams John Simpson David Smith William Stewart John Jones Greg Smith William Stewart James Walker James Walker John Martin William Robinson John Brown John Brown John Brown John Walker John Murphy John Brown John Walker John Robinson David Thomas William Anderson George Brown John Randall Clarke James Walker David Evans John Walker John Clarke John Clarke David Thomas Borja Mendia John Kennedy John Kennedy Li Ruihuan William Brown John Murray John Martin John Gray Ethan Wragge William Brown James Walker John Rogers James Brown Epimenides John Martin William Thompson John Walker John Hill James Brown James Brown Greg Smith Greg Smith Greg Smith Greg Smith Greg Smith John Smith Colin Campbell Colin Campbell John Roland Phillips David Christopher Davies David Lewis Davies John Murphy David Smith John Bell John Bell John Hill John Martin John Martin John Bell Shelby Harris William Williams John Hill John Hall William Williams William Williams John Martin John Martin William Walker John Rogers John Hill John Simpson David Smith David Smith William Walker William Walker John Thompson David Thomas John Davies John Jackson John Young John Kennedy John Davis John Davis John Davis John Bell George Brown John Wilson David Smith Adam Dunkels John Hall John Hall David Smith William Robinson William Robinson John Walker William Robinson William Robinson David Wilson John Jackson David Wilson John Ward John Rogers John Rogers John Kennedy John Ward John Davies John Martin George Brown John Martin John Martin Dairis Bertāns George Brown John Murray John Lewis John Roberts William Thompson William Thompson John Campbell John Campbell John Evans David Smith John Phillips John Phillips John Rogers John Roberts David Smith John Bell John Gray Colin Campbell Colin Campbell John Roberts David Wilson George Brown John Thompson John Evans Robert Campbell David Smith David Smith David Evans John Young David Evans David Evans William Williams John Hill William Williams William Williams William Williams John Bell Rolando Valdès-Blain David Evans John Bell John Rogers John Robinson David Wilson John Roberts John Walker John Ward John Ward John Ward John Clarke John Clarke John Clarke John Clarke John Lewis John Lewis John Lewis Lady Colin Campbell Greg Smith John Williams John Williams James Walker John Williams John Williams John Williams John Williams David Thomas Delobel Colin Campbell John Murphy John Hall John Walker James Brown Greg Smith Brady Sallee Greg Smith John Walker John Hill John Brown John Wright Brown John Hall John Ward Risques Pereira John Simpson James Walker James Walker James Walker James Walker David Evans David Evans David Evans Victorinus Robert Williams John Kennedy George Brown George Brown John Martin John Martin John Martin John Ward William Williams John Walker John Walker William Thompson John Walker John Kennedy John Simpson John Moore David Wilson John Gray William Thompson Carsten Tank George Smith
342
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Clarke
relation stated in
type electronic media
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { { ?q property:stated_in ?m . ?q rdf:type ontology:common_name . ?m rdf:type ontology:electronic_media } UNION { ?q property:stated_in ?m . ?q rdf:type ontology:common_name . ?m rdf:type ontology:organization } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:John_Clarke property:stated_in ?i . { { ?i rdf:type ontology:electronic_media } UNION { ?i rdf:type ontology:organization } } } } . FILTER ( ?v = ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q6262733
P248
Q1209283 Q43229 Q502895
USER
And what about John Walker?
(c(Q502895),P248,c(Q1209283)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q6262733
relation P248
type Q1209283
type Q43229
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?s ) WHERE { { ?e rdf:type ontology:Q502895 . ?a rdf:type ontology:Q43229 . ?e property:P248 ?a } UNION { ?e rdf:type ontology:Q502895 . ?a rdf:type ontology:Q1209283 . ?e property:P248 ?a } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q6262733 property:P248 ?i . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q43229 ) ( ontology:Q1209283 ) } } } } . FILTER ( ?s = ?c ) }
John Walker
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Walker
relation stated in
type electronic media
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?s ) WHERE { { ?e rdf:type ontology:common_name . ?a rdf:type ontology:organization . ?e property:stated_in ?a } UNION { ?e rdf:type ontology:common_name . ?a rdf:type ontology:electronic_media . ?e property:stated_in ?a } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:John_Walker property:stated_in ?i . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:organization ) ( ontology:electronic_media ) } } } } . FILTER ( ?s = ?c ) }
[]
electronic media organization common name
SYSTEM
342
Q16859599 Q6130307 Q6255166 Q5239877 Q5239876 Q5239879 Q16210814 Q16013737 Q7342716 Q7342713 Q5239896 Q5239895 Q2699786 Q18529684 Q6237327 Q6237320 Q6237321 Q6237323 Q6237329 Q16859511 Q16011002 Q17402519 Q6257923 Q6255435 Q6262994 Q6262996 Q6262991 Q15456236 Q6249889 Q6255181 Q6249883 Q15996304 Q18527481 Q16225368 Q861695 Q6262693 Q16730720 Q6236103 Q6242872 Q6260673 Q6260669 Q6260667 Q6236088 Q16062974 Q18546647 Q6236083 Q6236081 Q6221407 Q9069823 Q7351119 Q6145026 Q5606266 Q5606264 Q5606262 Q5606263 Q18546633 Q18546632 Q5606268 Q16857953 Q16849502 Q16244253 Q22936292 Q16026267 Q18530177 Q10978488 Q18810870 Q16195622 Q6249899 Q1879480 Q661947 Q6246971 Q16859464 Q18810862 Q18810864 Q11035229 Q16023331 Q8019371 Q18530179 Q18527610 Q5241202 Q6260355 Q18534216 Q18534214 Q6130319 Q6130313 Q6260650 Q6255174 Q6260652 Q6260655 Q6249873 Q6255172 Q6249879 Q6221412 Q16060029 Q7351128 Q7351124 Q7351121 Q7351123 Q16908903 Q16863901 Q21511610 Q3528952 Q6237337 Q1776423 Q6255426 Q6228766 Q5232850 Q5232857 Q18546651 Q5232859 Q18529777 Q7795179 Q6257938 Q1916387 Q8018837 Q18527125 Q3116279 Q8018834 Q6145023 Q6145020 Q11979017 Q15999511 Q18530176 Q18530175 Q18530173 Q18385557 Q6249895 Q18530178 Q16848723 Q18810866 Q16015315 Q8004402 Q5537303 Q18530282 Q15990337 Q11154564 Q16886405 Q18530281 Q18530280 Q3703350 Q18338285 Q6242867 Q6242862 Q704916 Q18531059 Q18527375 Q16850547 Q6236099 Q18338267 Q18531060 Q16066831 Q6255420 Q16059754 Q11919459 Q18527305 Q18603564 Q6262713 Q6239287 Q6130325 Q6130320 Q5606271 Q5606273 Q5606272 Q5606274 Q5606277 Q18546628 Q5144956 Q17626521 Q18546621 Q18559712 Q18559713 Q16071955 Q5239912 Q6221426 Q6221428 Q14950004 Q15994621 Q15994622 Q6221434 Q7493391 Q8020388 Q6239263 Q6237345 Q8020387 Q8020385 Q16062311 Q15461577 Q16031816 Q6255407 Q18527054 Q6257940 Q5239881 Q5239884 Q8019900 Q8019902 Q15995818 Q5240337 Q6228730 Q15990069 Q6265189 Q16090838 Q18534834 Q18534833 Q18534831 Q4786783 Q16065305 Q16228915 Q15637844 Q4679001 Q6237308 Q6237302 Q16194812 Q8017685 Q8017687 Q15485947 Q8017683 Q8017682 Q5241199 Q6241395 Q5241193 Q6263006 Q15452052 Q6255417 Q16105132 Q6262977 Q18593210 Q6246952 Q5537315 Q6246950 Q6246958 Q526328 Q5537319 Q18527381 Q18527209 Q16027113 Q16043626 Q18166520 Q18546505 Q18530220 Q18526878 Q5239909 Q18546619 Q18546617 Q16105467 Q6255177 Q5239906 Q6221432 Q6236101 Q5144950 Q5144959 Q6255170 Q3703375 Q5090064 Q1459540 Q16857323 Q7342708 Q5239885 Q5239886 Q5233458 Q15982602 Q5233453 Q5233457 Q8020399 Q6239258 Q8020394 Q8020396 Q8020390 Q6221424 Q21515457 Q17385895 Q16466630 Q16031827 Q6255286 Q5241196 Q6255179 Q6262733 Q6262982 Q6262980 Q6262984 Q18530275 Q18530276 Q18530278 Q18530279 Q15994581 Q6244744 Q6244748 Q6470045 Q2778111 Q18546659 Q18546658 Q16859187 Q18546653 Q18546650 Q18546656 Q18546655 Q5240358 Q26707638 Q5601513 Q16142930 Q6237318 Q17021417 Q6130341 Q5606257 Q4955213 Q5606258 Q16067356 Q15782600 Q18530180 Q18530181 Q16095641 Q6263011 Q10363011 Q6257915 Q6145009 Q6145005 Q6145007 Q6145001 Q5233462 Q5233466 Q5233469 Q333770 Q9311159 Q6242832 Q5537324 Q5537325 Q6246965 Q6246963 Q6246961 Q16066618 Q8020402 Q6262709 Q6262704 Q8019367 Q6262700 Q6242842 Q16225515 Q18527351 Q5241210 Q15990004 Q16065563 Q968659 Q18546195
(c(Q502895),P248,c(Q1209283)|c(Q43229))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1209283
action find_tuple_counts
relation P248
type Q502895
type Q43229
action count
action filter_multi_types
action find
entity Q6262733
relation P248
type Q1209283
type Q43229
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1209283'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?s ) WHERE { { ?e rdf:type ontology:Q502895 . ?a rdf:type ontology:Q43229 . ?e property:P248 ?a } UNION { ?e rdf:type ontology:Q502895 . ?a rdf:type ontology:Q1209283 . ?e property:P248 ?a } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:Q6262733 property:P248 ?i . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q43229 ) ( ontology:Q1209283 ) } } } } . FILTER ( ?s = ?c ) }
William Thompson James Brown John Roberts David Smith David Smith David Smith David Evans John Roberts Robert Campbell Robert Campbell David Smith David Smith Colin Campbell David Davies John Hall John Hall John Hall John Hall John Hall John Robinson John Parker Greg Smith John Simpson John Rogers John Ward John Ward John Ward William Williams John Murphy John Roberts John Murphy John Martin Robert Williams John Rogers William Robinson John Walker John Kennedy John Gray John Kennedy John Thompson John Thompson John Thompson John Gray James Walker John Williams John Gray John Gray John Bell Robert Williams Robert Williams James Walker Greg Smith Greg Smith Greg Smith Greg Smith John Smith John Smith Greg Smith John Martin David Wilson John Martin Gilles De Haes John Rogers John Brown John Jackson John Robinson John Kennedy John Murphy Léonard Limousin John Davies John Martin John Parker John Robinson John Robinson John Carter William Walker William Thompson John Brown John Smith David Wilson John Taylor John Ward John Taylor James Brown James Brown John Thompson John Roberts John Thompson John Thompson John Murphy John Roberts John Murphy John Bell David Davies Robert Williams Robert Williams Robert Williams Robert Williams William Walker David Davies Dunja Lango George Brown John Hall Raud the Strong John Rogers John Davies David Davies David Davies John Williams David Davies James Brown Thomas Williams John Simpson David Smith William Stewart John Jones Greg Smith William Stewart James Walker James Walker John Martin William Robinson John Brown John Brown John Brown John Walker John Murphy John Brown John Walker John Robinson David Thomas William Anderson George Brown John Randall Clarke James Walker David Evans John Walker John Clarke John Clarke David Thomas Borja Mendia John Kennedy John Kennedy Li Ruihuan William Brown John Murray John Martin John Gray Ethan Wragge William Brown James Walker John Rogers James Brown Epimenides John Martin William Thompson John Walker John Hill James Brown James Brown Greg Smith Greg Smith Greg Smith Greg Smith Greg Smith John Smith Colin Campbell Colin Campbell John Roland Phillips David Christopher Davies David Lewis Davies John Murphy David Smith John Bell John Bell John Hill John Martin John Martin John Bell Shelby Harris William Williams John Hill John Hall William Williams William Williams John Martin John Martin William Walker John Rogers John Hill John Simpson David Smith David Smith William Walker William Walker John Thompson David Thomas John Davies John Jackson John Young John Kennedy John Davis John Davis John Davis John Bell George Brown John Wilson David Smith Adam Dunkels John Hall John Hall David Smith William Robinson William Robinson John Walker William Robinson William Robinson David Wilson John Jackson David Wilson John Ward John Rogers John Rogers John Kennedy John Ward John Davies John Martin George Brown John Martin John Martin Dairis Bertāns George Brown John Murray John Lewis John Roberts William Thompson William Thompson John Campbell John Campbell John Evans David Smith John Phillips John Phillips John Rogers John Roberts David Smith John Bell John Gray Colin Campbell Colin Campbell John Roberts David Wilson George Brown John Thompson John Evans Robert Campbell David Smith David Smith David Evans John Young David Evans David Evans William Williams John Hill William Williams William Williams William Williams John Bell Rolando Valdès-Blain David Evans John Bell John Rogers John Robinson David Wilson John Roberts John Walker John Ward John Ward John Ward John Clarke John Clarke John Clarke John Clarke John Lewis John Lewis John Lewis Lady Colin Campbell Greg Smith John Williams John Williams James Walker John Williams John Williams John Williams John Williams David Thomas Delobel Colin Campbell John Murphy John Hall John Walker James Brown Greg Smith Brady Sallee Greg Smith John Walker John Hill John Brown John Wright Brown John Hall John Ward Risques Pereira John Simpson James Walker James Walker James Walker James Walker David Evans David Evans David Evans Victorinus Robert Williams John Kennedy George Brown George Brown John Martin John Martin John Martin John Ward William Williams John Walker John Walker William Thompson John Walker John Kennedy John Simpson John Moore David Wilson John Gray William Thompson Carsten Tank George Smith
342
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type electronic media
action find_tuple_counts
relation stated in
type common name
type organization
action count
action filter_multi_types
action find
entity John Walker
relation stated in
type electronic media
type organization
[{'concept': 'common name'}, 'stated in', [{'concept': 'electronic media'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?a ) AS ?s ) WHERE { { ?e rdf:type ontology:common_name . ?a rdf:type ontology:organization . ?e property:stated_in ?a } UNION { ?e rdf:type ontology:common_name . ?a rdf:type ontology:electronic_media . ?e property:stated_in ?a } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?c ) WHERE { resource:John_Walker property:stated_in ?i . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:organization ) ( ontology:electronic_media ) } } } } . FILTER ( ?s = ?c ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q107425 Q151885
USER
Which landscapes are around 1 concept located on ?
(c(Q151885),P706,c(Q107425))
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
value 1
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P706 ?j . ?j rdf:type ontology:Q107425 . ?x rdf:type ontology:Q151885 } GROUP BY ?j } . FILTER ( ?d = 1 ) }
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
value 1
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:located_on_terrain_feature ?j . ?j rdf:type ontology:landscape . ?x rdf:type ontology:concept } GROUP BY ?j } . FILTER ( ?d = 1 ) }
[]
landscape concept
Q11767 Q38272 Q202207
SYSTEM
Mesopotamia, British Isles, Po Valley
Q202207 Q11767 Q38272 Q172702
(c(Q151885),P706,c(Q107425))
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
value 1
[ANSWERS]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:P706 ?j . ?j rdf:type ontology:Q107425 . ?x rdf:type ontology:Q151885 } GROUP BY ?j } . FILTER ( ?d = 1 ) }
Po Valley Mesopotamia British Isles Karakum Desert
Which landscapes are around 1 concept located on
Mesopotamia British Isles Po Valley
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
value 1
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?d ) WHERE { ?x property:located_on_terrain_feature ?j . ?j rdf:type ontology:landscape . ?x rdf:type ontology:concept } GROUP BY ?j } . FILTER ( ?d = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q933232 Q15998681
P27
Q15617994
USER
Which administrative territories are Ralph Gilman or Djamel Bakar a civilian of ?
OR((Q15998681,P27,c(Q15617994)), (Q933232,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15998681
relation P27
action find
entity Q933232
relation P27
type Q15617994
{'OR': [['Q15998681', 'P27', {'concept': 'Q15617994'}], ['Q933232', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { ?q property:P27 ?p . VALUES ( ?q ) { ( resource:Q15998681 ) ( resource:Q933232 ) } } }
Djamel Bakar Ralph Gilman
action filter_type
action union
action find
entity Ralph Gilman
relation country of citizenship
action find
entity Djamel Bakar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ralph Gilman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Djamel Bakar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?q property:country_of_citizenship ?p . VALUES ( ?q ) { ( resource:Ralph_Gilman ) ( resource:Djamel_Bakar ) } } }
[]
designation for an administrative territorial entity
Q142 Q30
SYSTEM
France, United States of America
Q142 Q30
OR((Q15998681,P27,c(Q15617994)), (Q933232,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q15998681
relation P27
action find
entity Q933232
relation P27
type Q15617994
[ANSWERS] are Ralph Gilman or Djamel Bakar a civilian of
{'OR': [['Q15998681', 'P27', {'concept': 'Q15617994'}], ['Q933232', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . { ?q property:P27 ?p . VALUES ( ?q ) { ( resource:Q15998681 ) ( resource:Q933232 ) } } }
France United States of America
France and United States of America are Ralph Gilman or Djamel Bakar a civilian of
France United States of America
action filter_type
action union
action find
entity Ralph Gilman
relation country of citizenship
action find
entity Djamel Bakar
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ralph Gilman', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Djamel Bakar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?q property:country_of_citizenship ?p . VALUES ( ?q ) { ( resource:Ralph_Gilman ) ( resource:Djamel_Bakar ) } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P841
Q573 Q186081 Q502895
USER
Which people have max number of days and time intervals as principal feast day ?
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmax
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?c rdf:type ?e } GROUP BY ?s } . FILTER ( ?u = ?h ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?a WHERE { { ?a property:P841 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q573 } UNION { ?a property:P841 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q186081 } } GROUP BY ?a } } }
action argmax
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?e ) { ( ontology:day ) ( ontology:time_interval ) } . ?c rdf:type ?e } GROUP BY ?s } . FILTER ( ?u = ?h ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?a WHERE { { ?a property:feast_day ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:day } UNION { ?a property:feast_day ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:time_interval } } GROUP BY ?a } } }
[]
day time interval common name
Q724454 Q18691847
SYSTEM
Julian of Antioch, Saint Ilar
Q724454 Q18691847
(c(Q502895),P841,c(Q573)|c(Q186081))
action argmax
action union
action find_tuple_counts
relation P841
type Q502895
type Q573
action find_tuple_counts
relation P841
type Q502895
type Q186081
[ANSWERS] have max number of days and time intervals as principal feast day
[{'concept': 'Q502895'}, 'P841', [{'concept': 'Q573'}, {'concept': 'Q186081'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q573 ) ( ontology:Q186081 ) } . ?c rdf:type ?e } GROUP BY ?s } . FILTER ( ?u = ?h ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?a WHERE { { ?a property:P841 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q573 } UNION { ?a property:P841 ?x . ?a rdf:type ontology:Q502895 . ?x rdf:type ontology:Q186081 } } GROUP BY ?a } } }
Julian of Antioch Saint Ilar
Julian of Antioch and Saint Ilar have max number of days and time intervals as principal feast day
Julian of Antioch Saint Ilar
action argmax
action union
action find_tuple_counts
relation feast day
type common name
type day
action find_tuple_counts
relation feast day
type common name
type time interval
[{'concept': 'common name'}, 'feast day', [{'concept': 'day'}, {'concept': 'time interval'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) ?s WHERE { VALUES ( ?e ) { ( ontology:day ) ( ontology:time_interval ) } . ?c rdf:type ?e } GROUP BY ?s } . FILTER ( ?u = ?h ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?h ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) ?a WHERE { { ?a property:feast_day ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:day } UNION { ?a property:feast_day ?x . ?a rdf:type ontology:common_name . ?x rdf:type ontology:time_interval } } GROUP BY ?a } } }
[]