Simple Question (Direct)
Simple Question
Q1318986
P21
Q290
USER
Which sex does Carlo Bay have ?
(Q1318986,P21,c(Q290))
action filter_type
action find
entity Q1318986
relation P21
type Q290
['Q1318986', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1318986 property:P21 ?l . ?l rdf:type ontology:Q290 }
Carlo Bay
action filter_type
action find
entity Carlo Bay
relation gender
type sex
['Carlo Bay', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Carlo_Bay property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1318986,P21,c(Q290))
action filter_type
action find
entity Q1318986
relation P21
type Q290
Carlo Bay has a [ANSWER]
['Q1318986', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1318986 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Carlo Bay has a male
male
action filter_type
action find
entity Carlo Bay
relation gender
type sex
['Carlo Bay', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Carlo_Bay property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1318986
P19
Q515
USER
Which city is the birthplace of Carlo Bay ?
(Q1318986,P19,c(Q515))
action filter_type
action find
entity Q1318986
relation P19
type Q515
['Q1318986', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1318986 property:P19 ?o . ?o rdf:type ontology:Q515 }
Carlo Bay
action filter_type
action find
entity Carlo Bay
relation place of birth
type city
['Carlo Bay', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Carlo_Bay property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
(Q1318986,P19,c(Q515))
action filter_type
action find
entity Q1318986
relation P19
type Q515
[ANSWER] is the birthplace of Carlo Bay
['Q1318986', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?o WHERE { resource:Q1318986 property:P19 ?o . ?o rdf:type ontology:Q515 }
Buenos Aires
Buenos Aires is the birthplace of Carlo Bay
Buenos Aires
action filter_type
action find
entity Carlo Bay
relation place of birth
type city
['Carlo Bay', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?o WHERE { resource:Carlo_Bay property:place_of_birth ?o . ?o rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1318986
P641
Q349
USER
Which sport was that person a part of ?
(Q1486,P641,c(Q349))
action filter_type
action find
entity Q1318986
relation P641
type Q349
['Q1486', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q1318986 property:P641 ?u . ?u rdf:type ontology:Q349 }
Carlo Bay
action filter_type
action find
entity Carlo Bay
relation sport
type sport
['Buenos Aires', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Carlo_Bay property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1486,P641,c(Q349))
action filter_type
action find
entity Q1318986
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q1486', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q1318986 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Carlo Bay
relation sport
type sport
['Buenos Aires', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Carlo_Bay property:sport ?u . ?u rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q349 Q502895 Q43229
USER
How many sports are the fields of work of greater number of people and organizations than that sport ?
(c(Q502895)|c(Q43229),P101,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?p WHERE { { ?n property:P101 ?p . ?p rdf:type ontology:Q349 . ?n rdf:type ontology:Q43229 } UNION { ?n property:P101 ?p . ?p rdf:type ontology:Q349 . ?n rdf:type ontology:Q502895 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P101 resource:Q2736 . { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } } } } . FILTER ( ?y > ?f ) }
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?p WHERE { { ?n property:field_of_work ?p . ?p rdf:type ontology:sport . ?n rdf:type ontology:organization } UNION { ?n property:field_of_work ?p . ?p rdf:type ontology:sport . ?n rdf:type ontology:common_name } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:field_of_work resource:association_football . { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:common_name ) ( ontology:organization ) } } } } . FILTER ( ?y > ?f ) }
[]
sport common name organization
SYSTEM
2
Q4543 Q500050
(c(Q502895)|c(Q43229),P101,c(Q349))
action count
action greater
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q502895
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q502895
type Q43229
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?p WHERE { { ?n property:P101 ?p . ?p rdf:type ontology:Q349 . ?n rdf:type ontology:Q43229 } UNION { ?n property:P101 ?p . ?p rdf:type ontology:Q349 . ?n rdf:type ontology:Q502895 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P101 resource:Q2736 . { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q43229 ) } } } } . FILTER ( ?y > ?f ) }
beach volleyball cross country running
2
action count
action greater
action union
action find_reverse_tuple_counts
relation field of work
type sport
type common name
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type common name
type organization
[[{'concept': 'common name'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?p WHERE { { ?n property:field_of_work ?p . ?p rdf:type ontology:sport . ?n rdf:type ontology:organization } UNION { ?n property:field_of_work ?p . ?p rdf:type ontology:sport . ?n rdf:type ontology:common_name } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:field_of_work resource:association_football . { ?u rdf:type ?t . VALUES ( ?t ) { ( ontology:common_name ) ( ontology:organization ) } } } } . FILTER ( ?y > ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1318986
P106
Q12737077
USER
What is the profession of Carlo Bay ?
(Q1318986,P106,c(Q12737077))
action filter_type
action find
entity Q1318986
relation P106
type Q12737077
['Q1318986', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1318986 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Carlo Bay
action filter_type
action find
entity Carlo Bay
relation occupation
type occupation
['Carlo Bay', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carlo_Bay property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q1318986,P106,c(Q12737077))
action filter_type
action find
entity Q1318986
relation P106
type Q12737077
The profession of Carlo Bay is an [ANSWER]
['Q1318986', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q1318986 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
association football player
The profession of Carlo Bay is an association football player
association football player
action filter_type
action find
entity Carlo Bay
relation occupation
type occupation
['Carlo Bay', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Carlo_Bay property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q732577
USER
How many occupations were around 3 collectables or publications mainly about ?
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 3
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?o WHERE { { ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q2342494 . ?z property:P921 ?o } UNION { ?z property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 } } GROUP BY ?o } . FILTER ( ?g = 3 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 3
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?o WHERE { { ?o rdf:type ontology:occupation . ?z rdf:type ontology:collectable . ?z property:main_subject ?o } UNION { ?z property:main_subject ?o . ?o rdf:type ontology:occupation . ?z rdf:type ontology:publication } } GROUP BY ?o } . FILTER ( ?g = 3 ) }
[]
occupation collectable publication
SYSTEM
2
Q39631 Q937857
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 3
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?o WHERE { { ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q2342494 . ?z property:P921 ?o } UNION { ?z property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q732577 } } GROUP BY ?o } . FILTER ( ?g = 3 ) }
physician association football player
2
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 3
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?g ) ?o WHERE { { ?o rdf:type ontology:occupation . ?z rdf:type ontology:collectable . ?z property:main_subject ?o } UNION { ?z property:main_subject ?o . ?o rdf:type ontology:occupation . ?z rdf:type ontology:publication } } GROUP BY ?o } . FILTER ( ?g = 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1486 Q1059719
P17
Q15617994
USER
How many administrative territories are Buenos Aires or 1977 French Open – Women's Singles situated in ?
(Q1486,P17,c(Q15617994)) (Q1059719,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1486
relation P17
type Q15617994
action filter_type
action find
entity Q1059719
relation P17
type Q15617994
['Q1486', 'P17', {'concept': 'Q15617994'}] ['Q1059719', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?u property:P17 ?w . VALUES ( ?u ) { ( resource:Q1059719 ) ( resource:Q1486 ) } }
Buenos Aires 1977 French Open – Women's Singles
action count
action union
action filter_type
action find
entity Buenos Aires
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 1977 French Open – Women's Singles
relation country
type designation for an administrative territorial entity
['Buenos Aires', 'country', {'concept': 'designation for an administrative territorial entity'}] ["1977 French Open – Women's Singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?u property:country ?w . VALUES ( ?u ) { ( resource:1977_French_Open_–_Women's_Singles ) ( resource:Buenos_Aires ) } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q414
(Q1486,P17,c(Q15617994)) (Q1059719,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1486
relation P17
type Q15617994
action filter_type
action find
entity Q1059719
relation P17
type Q15617994
[ANSWER]
['Q1486', 'P17', {'concept': 'Q15617994'}] ['Q1059719', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?u property:P17 ?w . VALUES ( ?u ) { ( resource:Q1059719 ) ( resource:Q1486 ) } }
France Argentina
2
action count
action union
action filter_type
action find
entity Buenos Aires
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity 1977 French Open – Women's Singles
relation country
type designation for an administrative territorial entity
['Buenos Aires', 'country', {'concept': 'designation for an administrative territorial entity'}] ["1977 French Open – Women's Singles", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?u property:country ?w . VALUES ( ?u ) { ( resource:1977_French_Open_–_Women's_Singles ) ( resource:Buenos_Aires ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q515 Q1048835
USER
Which cities are called the capital of min number of cities and political territories ?
(c(Q515)|c(Q1048835),P36,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
[[{'concept': 'Q515'}, {'concept': 'Q1048835'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q1048835 . ?a property:P36 ?n } UNION { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } } GROUP BY ?n } } . FILTER ( ?e = ?m ) . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?e ) WHERE { { ?t rdf:type ontology:Q515 . ?w rdf:type ontology:Q515 . ?w property:P36 ?t } UNION { ?w property:P36 ?t . ?t rdf:type ontology:Q515 . ?w rdf:type ontology:Q1048835 } } GROUP BY ?t } }
action argmin
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
[[{'concept': 'city'}, {'concept': 'political territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?n rdf:type ontology:city . ?a rdf:type ontology:political_territorial_entity . ?a property:capital ?n } UNION { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:city } } GROUP BY ?n } } . FILTER ( ?e = ?m ) . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?e ) WHERE { { ?t rdf:type ontology:city . ?w rdf:type ontology:city . ?w property:capital ?t } UNION { ?w property:capital ?t . ?t rdf:type ontology:city . ?w rdf:type ontology:political_territorial_entity } } GROUP BY ?t } }
[]
city city political territorial entity
Q1486 Q1773 Q1794
SYSTEM
Buenos Aires, Riga, Frankfurt
Q384403 Q373542 Q780731 Q3572 Q843001 Q843006 Q843009 Q392692 Q861296 Q637647 Q240026 Q19689 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q379030 Q496667 Q240504 Q281371 Q258884 Q3624 Q320950 Q8254 Q43199 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q932806 Q377834 Q295367 Q653389 Q851097 Q861292 Q917888 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q80989 Q14424 Q304803 Q853744 Q2135 Q43196 Q855032 Q404529 Q80484 Q5954 Q834567 Q851675 Q3744 Q842908 Q23482 Q505208 Q911530 Q5838 Q181276 Q3692 Q847546 Q330409 Q847543 Q854956 Q933641 Q379160 Q889966 Q890311 Q132997 Q3104 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q629471 Q209766 Q178878 Q5316658 Q203027 Q1486 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1461 Q843018 Q1000091 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q117676 Q16959 Q650015 Q30340 Q23430 Q225257 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q1362 Q8247 Q183584 Q235 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q288413 Q167668 Q4469 Q1519 Q8684 Q270704 Q3838 Q167109 Q478038 Q734378 Q585630 Q855529 Q7248 Q207408 Q1107569 Q316841 Q6602 Q602042 Q237699 Q207406 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q3307925 Q740810 Q193721 Q861221 Q911667 Q8652 Q842971 Q842976 Q3866 Q181007 Q843028 Q385864 Q755686 Q3599 Q3861 Q43433 Q846652 Q3859 Q155975 Q19660 Q674311 Q3915 Q719051 Q863747 Q841125 Q954596 Q487439 Q174461 Q385591 Q1953 Q124375 Q954611 Q854940 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q9005 Q208471 Q2337 Q633789 Q1330294 Q8158 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q911628 Q632146 Q52564 Q4905 Q207876 Q188082 Q34261 Q137271 Q855060 Q1473 Q842996 Q1773 Q679249 Q843021 Q680743 Q3852 Q564234 Q488990 Q668318 Q2773 Q6829 Q260522 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q1858 Q2096 Q329775 Q1854 Q890122 Q855016 Q3787 Q855011 Q513417 Q480421 Q823907 Q7070 Q3826 Q642031 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1822 Q1533 Q200077 Q47916 Q3183016 Q328601 Q2410422 Q191097 Q2526233 Q946769 Q846351 Q739304 Q789233 Q819103 Q368929 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q11194 Q386682 Q485581 Q755698 Q390796 Q271917 Q1008737 Q79535 Q1720 Q1721 Q83247 Q390798 Q3904 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q843014 Q2844 Q11725 Q604516 Q73156 Q3768 Q732300 Q789510 Q470369 Q1863 Q1865 Q2203 Q18342086 Q430207 Q756273 Q188247 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q250733 Q146317 Q693264 Q5781 Q6582 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q189761 Q189769 Q1761 Q750224 Q378225 Q954569 Q2887 Q738275 Q69060 Q727383 Q2061 Q2069869 Q184998 Q854965 Q456 Q755701 Q267894 Q679224 Q168648 Q843043 Q850676 Q36063 Q7003 Q3931 Q726993 Q3919 Q3751 Q3616 Q42666 Q3612 Q933638 Q25475 Q18575 Q613813 Q375862 Q1530 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q911642 Q187284 Q158245 Q284480 Q632080 Q207309 Q187812 Q16666
(c(Q515)|c(Q1048835),P36,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q1048835
[ANSWERS] are called the capital of min number of cities and political territories
[[{'concept': 'Q515'}, {'concept': 'Q1048835'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q1048835 . ?a property:P36 ?n } UNION { ?a property:P36 ?n . ?n rdf:type ontology:Q515 . ?a rdf:type ontology:Q515 } } GROUP BY ?n } } . FILTER ( ?e = ?m ) . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?e ) WHERE { { ?t rdf:type ontology:Q515 . ?w rdf:type ontology:Q515 . ?w property:P36 ?t } UNION { ?w property:P36 ?t . ?t rdf:type ontology:Q515 . ?w rdf:type ontology:Q1048835 } } GROUP BY ?t } }
Litoměřice Szigetvár Szeghalom Tunis Csorna Nagykálló Marcali Šumperk Nōgata Pásztó Jászapáti Tirana Bátonyterenye Rafaela Kroměříž Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Zalaszentgrót Muroran Makó Jászberény Bélapátfalva Addis Ababa Trutnov Dharan Omaha Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Polgárdi Szentes Nagyatád Nobeoka Iiyama Hitoyoshi Vinaròs Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Bhopal Nagykanizsa Mezőcsát Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Patna Binjai Bonyhád Takahashi Castro Gyál Marseille Ouarzazate Hajdúhadház Kabul Szolnok Riyadh Saiki Ústí nad Orlicí Katsuyama Ibrány Martonvásár Kunszentmárton Kiliya Reni Florianópolis Koblenz Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok Kiskunmajsa Saga Békéscsaba Durjaya Tsu Buenos Aires Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Manila Kunszentmiklós Rychnov nad Kněžnou Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Viseu Ürümqi Pannonhalma Zhengzhou Ulaanbaatar Rupea Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Islamabad Biratnagar Lanzhou Monaco Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Tapolca Liepāja Talca Abu Dhabi Seoul Třebíč Kinshasa Eger Kiskunfélegyháza Yonezawa Yanagawa Kistelek Bukittinggi Vác Kerma Karlovo Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Turquoise Mountain Kediri San Ignacio Kayes Abashiri Mianwali City Békés Tábor Nakatsu Elek Miami Sellye Mátészalka Dodoma Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Doha Chandigarh Cigánd Kigali Kutná Hora Bucharest Kisvárda Antananarivo Artsyz Uda Tsuyama Havlíčkův Brod Oral Ranchi Ōmura Yerevan Hódmezővásárhely Jeseník Dabas Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District Brussels Kaifeng Smolensk Dombóvár Jiankang Metro, Indonesia Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Český Krumlov Port-au-Prince Kota Kinabalu Encs Davao City Pécsvárad Riga Kalocsa Tolna Balatonfüred Worms Annaka Kostanay Sárospatak Braunschweig Speyer Bácsalmás Iquique Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Hanoi Edmonton Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Abuja Heves Vsetín Abony HigashiMatsuyama Eisenach Muscat Gárdony Sakura Cegléd Bouaké Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Baguio Caracas Morioka Lucknow Ungaran Hirado San Marcos, Costa Rica Tachov Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Berezivka Jindřichův Hradec Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Sarajevo Khost Aveiro Svitavy Orosháza Kushiro Semily Fort Smith Mainz Wiesbaden Braga Szentendre Mbabane Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Szarvas Brasília Chongqing Szentgotthárd Linfen Yamoussoukro Gyomaendrőd Balmazújváros Kolín Andorra la Vella Kuala Lumpur Arica Oyo-Ile Komló Karcag Sarkad Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Wa Veszprém Iwamizawa Langsa Carcassonne Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Szekszárd Salgótarján Dublin Strakonice Hagi Vyškov Santiago Karatsu Xining Sokolov Yellowknife Edoras Kaposvár Lenti Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Sárvár Blansko Vecsés Dijon Brandenburg an der Havel Cotabato City Gaborone Praia Tehran Shaoxing Antofagasta Mezőkövesd Batumi Tucson Kőszeg Nyíradony Baghdad Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Füzesabony Hurghada Písek Bóly Tét Tokushima Dunaújváros Nanjing
Buenos Aires, Riga and Frankfurt are called the capital of min number of cities and political territories
Buenos Aires Riga Frankfurt
action argmin
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type political territorial entity
[[{'concept': 'city'}, {'concept': 'political territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?k ) AS ?m ) { SELECT DISTINCT ?n ( COUNT ( ?a ) AS ?k ) WHERE { { ?n rdf:type ontology:city . ?a rdf:type ontology:political_territorial_entity . ?a property:capital ?n } UNION { ?a property:capital ?n . ?n rdf:type ontology:city . ?a rdf:type ontology:city } } GROUP BY ?n } } . FILTER ( ?e = ?m ) . { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?e ) WHERE { { ?t rdf:type ontology:city . ?w rdf:type ontology:city . ?w property:capital ?t } UNION { ?w property:capital ?t . ?t rdf:type ontology:city . ?w rdf:type ontology:political_territorial_entity } } GROUP BY ?t } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1794
P740
Q215380 Q43229
USER
How many bands or organizations were formed at Frankfurt ?
(c(Q215380),P740,Q1794) (c(Q43229),P740,Q1794)
action count
action union
action filter_type
action find_reverse
entity Q1794
relation P740
type Q215380
action filter_type
action find_reverse
entity Q1794
relation P740
type Q43229
[{'concept': 'Q215380'}, 'P740', 'Q1794'] [{'concept': 'Q43229'}, 'P740', 'Q1794']
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:P740 resource:Q1794 . ?i rdf:type ontology:Q215380 } UNION { ?i rdf:type ontology:Q43229 . ?i property:P740 resource:Q1794 } }
Frankfurt
action count
action union
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type band
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type organization
[{'concept': 'band'}, 'location of formation', 'Frankfurt'] [{'concept': 'organization'}, 'location of formation', 'Frankfurt']
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:location_of_formation resource:Frankfurt . ?i rdf:type ontology:band } UNION { ?i rdf:type ontology:organization . ?i property:location_of_formation resource:Frankfurt } }
[]
band organization
SYSTEM
8
Q4685846 Q6394100 Q392886 Q572077 Q631220 Q1562727 Q157852 Q2146961
(c(Q215380),P740,Q1794) (c(Q43229),P740,Q1794)
action count
action union
action filter_type
action find_reverse
entity Q1794
relation P740
type Q215380
action filter_type
action find_reverse
entity Q1794
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q215380'}, 'P740', 'Q1794'] [{'concept': 'Q43229'}, 'P740', 'Q1794']
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:P740 resource:Q1794 . ?i rdf:type ontology:Q215380 } UNION { ?i rdf:type ontology:Q43229 . ?i property:P740 resource:Q1794 } }
Adtech Kern AG DQS La Bouche Braun Hameg Deutsche Börse AG Revolutionärer Kampf
8
action count
action union
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type band
action filter_type
action find_reverse
entity Frankfurt
relation location of formation
type organization
[{'concept': 'band'}, 'location of formation', 'Frankfurt'] [{'concept': 'organization'}, 'location of formation', 'Frankfurt']
SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:location_of_formation resource:Frankfurt . ?i rdf:type ontology:band } UNION { ?i rdf:type ontology:organization . ?i property:location_of_formation resource:Frankfurt } }
[]