Simple Question (Direct)
Simple Question
Q6455555
P86
Q502895
USER
Who was L'Annulaire composed by ?
(Q6455555,P86,c(Q502895))
action filter_type
action find
entity Q6455555
relation P86
type Q502895
['Q6455555', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q6455555 property:P86 ?z . ?z rdf:type ontology:Q502895 }
L'Annulaire
action filter_type
action find
entity L'Annulaire
relation composer
type common name
["L'Annulaire", 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:L'Annulaire property:composer ?z . ?z rdf:type ontology:common_name }
[]
common name
Q233264
SYSTEM
Beth Gibbons
Q233264
(Q6455555,P86,c(Q502895))
action filter_type
action find
entity Q6455555
relation P86
type Q502895
L' Annulaire was composed by [ANSWER] by
['Q6455555', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q6455555 property:P86 ?z . ?z rdf:type ontology:Q502895 }
Beth Gibbons
L' Annulaire was composed by Beth Gibbons by
Beth Gibbons
action filter_type
action find
entity L'Annulaire
relation composer
type common name
["L'Annulaire", 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:L'Annulaire property:composer ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q233264
P161
Q201658
USER
Which film genre does that person star in ?
(c(Q201658),P161,Q233264)
action filter_type
action find_reverse
entity Q233264
relation P161
type Q201658
[{'concept': 'Q201658'}, 'P161', 'Q233264']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q233264 . ?g rdf:type ontology:Q201658 }
Beth Gibbons
action filter_type
action find_reverse
entity Beth Gibbons
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Beth Gibbons']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Beth_Gibbons . ?g rdf:type ontology:film_genre }
[]
film genre
Q7810986
SYSTEM
To Kill a Dead Man
Q7810986
(c(Q201658),P161,Q233264)
action filter_type
action find_reverse
entity Q233264
relation P161
type Q201658
That person stars in [ANSWER]
[{'concept': 'Q201658'}, 'P161', 'Q233264']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q233264 . ?g rdf:type ontology:Q201658 }
To Kill a Dead Man
That person stars in To Kill a Dead Man
To Kill a Dead Man
action filter_type
action find_reverse
entity Beth Gibbons
relation cast member
type film genre
[{'concept': 'film genre'}, 'cast member', 'Beth Gibbons']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Beth_Gibbons . ?g rdf:type ontology:film_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26696618
P17
Q15617994
USER
Which administrative territory does mayor of Caltojar belong to ?
(Q26696618,P17,c(Q15617994))
action filter_type
action find
entity Q26696618
relation P17
type Q15617994
['Q26696618', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q26696618 property:P17 ?v }
mayor of Caltojar
action filter_type
action find
entity mayor of Caltojar
relation country
type designation for an administrative territorial entity
['mayor of Caltojar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Caltojar property:country ?v }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26696618,P17,c(Q15617994))
action filter_type
action find
entity Q26696618
relation P17
type Q15617994
Mayor of Caltojar belongs to the [ANSWER]
['Q26696618', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q26696618 property:P17 ?v }
Spain
Mayor of Caltojar belongs to the Spain
Spain
action filter_type
action find
entity mayor of Caltojar
relation country
type designation for an administrative territorial entity
['mayor of Caltojar', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:mayor_of_Caltojar property:country ?v }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q7725634
USER
Which administrative territories are the origin of around the same number of television programs or literary works as that administrative territory ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q15416
type Q7725634
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P495 resource:Q29 . { { ?n rdf:type ontology:Q15416 } UNION { ?n rdf:type ontology:Q7725634 } } } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } } GROUP BY ?x } }
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:country_of_origin resource:Spain . { { ?n rdf:type ontology:television_program } UNION { ?n rdf:type ontology:literary_work } } } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:television_program ) ( ontology:literary_work ) } } GROUP BY ?x } }
[]
designation for an administrative territorial entity television program literary work
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q29
relation P495
type Q15416
type Q7725634
[ANSWERS] are the origin of around the same number of television programs or literary works as that administrative territory
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P495 resource:Q29 . { { ?n rdf:type ontology:Q15416 } UNION { ?n rdf:type ontology:Q7725634 } } } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q7725634 ) } } GROUP BY ?x } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the origin of around the same number of television programs or literary works as that administrative territory
Italy Brazil Georgia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Spain
relation country of origin
type television program
type literary work
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:country_of_origin resource:Spain . { { ?n rdf:type ontology:television_program } UNION { ?n rdf:type ontology:literary_work } } } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?u ) WHERE { ?p rdf:type ?y . VALUES ( ?y ) { ( ontology:television_program ) ( ontology:literary_work ) } } GROUP BY ?x } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Are Germany known to have diplomatic connections with those administrative territories ?
(Q183,P530,Q38) (Q183,P530,Q155) (Q183,P530,Q230)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q230']
ASK WHERE { VALUES ( ?e ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q183 property:P530 ?e }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?e ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . resource:Germany property:diplomatic_relation ?e }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q38) (Q183,P530,Q155) (Q183,P530,Q230)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q230']
ASK WHERE { VALUES ( ?e ) { ( resource:Q805 ) ( resource:Q804 ) ( resource:Q801 ) } . resource:Q183 property:P530 ?e }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?e ) { ( resource:Yemen ) ( resource:Panama ) ( resource:Israel ) } . resource:Germany property:diplomatic_relation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P376
Q16889133
USER
Which class is Spain located on ?
(Q29,P376,c(Q16889133))
action filter_type
action find
entity Q29
relation P376
type Q16889133
['Q29', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?s WHERE { resource:Q29 property:P376 ?s . ?s rdf:type ontology:Q16889133 }
Spain
action filter_type
action find
entity Spain
relation located on astronomical body
type class
['Spain', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?s WHERE { resource:Spain property:located_on_astronomical_body ?s . ?s rdf:type ontology:class }
[]
class
Q2
SYSTEM
Earth
Q2
(Q29,P376,c(Q16889133))
action filter_type
action find
entity Q29
relation P376
type Q16889133
Spain is located on [ANSWER]
['Q29', 'P376', {'concept': 'Q16889133'}]
SELECT DISTINCT ?s WHERE { resource:Q29 property:P376 ?s . ?s rdf:type ontology:Q16889133 }
Earth
Spain is located on Earth
Earth
action filter_type
action find
entity Spain
relation located on astronomical body
type class
['Spain', 'located on astronomical body', {'concept': 'class'}]
SELECT DISTINCT ?s WHERE { resource:Spain property:located_on_astronomical_body ?s . ?s rdf:type ontology:class }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P463
Q484652
USER
Which organizations were Italy a member of ?
(Q38,P463,c(Q484652))
action filter_type
action find
entity Q38
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q484652 . resource:Q38 property:P463 ?p }
Italy
action filter_type
action find
entity Italy
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:international_organization . resource:Italy property:member_of ?p }
[]
international organization
Q81299 Q19771 Q42262
SYSTEM
Organization for Security and Co-operation in Europe, G20, European Space Agency
Q81299 Q1065 Q826700 Q188822 Q47488 Q7184 Q42262 Q472311 Q605326 Q1480793 Q201054 Q7804 Q842490 Q19771 Q54129 Q1411881 Q17495 Q192177 Q170424 Q37143 Q176815 Q182000 Q8475 Q233611 Q1043527 Q1045198
(Q38,P463,c(Q484652))
action filter_type
action find
entity Q38
relation P463
type Q484652
[ANSWERS]
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q484652 . resource:Q38 property:P463 ?p }
Organization for Security and Co-operation in Europe United Nations International Energy Agency Asian Development Bank International Criminal Court North Atlantic Treaty Organisation European Space Agency International Organization for Migration World Customs Organization Nuclear Suppliers Group International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons G20 International Labour Organization Group of Ten Universal Postal Union Union for the Mediterranean World Meteorological Organization G8 Inter-Parliamentary Union United Nations Conference on Trade and Development Interpol International Hydrographic Organization Multilateral Investment Guarantee Agency Permanent Court of Arbitration
Which organizations were Italy a member of
Organization for Security and Co-operation in Europe G20 European Space Agency
action filter_type
action find
entity Italy
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:international_organization . resource:Italy property:member_of ?p }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q38
Q874405
USER
And which social group?
(Q38,P463,c(Q874405))
action filter_type
action find
entity Q38
relation P463
type Q874405
['Q38', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q874405 . resource:Q38 property:P463 ?x }
Italy
action filter_type
action find
entity Italy
relation member of
type social group
['Italy', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:social_group . resource:Italy property:member_of ?x }
[]
social group
Q7817 Q8908 Q41984
SYSTEM
World Health Organization, Council of Europe, International Atomic Energy Agency
Q663492 Q8908 Q376150 Q41984 Q782942 Q848633 Q1374456 Q7817
(Q38,P463,c(Q874405))
action filter_type
action find
entity Q38
relation P463
type Q874405
[ANSWERS]
['Q38', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q874405 . resource:Q38 property:P463 ?x }
Eurocontrol Council of Europe International Telecommunication Union International Atomic Energy Agency Australia Group International Chamber of Commerce Euro-Atlantic Partnership Council World Health Organization
World Health Organization Council of Europe International Atomic Energy Agency
action filter_type
action find
entity Italy
relation member of
type social group
['Italy', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:social_group . resource:Italy property:member_of ?x }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q82799 Q874405
USER
Which names are the origin of atleast 1 social group ?
(c(Q874405),P138,c(Q82799))
action atleast
action find_reverse_tuple_counts
relation P138
type Q82799
type Q874405
value 1
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?l ) WHERE { ?w rdf:type ontology:Q82799 . ?o rdf:type ontology:Q874405 . ?o property:P138 ?w } GROUP BY ?w } . FILTER ( ?l >= 1 ) }
action atleast
action find_reverse_tuple_counts
relation named after
type name
type social group
value 1
[{'concept': 'social group'}, 'named after', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?l ) WHERE { ?w rdf:type ontology:name . ?o rdf:type ontology:social_group . ?o property:named_after ?w } GROUP BY ?w } . FILTER ( ?l >= 1 ) }
[]
name social group
Q19930319 Q18822560 Q19833249
SYSTEM
Salis, Mortimer, Frei
Q19930319 Q18822560 Q19833249 Q18579278
(c(Q874405),P138,c(Q82799))
action atleast
action find_reverse_tuple_counts
relation P138
type Q82799
type Q874405
value 1
[ANSWERS] are the origin of atleast 1 social group
[{'concept': 'Q874405'}, 'P138', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?l ) WHERE { ?w rdf:type ontology:Q82799 . ?o rdf:type ontology:Q874405 . ?o property:P138 ?w } GROUP BY ?w } . FILTER ( ?l >= 1 ) }
Salis Mortimer Frei Burckhardt
Salis, Mortimer and Frei are the origin of atleast 1 social group
Salis Mortimer Frei
action atleast
action find_reverse_tuple_counts
relation named after
type name
type social group
value 1
[{'concept': 'social group'}, 'named after', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?l ) WHERE { ?w rdf:type ontology:name . ?o rdf:type ontology:social_group . ?o property:named_after ?w } GROUP BY ?w } . FILTER ( ?l >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P248
Q191067 Q1914636 Q502895
USER
Which people have been recognized first in max number of articles and activities ?
(c(Q502895),P248,c(Q191067)|c(Q1914636))
action argmax
action union
action find_tuple_counts
relation P248
type Q502895
type Q191067
action find_tuple_counts
relation P248
type Q502895
type Q1914636
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q191067'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q191067 ) ( ontology:Q1914636 ) } } GROUP BY ?b } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?t ) WHERE { { ?k property:P248 ?h . ?k rdf:type ontology:Q502895 . ?h rdf:type ontology:Q191067 } UNION { ?k property:P248 ?h . ?k rdf:type ontology:Q502895 . ?h rdf:type ontology:Q1914636 } } GROUP BY ?k } } }
action argmax
action union
action find_tuple_counts
relation stated in
type common name
type article
action find_tuple_counts
relation stated in
type common name
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'article'}, {'concept': 'activity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:article ) ( ontology:activity ) } } GROUP BY ?b } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?t ) WHERE { { ?k property:stated_in ?h . ?k rdf:type ontology:common_name . ?h rdf:type ontology:article } UNION { ?k property:stated_in ?h . ?k rdf:type ontology:common_name . ?h rdf:type ontology:activity } } GROUP BY ?k } } }
[]
article activity common name
Q6257923 Q15456236 Q6130319
SYSTEM
John Simpson, William Williams, James Brown
Q6255166 Q5239877 Q5239876 Q6257923 Q15456236 Q6260667 Q16062974 Q16857953 Q6260355 Q6130319 Q6249879 Q6228766 Q5232857 Q5232859 Q5606277 Q15994621 Q15994622 Q6239263 Q5239881 Q16228915 Q6237302 Q8017685 Q6263006 Q6263007 Q6255417 Q6246952 Q8020396 Q6221424 Q6262733 Q15994581 Q6244748 Q16859187 Q5240358 Q6145005 Q6145007 Q6246965 Q6246963
(c(Q502895),P248,c(Q191067)|c(Q1914636))
action argmax
action union
action find_tuple_counts
relation P248
type Q502895
type Q191067
action find_tuple_counts
relation P248
type Q502895
type Q1914636
[ANSWERS] have been recognized first in max number of articles and activities
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q191067'}, {'concept': 'Q1914636'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q191067 ) ( ontology:Q1914636 ) } } GROUP BY ?b } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?t ) WHERE { { ?k property:P248 ?h . ?k rdf:type ontology:Q502895 . ?h rdf:type ontology:Q191067 } UNION { ?k property:P248 ?h . ?k rdf:type ontology:Q502895 . ?h rdf:type ontology:Q1914636 } } GROUP BY ?k } } }
John Roberts David Smith David Smith John Simpson William Williams John Thompson James Walker John Martin John Taylor James Brown John Murphy John Davies David Davies David Davies Greg Smith John Martin John Martin John Hill David Smith John Wilson John Hall William Robinson John Ward John Ward John Rogers John Martin William Williams John Bell John Walker John Lewis John Lewis James Walker David Thomas James Walker James Walker John Martin John Martin
John Simpson, William Williams and James Brown have been recognized first in max number of articles and activities
John Simpson William Williams James Brown
action argmax
action union
action find_tuple_counts
relation stated in
type common name
type article
action find_tuple_counts
relation stated in
type common name
type activity
[{'concept': 'common name'}, 'stated in', [{'concept': 'article'}, {'concept': 'activity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?z ) WHERE { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:article ) ( ontology:activity ) } } GROUP BY ?b } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ( MAX ( ?t ) AS ?f ) { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?t ) WHERE { { ?k property:stated_in ?h . ?k rdf:type ontology:common_name . ?h rdf:type ontology:article } UNION { ?k property:stated_in ?h . ?k rdf:type ontology:common_name . ?h rdf:type ontology:activity } } GROUP BY ?k } } }
[]