Simple Question (Direct)
Simple Question
Q6165509
P106
Q12737077
USER
Which occupation is the profession of Víctor González Maertens ?
(Q6165509,P106,c(Q12737077))
action filter_type
action find
entity Q6165509
relation P106
type Q12737077
['Q6165509', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6165509 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Víctor González Maertens
action filter_type
action find
entity Víctor González Maertens
relation occupation
type occupation
['Víctor González Maertens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Víctor_González_Maertens property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q43845
SYSTEM
businessperson
Q43845
(Q6165509,P106,c(Q12737077))
action filter_type
action find
entity Q6165509
relation P106
type Q12737077
[ANSWER] is the profession of Víctor González Maertens
['Q6165509', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q6165509 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
businessperson
Businessperson is the profession of Víctor González Maertens
businessperson
action filter_type
action find
entity Víctor González Maertens
relation occupation
type occupation
['Víctor González Maertens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Víctor_González_Maertens property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6165509
P21
Q290
USER
Which sex does Víctor González Maertens have ?
(Q6165509,P21,c(Q290))
action filter_type
action find
entity Q6165509
relation P21
type Q290
['Q6165509', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q6165509 property:P21 ?n . ?n rdf:type ontology:Q290 }
Víctor González Maertens
action filter_type
action find
entity Víctor González Maertens
relation gender
type sex
['Víctor González Maertens', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Víctor_González_Maertens property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6165509,P21,c(Q290))
action filter_type
action find
entity Q6165509
relation P21
type Q290
Víctor González Maertens has a [ANSWER]
['Q6165509', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q6165509 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
Víctor González Maertens has a male
male
action filter_type
action find
entity Víctor González Maertens
relation gender
type sex
['Víctor González Maertens', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Víctor_González_Maertens property:gender ?n . ?n rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19571815 Q6165509
P27
Q15617994
USER
Which administrative territories are Víctor González Maertens or Kaushal Kishore an inhabitant of ?
OR((Q6165509,P27,c(Q15617994)), (Q19571815,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6165509
relation P27
action find
entity Q19571815
relation P27
type Q15617994
{'OR': [['Q6165509', 'P27', {'concept': 'Q15617994'}], ['Q19571815', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { ?i property:P27 ?n . VALUES ( ?i ) { ( resource:Q6165509 ) ( resource:Q19571815 ) } } }
Kaushal Kishore Víctor González Maertens
action filter_type
action union
action find
entity Víctor González Maertens
relation country of citizenship
action find
entity Kaushal Kishore
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Víctor González Maertens', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kaushal Kishore', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_citizenship ?n . VALUES ( ?i ) { ( resource:Víctor_González_Maertens ) ( resource:Kaushal_Kishore ) } } }
[]
designation for an administrative territorial entity
Q298 Q668
SYSTEM
Chile, India
Q298 Q668
OR((Q6165509,P27,c(Q15617994)), (Q19571815,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q6165509
relation P27
action find
entity Q19571815
relation P27
type Q15617994
[ANSWERS] are Víctor González Maertens or Kaushal Kishore an inhabitant of
{'OR': [['Q6165509', 'P27', {'concept': 'Q15617994'}], ['Q19571815', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . { ?i property:P27 ?n . VALUES ( ?i ) { ( resource:Q6165509 ) ( resource:Q19571815 ) } } }
Chile India
Chile and India are Víctor González Maertens or Kaushal Kishore an inhabitant of
Chile India
action filter_type
action union
action find
entity Víctor González Maertens
relation country of citizenship
action find
entity Kaushal Kishore
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Víctor González Maertens', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Kaushal Kishore', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?i property:country_of_citizenship ?n . VALUES ( ?i ) { ( resource:Víctor_González_Maertens ) ( resource:Kaushal_Kishore ) } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q36
P495
Q15617994 Q15416 Q201658
USER
Which administrative territories did around the same number of television programs and film genres originate as Poland ?
(c(Q15416)|c(Q201658),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 Q201658
action count
action filter_multi_types
action find_reverse
entity Q36
relation P495
type Q15416
type Q201658
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P495 resource:Q36 . { { ?f rdf:type ontology:Q201658 } UNION { ?f rdf:type ontology:Q15416 } } } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?d WHERE { VALUES ( ?a ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } . ?l rdf:type ?a } GROUP BY ?d } }
Poland
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 film genre
action count
action filter_multi_types
action find_reverse
entity Poland
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:country_of_origin resource:Poland . { { ?f rdf:type ontology:film_genre } UNION { ?f rdf:type ontology:television_program } } } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?d WHERE { VALUES ( ?a ) { ( ontology:television_program ) ( ontology:film_genre ) } . ?l rdf:type ?a } GROUP BY ?d } }
[]
designation for an administrative territorial entity television program film genre
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(Q201658),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 Q201658
action count
action filter_multi_types
action find_reverse
entity Q36
relation P495
type Q15416
type Q201658
[ANSWERS] around the same number of television programs and film genres originated as Poland
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:P495 resource:Q36 . { { ?f rdf:type ontology:Q201658 } UNION { ?f rdf:type ontology:Q15416 } } } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?d WHERE { VALUES ( ?a ) { ( ontology:Q15416 ) ( ontology:Q201658 ) } . ?l rdf:type ?a } GROUP BY ?d } }
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 around the same number of television programs and film genres originated as Poland
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 film genre
action count
action filter_multi_types
action find_reverse
entity Poland
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { ?f property:country_of_origin resource:Poland . { { ?f rdf:type ontology:film_genre } UNION { ?f rdf:type ontology:television_program } } } } . FILTER ( ?e = ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) ?d WHERE { VALUES ( ?a ) { ( ontology:television_program ) ( ontology:film_genre ) } . ?l rdf:type ?a } GROUP BY ?d } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q970
P495
Q15617994 Q15416 Q201658
USER
And how about Comoros?
(c(Q15416)|c(Q201658),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 Q201658
action count
action filter_multi_types
action find_reverse
entity Q970
relation P495
type Q15416
type Q201658
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q201658 } } GROUP BY ?n } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P495 resource:Q970 . { { ?f rdf:type ontology:Q15416 } UNION { ?f rdf:type ontology:Q201658 } } } } }
Comoros
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 film genre
action count
action filter_multi_types
action find_reverse
entity Comoros
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:film_genre } } GROUP BY ?n } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:country_of_origin resource:Comoros . { { ?f rdf:type ontology:television_program } UNION { ?f rdf:type ontology:film_genre } } } } }
[]
designation for an administrative territorial entity television program film genre
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(Q201658),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 Q201658
action count
action filter_multi_types
action find_reverse
entity Q970
relation P495
type Q15416
type Q201658
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15416 } UNION { ?o property:P495 ?n . ?n rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q201658 } } GROUP BY ?n } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:P495 resource:Q970 . { { ?f rdf:type ontology:Q15416 } UNION { ?f rdf:type ontology:Q201658 } } } } }
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 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 film genre
action count
action filter_multi_types
action find_reverse
entity Comoros
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?o ) AS ?x ) WHERE { { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:television_program } UNION { ?o property:country_of_origin ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:film_genre } } GROUP BY ?n } . FILTER ( ?x = ?i ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?i ) WHERE { ?f property:country_of_origin resource:Comoros . { { ?f rdf:type ontology:television_program } UNION { ?f rdf:type ontology:film_genre } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?o ) WHERE { ?m property:P530 ?l . ?m rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?r ) WHERE { ?d property:P530 ?t . ?d rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?r = ?n ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?o ) WHERE { ?m property:diplomatic_relation ?l . ?m rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?r ) WHERE { ?d property:diplomatic_relation ?t . ?d rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?r = ?n ) }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic associations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?o ) WHERE { ?m property:P530 ?l . ?m rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q15617994 } GROUP BY ?m } } . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?r ) WHERE { ?d property:P530 ?t . ?d rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?r = ?n ) }
Germany
Germany have diplomatic associations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?n ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?o ) WHERE { ?m property:diplomatic_relation ?l . ?m rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } . { SELECT DISTINCT ?d ( COUNT ( ?t ) AS ?r ) WHERE { ?d property:diplomatic_relation ?t . ?d rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?r = ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P1071
Q860861
USER
Which sculpture has India as its final assembly location ?
(c(Q860861),P1071,Q668)
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
[{'concept': 'Q860861'}, 'P1071', 'Q668']
SELECT DISTINCT ?l WHERE { ?l property:P1071 resource:Q668 . ?l rdf:type ontology:Q860861 }
India
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
[{'concept': 'sculpture'}, 'location of final assembly', 'India']
SELECT DISTINCT ?l WHERE { ?l property:location_of_final_assembly resource:India . ?l rdf:type ontology:sculpture }
[]
sculpture
Q16963343
SYSTEM
Double leaf jali
Q16963343
(c(Q860861),P1071,Q668)
action filter_type
action find_reverse
entity Q668
relation P1071
type Q860861
[ANSWER] has India as its final assembly location
[{'concept': 'Q860861'}, 'P1071', 'Q668']
SELECT DISTINCT ?l WHERE { ?l property:P1071 resource:Q668 . ?l rdf:type ontology:Q860861 }
Double leaf jali
Double leaf jali has India as its final assembly location
Double leaf jali
action filter_type
action find_reverse
entity India
relation location of final assembly
type sculpture
[{'concept': 'sculpture'}, 'location of final assembly', 'India']
SELECT DISTINCT ?l WHERE { ?l property:location_of_final_assembly resource:India . ?l rdf:type ontology:sculpture }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P36
Q56061
USER
What is the capital of that administrative territory ?
(Q16963343,P36,c(Q56061))
action filter_type
action find
entity Q668
relation P36
type Q56061
['Q16963343', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q668 property:P36 ?z . ?z rdf:type ontology:Q56061 }
India
action filter_type
action find
entity India
relation capital
type administrative territorial entity
['Double leaf jali', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:India property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q987
SYSTEM
New Delhi
Q987
(Q16963343,P36,c(Q56061))
action filter_type
action find
entity Q668
relation P36
type Q56061
The capital of that administrative territory is the [ANSWER]
['Q16963343', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q668 property:P36 ?z . ?z rdf:type ontology:Q56061 }
New Delhi
The capital of that administrative territory is the New Delhi
New Delhi
action filter_type
action find
entity India
relation capital
type administrative territorial entity
['Double leaf jali', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:India property:capital ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P159
Q43229
USER
Which organizations have their head office location at Italy ?
(c(Q43229),P159,Q38)
action filter_type
action find_reverse
entity Q38
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q38']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q38 . ?b rdf:type ontology:Q43229 }
Italy
action filter_type
action find_reverse
entity Italy
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Italy']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Italy . ?b rdf:type ontology:organization }
[]
organization
Q16536952 Q3929491 Q3622240
SYSTEM
Carlo Erba, Rai Cinema, Arflex
Q5014784 Q3622240 Q950042 Q16536952 Q3963794 Q3006985 Q80281 Q5421217 Q5311237 Q16566756 Q7611729 Q5445259 Q3459850 Q5025085 Q15970921 Q3929491 Q3777372 Q22443127 Q17020270
(c(Q43229),P159,Q38)
action filter_type
action find_reverse
entity Q38
relation P159
type Q43229
[ANSWERS] have their head office location at Italy
[{'concept': 'Q43229'}, 'P159', 'Q38']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q38 . ?b rdf:type ontology:Q43229 }
CVS Ferrari Arflex Stone Island Carlo Erba Società del quartetto di Milano dV Giochi FPT Industrial Expert System S.p.A. Ducati Energia Italiaonline Stevanato Group Ferrari Belotti Socimi Cambiocasa Pardini Rai Cinema Giochi Preziosi Tecnomare Hacking Team
Carlo Erba, Rai Cinema and Arflex have their head office location at Italy
Carlo Erba Rai Cinema Arflex
action filter_type
action find_reverse
entity Italy
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Italy']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Italy . ?b rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P463
Q484652
USER
What international organizations had Italy as their member ?
(Q38,P463,c(Q484652))
action filter_type
action find
entity Q38
relation P463
type Q484652
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P463 ?z . ?z rdf:type ontology:Q484652 }
Italy
action filter_type
action find
entity Italy
relation member of
type international organization
['Italy', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?z WHERE { resource:Italy property:member_of ?z . ?z rdf:type ontology:international_organization }
[]
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] had Italy as their member
['Q38', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?z WHERE { resource:Q38 property:P463 ?z . ?z rdf:type ontology:Q484652 }
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
Organization for Security and Co-operation in Europe, G20 and European Space Agency had Italy as their member
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 ?z WHERE { resource:Italy property:member_of ?z . ?z rdf:type ontology:international_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42262
P37
Q34770
USER
What is the official language of that international organization ?
(Q42262,P37,c(Q34770))
action filter_type
action find
entity Q42262
relation P37
type Q34770
['Q42262', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q42262 property:P37 ?s . ?s rdf:type ontology:Q34770 }
European Space Agency
action filter_type
action find
entity European Space Agency
relation official language
type language
['European Space Agency', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:European_Space_Agency property:official_language ?s . ?s rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q42262
SYSTEM
Did you mean European Space Agency ?
Q81299 Q19771 Q42262
(Q81299,P37,c(Q34770)) (Q19771,P37,c(Q34770)) (Q42262,P37,c(Q34770))
[ANSWER]
['Q81299', 'P37', {'concept': 'Q34770'}] ['Q19771', 'P37', {'concept': 'Q34770'}] ['Q42262', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q42262 property:P37 ?s . ?s rdf:type ontology:Q34770 }
Organization for Security and Co-operation in Europe G20 European Space Agency
Did you mean European Space Agency ?
European Space Agency
['Organization for Security and Co-operation in Europe', 'official language', {'concept': 'language'}] ['G20', 'official language', {'concept': 'language'}] ['European Space Agency', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:European_Space_Agency property:official_language ?s . ?s rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
Yes
(Q42262,P37,c(Q34770))
['Q42262', 'P37', {'concept': 'Q34770'}]
['European Space Agency', 'official language', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q42262,P37,c(Q34770))
action filter_type
action find
entity Q42262
relation P37
type Q34770
The official language of that international organization is [ANSWER]
['Q42262', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q42262 property:P37 ?s . ?s rdf:type ontology:Q34770 }
English
The official language of that international organization is English
English
action filter_type
action find
entity European Space Agency
relation official language
type language
['European Space Agency', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:European_Space_Agency property:official_language ?s . ?s rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P664
Q43229 Q2312410 Q15275719
USER
How many organizations organized atmost 67 sport disciplines and recurring events ?
(c(Q2312410)|c(Q15275719),P664,c(Q43229))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P664
type Q43229
type Q2312410
action find_reverse_tuple_counts
relation P664
type Q43229
type Q15275719
value 67
[[{'concept': 'Q2312410'}, {'concept': 'Q15275719'}], 'P664', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?u ) { ( ontology:Q2312410 ) ( ontology:Q15275719 ) } . ?k rdf:type ?u } GROUP BY ?g } . FILTER ( ?c <= 67 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation organizer
type organization
type sport discipline
action find_reverse_tuple_counts
relation organizer
type organization
type recurring event
value 67
[[{'concept': 'sport discipline'}, {'concept': 'recurring event'}], 'organizer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?u ) { ( ontology:sport_discipline ) ( ontology:recurring_event ) } . ?k rdf:type ?u } GROUP BY ?g } . FILTER ( ?c <= 67 ) }
[]
organization sport discipline recurring event
SYSTEM
77
Q19616 Q137317 Q744089 Q921159 Q1226101 Q731913 Q278637 Q6854 Q634673 Q42944 Q180 Q7188 Q166400 Q2366895 Q6714866 Q12350836 Q2992941 Q35339 Q19329423 Q4824117 Q7669953 Q16204559 Q985866 Q1419421 Q127992 Q372681 Q215363 Q749633 Q7007376 Q698639 Q409603 Q465184 Q3091815 Q21400514 Q492058 Q1210183 Q1515393 Q466950 Q2593858 Q544560 Q11575035 Q280255 Q6542248 Q12403704 Q1061903 Q1427072 Q1030034 Q5358893 Q17442 Q787499 Q16960819 Q7306647 Q3642952 Q233929 Q1143147 Q1150494 Q11085933 Q846298 Q23054661 Q11880282 Q2985179 Q9531 Q186471 Q4453842 Q208019 Q40970 Q114794 Q12355223 Q10854462 Q23565 Q84129 Q1364364 Q444649 Q341134 Q15260031 Q3547336 Q19698204
(c(Q2312410)|c(Q15275719),P664,c(Q43229))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P664
type Q43229
type Q2312410
action find_reverse_tuple_counts
relation P664
type Q43229
type Q15275719
value 67
[ANSWER]
[[{'concept': 'Q2312410'}, {'concept': 'Q15275719'}], 'P664', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?u ) { ( ontology:Q2312410 ) ( ontology:Q15275719 ) } . ?k rdf:type ?u } GROUP BY ?g } . FILTER ( ?c <= 67 ) }
RAI Funke Mediengruppe Association of Tennis Professionals RTL Group Radiodiffusion-Télévision Française Public Broadcasting Services Bayerischer Rundfunk European Volleyball Confederation Italian Esperanto Youth European Organization for Nuclear Research Wikimedia Foundation government European Broadcasting Union Suomen Hiihtoliitto MCD Productions Korean Esperanto Association Office for Democratic Institutions and Human Rights WWE Hong Kong International Film Festival Society Australian Esperanto Association TEDMED QuidditchUK World Water Council Internet Privatstiftung Association for Computing Machinery Amaury Sport Organisation Sveriges Television German Esperanto Youth New England Science Fiction Association Red Bull GmbH Finnish Red Cross American Institute of Chemical Engineers French Federation of Go World Triathlon Corporation XM Satellite Radio SANZAAR Nederlandse Omroep Stichting American Society of Mechanical Engineers World Triathlon Corporation Televisión Española Sankei Shimbun Co. Koelnmesse OpenStreetMap Foundation Israel Swimming Association Live Nation Entertainment SAE International Galleries, Libraries, Archives, and Museums The Mainichi Newspapers Co. Anita Borg Institute for Women and Technology Automobile Club de l'Ouest Live Nation Reed Exhibitions Boston Athletic Association NASCAR Kansai Telecasting Corporation New Japan Pro Wrestling Polish Esperanto Youth Japan Racing Association TED MTV Oy Comexposium BBC Ultimate Fighting Championship Liga de Fútbol Profesional Eastern Partnership International Olympic Committee Radiotelevisione svizzera di lingua italiana Slovak Esperanto Youth CJ E&M Hessian Broadcasting Corporation Minor League Baseball Science Fiction and Fantasy Writers of America Asahi Shimbun Company Česká televize Wheelchair Basketball Canada USA Track & Field Shibuya Productions
77
action count
action atmost
action union
action find_reverse_tuple_counts
relation organizer
type organization
type sport discipline
action find_reverse_tuple_counts
relation organizer
type organization
type recurring event
value 67
[[{'concept': 'sport discipline'}, {'concept': 'recurring event'}], 'organizer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?c ) WHERE { VALUES ( ?u ) { ( ontology:sport_discipline ) ( ontology:recurring_event ) } . ?k rdf:type ?u } GROUP BY ?g } . FILTER ( ?c <= 67 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P710
Q476300
USER
What event was that administrative territory a participant of ?
action filter_type
action find_reverse
entity Q155
relation P710
type Q476300
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q155 . ?o rdf:type ontology:Q476300 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation participant
type competition
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Brazil . ?o rdf:type ontology:competition }
[]
competition
Q9538
SYSTEM
South American dreadnought race
Q9538
action filter_type
action find_reverse
entity Q155
relation P710
type Q476300
What event was that administrative territory a participant of
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q155 . ?o rdf:type ontology:Q476300 }
South American dreadnought race
What event was that administrative territory a participant of
South American dreadnought race
action filter_type
action find_reverse
entity Brazil
relation participant
type competition
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Brazil . ?o rdf:type ontology:competition }
[]